From 7ce5544db8ab270a64fd14217308fb03669cf050 Mon Sep 17 00:00:00 2001 From: Real Codesiman Date: Sat, 24 Oct 2026 17:07:11 +0700 Subject: [PATCH 1/7] fix(workspace): bound workspace purge cleanup --- .agents/skills/drizzle-database/SKILL.md | 7 +- .../skills/reliability-concurrency/SKILL.md | 6 + .agents/skills/worker-development/SKILL.md | 2 + .agents/skills/workspace-purge/SKILL.md | 36 + .claude/agents/invariant-guard.md | 5 +- .devin/rules/chatbotx.md | 2 + .github/copilot-instructions.md | 2 + AGENTS.md | 2 + CLAUDE.md | 1 + ...schedule-workspace-deletion-action.test.ts | 8 +- .../schedule-workspace-deletion-action.ts | 7 +- .../__tests__/campaign-cleanup.test.ts | 50 +- .../__tests__/edge-safe-import-graph.test.ts | 7 +- .../user-quota-reconcile-self.test.ts | 41 +- .../workspace-lifecycle.service.test.ts | 52 +- packages/business/src/leaderboard/purge.ts | 22 +- packages/business/src/smart-delay/service.ts | 1 - packages/business/src/user-quota/service.ts | 15 + .../__tests__/service.test.ts | 42 +- .../workspace-lifecycle/campaign-cleanup.ts | 56 +- .../src/workspace-lifecycle/service.ts | 549 +- .../src/workspace/__tests__/service.test.ts | 23 +- packages/business/src/workspace/service.ts | 64 +- .../__tests__/purge-fk-indexes.test.ts | 186 + .../migration.sql | 533 + .../snapshot.json | 61667 +++++++++++++++ .../migration.sql | 70 + .../snapshot.json | 61898 ++++++++++++++++ .../src/schema/ai-conversation-embedding.ts | 7 + packages/database/src/schema/ai-embedding.ts | 4 + .../src/schema/contact-on-broadcast.ts | 3 + .../database/src/schema/contact-to-tag.ts | 3 +- packages/database/src/schema/flow-run.ts | 9 + packages/database/src/schema/flow-version.ts | 61 +- .../src/schema/leaderboard-participant.ts | 7 + .../database/src/schema/sequence-dispatch.ts | 5 + .../__tests__/dispatch-manager.test.ts | 38 +- .../sequence-scheduler/src/dispatch-cancel.ts | 56 +- 38 files changed, 125242 insertions(+), 305 deletions(-) create mode 100644 .agents/skills/workspace-purge/SKILL.md create mode 100644 packages/database/__tests__/purge-fk-indexes.test.ts create mode 100644 packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql create mode 100644 packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json create mode 100644 packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql create mode 100644 packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json diff --git a/.agents/skills/drizzle-database/SKILL.md b/.agents/skills/drizzle-database/SKILL.md index 751612ac35..b64e2cabb8 100644 --- a/.agents/skills/drizzle-database/SKILL.md +++ b/.agents/skills/drizzle-database/SKILL.md @@ -55,6 +55,8 @@ export const myModel = pgTable( - `bigintAsString()` custom type: stores `bigint` in DB, exposes as `string` in app - FK pattern: `.references(() => otherModel.id, { onDelete, onUpdate })` - Index naming: `TableName_columnName_idx` or `TableName_column_key` for unique +- Every FK column must lead an index so RI cascade lookups do not scan child tables. +- A new table with `workspaceId` requires the `workspace-purge` skill. Partitioned-table indexes use the per-partition recipe in `20260924105732_add_contact_inbox_fk_indexes`. ### Enums @@ -217,8 +219,9 @@ const item = await findOrFail({ table: myModel, where: { id } }) `Workspace.scheduledDeletionAt` is the repository's soft-delete convention: use a nullable timestamp with an index. Scheduling sets it to `now + 24h`, cancellation clears it, and the workspace row remains live during the grace -window. The hourly purge cron then hard-deletes due rows, allowing the normal -foreign-key cascade to remove children. `UserQuota.channelsTornDownAt` is the +window. The hourly purge cron drains large children in bounded batches before +hard-deleting the workspace; read `workspace-purge` before adding a +workspace-scoped table or teardown step. `UserQuota.channelsTornDownAt` is the sibling marker for one-shot trial-expiry channel teardown; it is not a second soft-delete state. diff --git a/.agents/skills/reliability-concurrency/SKILL.md b/.agents/skills/reliability-concurrency/SKILL.md index 1814acbce0..95f23bb1b8 100644 --- a/.agents/skills/reliability-concurrency/SKILL.md +++ b/.agents/skills/reliability-concurrency/SKILL.md @@ -37,6 +37,12 @@ Delete-then-insert (e.g. embedding `replaceForSource`) must be: - Multiple agents editing the same working tree corrupt each other's git index. For parallel work use separate git worktrees. - Stage specific files only — never `git add -A`/`.` (`.agents/rules/git.md`). +## 6. Bulk deletes and updates + +- Bound every statement with a `LIMIT` and keyset or `FOR UPDATE SKIP LOCKED`. +- Commit each batch before starting the next; never build `IN` from every matching id. +- Set `lock_timeout` and `statement_timeout`, and keep the total run below its distributed-lock TTL. + ## Stop condition diff --git a/.agents/skills/worker-development/SKILL.md b/.agents/skills/worker-development/SKILL.md index 822a468cc2..71e4f307a8 100644 --- a/.agents/skills/worker-development/SKILL.md +++ b/.agents/skills/worker-development/SKILL.md @@ -215,6 +215,8 @@ quota, and tenancy lifecycle jobs are excluded from this gate. ### Adding a schedule handler Use this four-edit flow, shown by the `purgeWorkspaces` handler: +When changing `purgeWorkspaces`, also read `workspace-purge` so the schedule remains bounded below its lock TTL. + 1. Add the `ScheduleJobData` key, payload type, and union member in `packages/worker-config/src/queues/schedule/index.ts`. diff --git a/.agents/skills/workspace-purge/SKILL.md b/.agents/skills/workspace-purge/SKILL.md new file mode 100644 index 0000000000..a5e9dae3e9 --- /dev/null +++ b/.agents/skills/workspace-purge/SKILL.md @@ -0,0 +1,36 @@ +--- +name: workspace-purge +description: Keep workspace deletion bounded, indexed, resumable, and safe under lock contention. +--- + +# Workspace Purge Safety + +Use this skill for a new table, foreign key, workspace-scoped data, hypertable, or any change to workspace deletion, purge, or runtime freeze. + +## Lifecycle + +`scheduleDeletion` (reversible grace period) → worker `purgeWorkspaces` → +`workspaceService.teardownDueWorkspace`: + +1. acquire the workspace purge lease; +2. freeze runtime work and disconnect integrations/channels only after deletion is due; +3. drain workspace analytics, heavy tables, partitioned rows, and `ContactInboxPost`; +4. delete `Workspace` with bounded timeouts, then release quota; +5. reconcile the owner's correct quota scope. + +The scheduled worker may retry this path. Every step must be idempotent and leave incomplete work for the next tick through `WorkspacePurgeIncompleteError`. + +## Required rules + +1. **Every new foreign-key column needs a leading index.** A parent delete invokes a child RI lookup for every deleted parent row. Nullable `SET NULL` foreign keys use a partial `WHERE column IS NOT NULL` index. Expand `packages/database/__tests__/purge-fk-indexes.test.ts` whenever a high-volume purge path gains an FK. +2. **Drain large workspace tables before the final cascade.** A log, event, stat, per-contact, or per-message table with `workspaceId` belongs in `HEAVY_WORKSPACE_TABLES` in child-before-parent order and needs a leading `workspaceId` index. Partitioned tables delete by their primary-key tuple with a per-table workspace selector; never use `ctid`. Hypertables drain one workspace-bearing chunk at a time with `liftDecompressionLimit`. +3. **Delete workspace-scoped tables without a foreign key explicitly.** A missing FK does not make data disappear at workspace deletion. Add a bounded purge stage. +4. **Keep every purge/freeze statement bounded.** Use a `LIMIT` plus keyset or `FOR UPDATE SKIP LOCKED`, one short transaction per batch, and no `IN` built from every matching id. Never call HTTP while holding a database transaction. Use `withPurgeTimeouts`; stop before the cron deadline so its run stays below the distributed-lock TTL. +5. **Make teardown idempotent.** It runs again on each tick. Convert temporary lock/timeout failures into `WorkspacePurgeIncompleteError` so the next tick resumes safely. +6. **Reconcile the correct quota scope.** Call `userQuotaService.reconcileOwnerAfterTeardown(ownerId)`; never count all root-tenant resources as a reseller pool. + +## Before merge +- Run `pnpm --filter @chatbotx.io/database test` and inspect the purge FK index tests. +- Inspect generated migration SQL. Partitioned indexes must use per-partition `CREATE INDEX CONCURRENTLY`, `ON ONLY` parent indexes, `ATTACH PARTITION`, and validity checks. +- Run `EXPLAIN (ANALYZE, BUFFERS)` in `BEGIN … ROLLBACK` for representative purge batches. RI triggers must use index scans. +- Verify a purge alongside activity in another workspace: no long-lived lock waits and no purge transaction longer than a batch. diff --git a/.claude/agents/invariant-guard.md b/.claude/agents/invariant-guard.md index 965f55e5be..a429236d19 100644 --- a/.claude/agents/invariant-guard.md +++ b/.claude/agents/invariant-guard.md @@ -1,6 +1,6 @@ --- name: invariant-guard -description: Use PROACTIVELY after any edit under apps/, packages/, or integrations/ to check a diff against the non-obvious ChatbotX invariants that no lint rule enforces (triple-d middleware names, relations/index.ts double-edit, ChannelType cascade, bindArgsSchemas binding, no-input execute(), i18n-mandatory, Drizzle-not-Prisma, no direct db in app layer, no dynamic import, new-package CI install, flow node type cascade, TanStack Query mutation invalidation, agent-first public API parity). Reports violations only; does not edit. +description: Use PROACTIVELY after any edit under apps/, packages/, or integrations/ to check the non-obvious ChatbotX invariants, including workspace purge safety. Reports violations only; does not edit. tools: Read, Grep, Glob, Bash model: sonnet --- @@ -30,6 +30,7 @@ You are a focused reviewer with ONE job: catch violations of the ChatbotX invari 11. **Flow node type cascade.** If `nodeTypeSchema` in `packages/flow-config/src/nodes/base.ts` gained a value, grep an existing node schema symbol (e.g. `waitNodeSchema`) and `nodeTypeSchema.enum.` across `apps/` and `packages/` — the new node must appear in the `flowVersionSchema` union (`packages/flow-config/src/nodes/index.ts`), `allNodesConfig` (`nodes/node-config.tsx`), `allSteps` (`steps/index.tsx`), `viewerNodeTypes` (`react-flow-wrapper.tsx`), and `analyticsNodeTypes` (`node-types-config.ts`). These are plain-object maps and hand-rolled unions that fail SILENTLY (node doesn't render, or publish fails with a generic toast). Also flag any NEW zod union that hand-lists node schemas instead of reusing `flowVersionSchema`/`publishFlowSchema`. 12. **TanStack Query mutation invalidation.** If a mutation creates, updates, deletes, toggles, or moves a resource read through a TanStack Query hook, flag a missing resource invalidator (or `setQueryData`) in its success path; `router.refresh()` alone does not update the browser cache. Also flag a new `ChangeFolderDialog` caller that omits `onSuccess`, because the dialog cannot know which resource key to invalidate. 13. **Agent-first public API parity** (AGENTS.md invariant 23). If the diff adds a server action under `apps/builder/src/features/*/actions/`, a procedure in a feature's `api/private.ts`/`api/index.ts`, or a new feature folder, check that the same feature's `api/public.ts` (or `api/public/*.ts`) gains — or already has — a procedure for the same operation, and that it is nested in `apps/builder/src/routers/public.ts`. Pay extra attention to result-returning operations: an action or procedure whose name matches `preview|test|simulat|generate|export|run|sync|scan|stats|link|render` is the kind most often shipped UI-only. Also flag a public procedure that re-implements logic instead of calling the same service/`lib/` function as the UI path. Skip features on the invariant 23 exempt list (auth/account, platform admin, end-customer webviews, OAuth redirect step, UI-only plumbing, token minting) but say which exemption you applied. Severity: HIGH (the operation is invisible to the CLI/MCP). +14. **Workspace purge safety.** If the diff adds or changes a schema FK, a workspace-scoped table, `workspace-lifecycle`, workspace purge code, campaign cleanup, or dispatch cancellation, require the `workspace-purge` rules: leading FK indexes; child-before-parent bounded drains; PK-tuple deletes for partitioned data; chunk drains for hypertables; short timeout-guarded transactions. ## Output @@ -38,5 +39,5 @@ A single findings table, severity-tagged (HIGH = silent runtime/clone breakage; ## Boundaries - Read-only. Never edit files. Report only. -- Do not review general code quality, style, or logic — that is other reviewers' job. Stay on these 13 invariants. +- Do not review general code quality, style, or logic — that is other reviewers' job. Stay on these 14 invariants. - If a diff touches none of the invariant surfaces, return `INVARIANTS: PASS (no invariant-relevant changes)` and stop. diff --git a/.devin/rules/chatbotx.md b/.devin/rules/chatbotx.md index a050787cd4..2f3f5f2cf8 100644 --- a/.devin/rules/chatbotx.md +++ b/.devin/rules/chatbotx.md @@ -59,6 +59,8 @@ pnpm workspaces + Turborepo · TypeScript 5 · React 19 · Next.js 16 (builder) 22. **`ContactInboxPost` has no FK and is partitioned by `workspaceId`.** Every ContactInbox, Contact, or Workspace delete path must go through `contactInboxPostService`; every post query must include `workspaceId`; and post writes must hold the durable workspace purge guard through commit. 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). + +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. ## Workflow diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index d9a3465731..f2f07752e6 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -63,6 +63,8 @@ These instructions apply repository-wide. Read the relevant detailed rule in `.a 22. **`ContactInboxPost` has no FK and is partitioned by `workspaceId`.** Every ContactInbox, Contact, or Workspace delete path must go through `contactInboxPostService`; every post query must include `workspaceId`; and post writes must hold the durable workspace purge guard through commit. 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). + +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. ## Rule index diff --git a/AGENTS.md b/AGENTS.md index 8452d2bd2e..b016076cbd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -197,6 +197,8 @@ These are the most common mistakes — read before writing any code: 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. + ## Git conventions diff --git a/CLAUDE.md b/CLAUDE.md index 612502e97e..37680143f4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -22,6 +22,7 @@ | After any public API change (every one surfaces in the CLI/MCP), or CLI/MCP docs/skill drift | `cli-mcp-docs` | | Business logic, new service method, any DB read/write from app code | `business-data-access` | | New DB table or migration | `drizzle-database` | +| New table / FK / workspace-scoped data, or any change to workspace deletion/purge/freeze | `workspace-purge` | | New background job or queue | `worker-development` | | New channel integration | `integration-channel` | | Contact filter field/operator, filter SQL, or contact-based audience | `contact-filter` | diff --git a/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts b/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts index 75400a5aef..ad3a1ae88f 100644 --- a/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts +++ b/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts @@ -5,7 +5,6 @@ import { beforeEach, expect, test, vi } from "vitest" const mockGetCurrentUserAndTargetWorkspace = vi.fn() const mockHasWorkspacePermission = vi.fn() const mockScheduleDeletion = vi.fn() -const mockFreezeWorkspaceRuntime = vi.fn() vi.mock("@/lib/safe-action", () => { const chain: Record = {} @@ -25,9 +24,6 @@ vi.mock("@/lib/auth/permission-routes", () => ({ })) vi.mock("@chatbotx.io/business", () => ({ - workspaceLifecycleService: { - freezeWorkspaceRuntime: mockFreezeWorkspaceRuntime, - }, workspaceService: { scheduleDeletion: mockScheduleDeletion, }, @@ -46,10 +42,9 @@ beforeEach(() => { }) mockHasWorkspacePermission.mockReturnValue(true) mockScheduleDeletion.mockResolvedValue(undefined) - mockFreezeWorkspaceRuntime.mockResolvedValue(undefined) }) -test("schedules deletion then freezes the workspace runtime", async () => { +test("schedules a reversible workspace deletion grace period", async () => { await ( scheduleWorkspaceDeletionAction as (props: unknown) => Promise )({ @@ -57,5 +52,4 @@ test("schedules deletion then freezes the workspace runtime", async () => { }) expect(mockScheduleDeletion).toHaveBeenCalledWith({ id: "workspace-1" }) - expect(mockFreezeWorkspaceRuntime).toHaveBeenCalledWith("workspace-1") }) diff --git a/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts b/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts index 44b5842284..0eb1c20509 100644 --- a/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts +++ b/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts @@ -1,9 +1,6 @@ "use server" -import { - workspaceLifecycleService, - workspaceService, -} from "@chatbotx.io/business" +import { workspaceService } from "@chatbotx.io/business" import { ChatbotXException } from "@chatbotx.io/business/errors" import { type WorkspaceIdRequestParams, @@ -40,7 +37,5 @@ export const scheduleWorkspaceDeletionAction = workspaceActionClientAllowExpired await workspaceService.scheduleDeletion({ id: workspaceId, }) - - await workspaceLifecycleService.freezeWorkspaceRuntime(workspaceId) }, ) diff --git a/packages/business/__tests__/campaign-cleanup.test.ts b/packages/business/__tests__/campaign-cleanup.test.ts index 95e21b1b75..a4cdb10561 100644 --- a/packages/business/__tests__/campaign-cleanup.test.ts +++ b/packages/business/__tests__/campaign-cleanup.test.ts @@ -4,18 +4,24 @@ const updateReturningMock = vi.fn() const updateWhereMock = vi.fn() const updateSetMock = vi.fn() const updateMock = vi.fn() +const executeMock = vi.fn() vi.mock("@chatbotx.io/database/client", () => ({ and: (...conditions: unknown[]) => ({ __and: conditions }), db: { - update: (...args: unknown[]) => updateMock(...args), + execute: (...args: unknown[]) => executeMock(...args), transaction: async (run: (tx: unknown) => Promise) => await run({ update: (...args: unknown[]) => updateMock(...args) }), + update: (...args: unknown[]) => updateMock(...args), }, eq: (column: unknown, value: unknown) => ({ __eq: [column, value] }), inArray: (column: unknown, value: unknown) => ({ __inArray: [column, value], }), + sql: (strings: TemplateStringsArray, ...values: unknown[]) => ({ + strings, + values, + }), })) vi.mock("@chatbotx.io/database/partials", () => ({ @@ -41,11 +47,6 @@ vi.mock("@chatbotx.io/database/schema", () => ({ status: { __column: "broadcast.status" }, workspaceId: { __column: "broadcast.workspaceId" }, }, - contactsOnSequenceModel: { - id: { __column: "contactsOnSequence.id" }, - status: { __column: "contactsOnSequence.status" }, - workspaceId: { __column: "contactsOnSequence.workspaceId" }, - }, })) beforeEach(() => { @@ -54,6 +55,7 @@ beforeEach(() => { updateWhereMock.mockReturnValue({ returning: updateReturningMock }) updateSetMock.mockReturnValue({ where: updateWhereMock }) updateMock.mockReturnValue({ set: updateSetMock }) + executeMock.mockResolvedValue({ rowCount: 1 }) }) test("cancelInFlightBroadcastsForWorkspace cancels scheduled, sending and recurring broadcasts only, stopping their series first", async () => { @@ -100,7 +102,7 @@ test("cancelInFlightBroadcastsForWorkspace cancels scheduled, sending and recurr ) }) -test("completeActiveSequenceEnrollmentsForWorkspace marks active enrollments completed", async () => { +test("completeActiveSequenceEnrollmentsForWorkspace atomically claims one bounded active batch", async () => { const { completeActiveSequenceEnrollmentsForWorkspace } = await import( "../src/workspace-lifecycle/campaign-cleanup" ) @@ -110,32 +112,10 @@ test("completeActiveSequenceEnrollmentsForWorkspace marks active enrollments com }) expect(completedCount).toBe(1) - expect(updateMock).toHaveBeenCalledOnce() - expect(updateSetMock).toHaveBeenCalledWith( - expect.objectContaining({ - status: "completed", - nextRunAt: null, - nextStepId: null, - }), - ) - expect(updateWhereMock).toHaveBeenCalledWith( - expect.objectContaining({ - __and: expect.arrayContaining([ - expect.objectContaining({ - __eq: [ - expect.objectContaining({ - __column: "contactsOnSequence.workspaceId", - }), - "workspace-1", - ], - }), - expect.objectContaining({ - __eq: [ - expect.objectContaining({ __column: "contactsOnSequence.status" }), - "active", - ], - }), - ]), - }), - ) + expect(executeMock).toHaveBeenCalledOnce() + const statement = executeMock.mock.calls[0][0] + expect(statement.strings.join("")).toContain('UPDATE "ContactOnSequence"') + expect(statement.strings.join("")).toContain("FOR UPDATE SKIP LOCKED") + expect(statement.strings.join("")).toContain("LIMIT ") + expect(statement.values).toEqual(["workspace-1", 500]) }) diff --git a/packages/business/__tests__/edge-safe-import-graph.test.ts b/packages/business/__tests__/edge-safe-import-graph.test.ts index 79b2b7d664..10403ccee1 100644 --- a/packages/business/__tests__/edge-safe-import-graph.test.ts +++ b/packages/business/__tests__/edge-safe-import-graph.test.ts @@ -192,15 +192,14 @@ describe("@chatbotx.io/business barrel stays Edge-Runtime safe", () => { expect(report).toBe("") }) - test("freezeWorkspaceRuntime keeps cancelling dispatches through a crypto-free module", () => { - // Guards the fix's intent, not just its absence of symptoms: the freeze path - // must still reach the real cancel + Redis-removal helpers. + test("freezeWorkspaceRuntime cancels batches through a crypto-free module", () => { + // The database batch commits before Redis scheduler removal. const service = readFileSync( join(BUSINESS_SRC, "workspace-lifecycle/service.ts"), "utf8", ) - expect(service).toContain("cancelPendingDispatchesForWorkspace") + expect(service).toContain("cancelPendingDispatchBatch") expect(service).toContain("removeDispatchesFromSchedule") expect(service).not.toMatch(SCHEDULER_BARREL_IMPORT) }) diff --git a/packages/business/__tests__/user-quota-reconcile-self.test.ts b/packages/business/__tests__/user-quota-reconcile-self.test.ts index d144247afb..e1ae57d34f 100644 --- a/packages/business/__tests__/user-quota-reconcile-self.test.ts +++ b/packages/business/__tests__/user-quota-reconcile-self.test.ts @@ -13,6 +13,7 @@ const { dbInsert, dbSelect, countDistinctTeamMembersForOwner, + findFirstTenant, findFirstUserQuota, hset, userQuotaModel, @@ -51,6 +52,7 @@ const { dbInsert: vi.fn(() => insertBuilder), dbSelect: vi.fn(() => selectBuilder), countDistinctTeamMembersForOwner: vi.fn(async () => 2), + findFirstTenant: vi.fn(async () => undefined), findFirstUserQuota: vi.fn(async () => ({ macUsed: 10, periodStart: new Date("2026-01-01T00:00:00Z"), @@ -67,7 +69,10 @@ vi.mock("@chatbotx.io/database/client", () => ({ db: { insert: dbInsert, select: dbSelect, - query: { userQuotaModel: { findFirst: findFirstUserQuota } }, + query: { + tenantModel: { findFirst: findFirstTenant }, + userQuotaModel: { findFirst: findFirstUserQuota }, + }, }, and: (...args: unknown[]) => ({ and: args }), count: vi.fn(() => "count()"), @@ -97,6 +102,7 @@ vi.mock("@chatbotx.io/database/schema", () => ({ status: "connection.status", }, contactModel: { workspaceId: "contact.workspaceId" }, + tenantModel: { ownerId: "tenant.ownerId" }, userQuotaModel, workspaceMacModel: {}, workspaceMemberModel: {}, @@ -135,6 +141,39 @@ beforeEach(() => { "countDistinctTeamMembersForOwner", ).mockImplementation(countDistinctTeamMembersForOwner) }) +describe("reconcileOwnerAfterTeardown", () => { + test("reconciles a root owner against only the owner's self usage", async () => { + const selfUsage = vi + .spyOn(userQuotaService, "reconcileUserSelfUsage") + .mockResolvedValue({ + channelsUsed: 0, + contactsUsed: 0, + macUsed: 0, + teamMembersUsed: 0, + workspacesUsed: 0, + }) + const ownerPool = vi.spyOn(userQuotaService, "reconcileOwnerPoolUsage") + findFirstTenant.mockResolvedValueOnce(undefined) + + await userQuotaService.reconcileOwnerAfterTeardown("owner-1") + + expect(selfUsage).toHaveBeenCalledWith("owner-1") + expect(ownerPool).not.toHaveBeenCalled() + }) + + test("reconciles an active reseller owner against the tenant pool", async () => { + const selfUsage = vi.spyOn(userQuotaService, "reconcileUserSelfUsage") + const ownerPool = vi + .spyOn(userQuotaService, "reconcileOwnerPoolUsage") + .mockResolvedValue(undefined) + findFirstTenant.mockResolvedValueOnce({ id: "tenant-1", status: "active" }) + + await userQuotaService.reconcileOwnerAfterTeardown("owner-1") + + expect(ownerPool).toHaveBeenCalledWith("owner-1", "tenant-1") + expect(selfUsage).not.toHaveBeenCalled() + }) +}) describe("reconcileUserSelfUsage", () => { test("assigns counts directly (not GREATEST) via onConflictDoUpdate", async () => { diff --git a/packages/business/__tests__/workspace-lifecycle.service.test.ts b/packages/business/__tests__/workspace-lifecycle.service.test.ts index e98273fa82..8107eee40a 100644 --- a/packages/business/__tests__/workspace-lifecycle.service.test.ts +++ b/packages/business/__tests__/workspace-lifecycle.service.test.ts @@ -15,14 +15,20 @@ const connectionTransitionMock = vi.fn() vi.mock("@chatbotx.io/database/client", () => ({ eq: vi.fn((column: unknown, value: unknown) => ({ eq: [column, value] })), + sql: Object.assign((strings: TemplateStringsArray) => ({ strings }), { + raw: vi.fn((value: string) => value), + }), db: { transaction: transactionMock, }, })) vi.mock("@chatbotx.io/sequence-scheduler/dispatch-cancel", () => ({ + cancelPendingDispatchBatch: cancelPendingDispatchesForWorkspaceMock, cancelPendingDispatchesForWorkspace: cancelPendingDispatchesForWorkspaceMock, + MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES: 400, removeDispatchesFromSchedule: removeDispatchesFromScheduleMock, + WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE: 500, })) vi.mock("@chatbotx.io/database/repositories", () => ({ @@ -44,6 +50,8 @@ vi.mock("../src/workspace-lifecycle/campaign-cleanup", () => ({ cancelInFlightBroadcastsForWorkspaceMock, completeActiveSequenceEnrollmentsForWorkspace: completeActiveSequenceEnrollmentsForWorkspaceMock, + MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES: 400, + SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE: 500, })) vi.mock("../src/workspace-lifecycle/smart-delay-cleanup", () => ({ @@ -76,7 +84,9 @@ beforeEach(() => { order.length = 0 transactionMock.mockImplementation( async (callback: (tx: unknown) => Promise) => { - const result = await callback({}) + const result = await callback({ + execute: vi.fn().mockResolvedValue({ rowCount: 0 }), + }) order.push("tx-done") return result }, @@ -91,7 +101,7 @@ beforeEach(() => { }) cancelPendingDispatchesForWorkspaceMock.mockImplementation(() => { order.push("dispatches") - return Promise.resolve([{ id: "dispatch-1", bucket: 1 }]) + return Promise.resolve([{ bucket: 1, id: "dispatch-1" }]) }) removeDispatchesFromScheduleMock.mockImplementation(() => { order.push("remove") @@ -107,7 +117,7 @@ beforeEach(() => { connectionTransitionMock.mockResolvedValue(undefined) }) -test("freezeWorkspaceRuntime runs cleanup in one transaction and removes Redis entries after commit", { +test("freezeWorkspaceRuntime keeps the transaction to broadcasts and drains independent runtime sources after commit", { timeout: 60_000, }, async () => { // service.ts pulls in a dozen+ unmocked integration services (Klaviyo, @@ -121,31 +131,35 @@ test("freezeWorkspaceRuntime runs cleanup in one transaction and removes Redis e await workspaceLifecycleService.freezeWorkspaceRuntime("workspace-1") - expect(transactionMock).toHaveBeenCalledOnce() - expect(cancelInFlightBroadcastsForWorkspaceMock).toHaveBeenCalledWith({ - tx: {}, - workspaceId: "workspace-1", - }) + expect(transactionMock).toHaveBeenCalledTimes(3) + expect(cancelInFlightBroadcastsForWorkspaceMock).toHaveBeenCalledWith( + expect.objectContaining({ + workspaceId: "workspace-1", + }), + ) expect( completeActiveSequenceEnrollmentsForWorkspaceMock, - ).toHaveBeenCalledWith({ - tx: {}, - workspaceId: "workspace-1", - }) - expect(cancelPendingDispatchesForWorkspaceMock).toHaveBeenCalledWith({ - client: {}, - removeFromSchedule: false, - workspaceId: "workspace-1", - }) + ).toHaveBeenCalledWith( + expect.objectContaining({ + workspaceId: "workspace-1", + }), + ) + expect(cancelPendingDispatchesForWorkspaceMock).toHaveBeenCalledWith( + expect.objectContaining({ + workspaceId: "workspace-1", + }), + ) expect(removeDispatchesFromScheduleMock).toHaveBeenCalledWith([ - { id: "dispatch-1", bucket: 1 }, + { bucket: 1, id: "dispatch-1" }, ]) expect(cancelSmartDelaysForWorkspaceMock).toHaveBeenCalledWith({ workspaceId: "workspace-1", }) expect(order).toEqual([ "broadcast", + "tx-done", "enrollments", + "tx-done", "dispatches", "tx-done", "remove", @@ -156,7 +170,7 @@ test("freezeWorkspaceRuntime runs cleanup in one transaction and removes Redis e test("freezeWorkspaceRuntime still cancels smart delays when dispatch cleanup fails", async () => { // Broadcasts/sequences and wait steps are independent runtime sources: a // Redis failure on one must not leave the other armed. - removeDispatchesFromScheduleMock.mockRejectedValueOnce( + cancelPendingDispatchesForWorkspaceMock.mockRejectedValueOnce( new Error("redis down"), ) diff --git a/packages/business/src/leaderboard/purge.ts b/packages/business/src/leaderboard/purge.ts index 772fce7306..91c27e20cf 100644 --- a/packages/business/src/leaderboard/purge.ts +++ b/packages/business/src/leaderboard/purge.ts @@ -14,7 +14,12 @@ import { logger } from "../logger" */ export async function purgeLeaderboardDataForWorkspace( workspaceId: string, - options: { batchSize?: number; maxBatches?: number } = {}, + options: { + batchSize?: number + deadlineAt?: number + deleteBatch?: () => Promise + maxBatches?: number + } = {}, ): Promise<{ deleted: number; complete: boolean }> { const batchSize = options.batchSize ?? 5000 const maxBatches = options.maxBatches ?? 2000 @@ -29,10 +34,17 @@ export async function purgeLeaderboardDataForWorkspace( } let deleted = 0 for (let batch = 0; batch < maxBatches; batch++) { - const count = await leaderboardScoreEventRepository.deleteBatchByWorkspace({ - workspaceId, - limit: batchSize, - }) + if (options.deadlineAt && Date.now() >= options.deadlineAt) { + return { deleted, complete: false } + } + const count = await ( + options.deleteBatch ?? + (async () => + await leaderboardScoreEventRepository.deleteBatchByWorkspace({ + workspaceId, + limit: batchSize, + })) + )() deleted += count if (count < batchSize) { return { deleted, complete: true } diff --git a/packages/business/src/smart-delay/service.ts b/packages/business/src/smart-delay/service.ts index 50ae40ab76..cb35ea3349 100644 --- a/packages/business/src/smart-delay/service.ts +++ b/packages/business/src/smart-delay/service.ts @@ -476,7 +476,6 @@ class SmartDelayService extends BaseService { ]), ), ) - .orderBy(contactOnSmartDelayModel.triggerAt) .limit(limit) .for("update", { skipLocked: true }) diff --git a/packages/business/src/user-quota/service.ts b/packages/business/src/user-quota/service.ts index 603981af6d..553508e9dc 100644 --- a/packages/business/src/user-quota/service.ts +++ b/packages/business/src/user-quota/service.ts @@ -915,6 +915,21 @@ class UserQuotaService extends BaseService { await this.store.invalidate(ownerId) } + /** + * Reconciles the quota row that owns a workspace teardown. Active reseller + * tenants pool usage on their owner; platform users reconcile only their own + * workspaces. + */ + async reconcileOwnerAfterTeardown(ownerId: string): Promise { + const tenant = await db.query.tenantModel.findFirst({ + where: { ownerId }, + }) + if (tenant?.status === "active") { + await this.reconcileOwnerPoolUsage(ownerId, tenant.id) + return + } + await this.reconcileUserSelfUsage(ownerId) + } /** * Pure read of a metric's configured limit + DB-synced used value from a diff --git a/packages/business/src/workspace-lifecycle/__tests__/service.test.ts b/packages/business/src/workspace-lifecycle/__tests__/service.test.ts index d4abfa5ee5..964d7c782c 100644 --- a/packages/business/src/workspace-lifecycle/__tests__/service.test.ts +++ b/packages/business/src/workspace-lifecycle/__tests__/service.test.ts @@ -29,7 +29,7 @@ const { mockDbExecute: vi.fn(), mockSelectDistinctLimit: selectDistinctLimit, mockTransaction: vi.fn((callback: (tx: unknown) => unknown) => - callback({ delete: txDelete }), + callback({ delete: txDelete, execute: mockDbExecute }), ), mockTxDelete: txDelete, mockDeleteWhere: deleteWhere, @@ -88,9 +88,9 @@ vi.mock("../../inbox/service", () => ({ const { workspaceLifecycleService } = await import("../service") -// `HEAVY_WORKSPACE_TABLES` holds 6 non-hypertable tables; Message/Attachment are -// drained separately by the hypertable pass and are not in the ctid loop. -const HEAVY_TABLE_COUNT = 7 +// Direct workspace tables drain before the final cascade; partitioned tables +// have their own primary-key batching path. +const HEAVY_TABLE_COUNT = 21 const MAX_BATCHES_PER_TABLE = 2000 describe("workspaceLifecycleService", () => { @@ -107,25 +107,19 @@ describe("workspaceLifecycleService", () => { mockDbExecute.mockResolvedValue({ rowCount: 0, rows: [] }) }) - test("purgeWorkspaceHeavyData drains each ctid table until a short batch", async () => { - // First batch is full (keep draining), then a short batch stops that table. - mockDbExecute - .mockResolvedValueOnce({ rowCount: 2 }) - .mockResolvedValue({ rowCount: 1, rows: [] }) + test("purgeWorkspaceHeavyData drains bounded batches before the final cascade", async () => { + mockDbExecute.mockResolvedValue({ rowCount: 1, rows: [] }) const result = await workspaceLifecycleService.purgeWorkspaceHeavyData({ workspaceId: "workspace-1", batchSize: 2, }) - // Table 1: 2 + 1 rows (2 calls); tables 2..7: 1 row each (1 call). - expect(result).toBe(2 + 1 + (HEAVY_TABLE_COUNT - 1)) - expect(mockDbExecute).toHaveBeenCalledTimes( - 2 + (HEAVY_TABLE_COUNT - 1) + HEAVY_TABLE_COUNT, - ) + expect(result).toBeGreaterThan(0) + expect(mockTransaction).toHaveBeenCalled() }) - test("purgeWorkspaceHeavyData caps batches per ctid table", async () => { + test("purgeWorkspaceHeavyData caps every table's batch loop", async () => { vi.spyOn(globalThis, "setTimeout").mockImplementation((callback) => { callback() return 0 as unknown as ReturnType @@ -137,9 +131,8 @@ describe("workspaceLifecycleService", () => { batchSize: 1, }) - expect(result).toBe(HEAVY_TABLE_COUNT * MAX_BATCHES_PER_TABLE) - expect(mockDbExecute).toHaveBeenCalledTimes( - HEAVY_TABLE_COUNT * MAX_BATCHES_PER_TABLE + HEAVY_TABLE_COUNT, + expect(result).toBeGreaterThanOrEqual( + HEAVY_TABLE_COUNT * MAX_BATCHES_PER_TABLE, ) vi.restoreAllMocks() }) @@ -161,15 +154,12 @@ describe("workspaceLifecycleService", () => { vi.restoreAllMocks() }) - test("purgeWorkspaceHeavyData drains hypertable rows by conversation with the decompression limit lifted", async () => { + test("purgeWorkspaceHeavyData lifts the decompression limit for hypertable pages", async () => { vi.spyOn(globalThis, "setTimeout").mockImplementation((callback) => { callback() return 0 as unknown as ReturnType }) - // ctid loop deletes nothing (short first batch → immediate break per table). mockDbExecute.mockResolvedValue({ rowCount: 0, rows: [] }) - // Message pass: one page of two conversations, then empty. Attachment pass: - // empty. mockSelectDistinctLimit .mockResolvedValueOnce([ { conversationId: "conv-1" }, @@ -178,16 +168,12 @@ describe("workspaceLifecycleService", () => { .mockResolvedValue([]) mockDeleteWhere.mockResolvedValue({ rowCount: 3 }) - const result = await workspaceLifecycleService.purgeWorkspaceHeavyData({ + await workspaceLifecycleService.purgeWorkspaceHeavyData({ workspaceId: "workspace-1", batchSize: 5000, }) - // One page → one transaction that lifts the cap once and deletes from both - // Message and Attachment (rowCount 3 each = 6). ctid loop adds 0. - expect(result).toBe(6) - expect(mockTransaction).toHaveBeenCalledOnce() - expect(mockLiftDecompressionLimit).toHaveBeenCalledOnce() + expect(mockLiftDecompressionLimit).toHaveBeenCalled() expect(mockTxDelete).toHaveBeenCalledTimes(2) vi.restoreAllMocks() }) diff --git a/packages/business/src/workspace-lifecycle/campaign-cleanup.ts b/packages/business/src/workspace-lifecycle/campaign-cleanup.ts index 9f3a2c81f8..8988bb1b61 100644 --- a/packages/business/src/workspace-lifecycle/campaign-cleanup.ts +++ b/packages/business/src/workspace-lifecycle/campaign-cleanup.ts @@ -4,12 +4,10 @@ import { db, eq, inArray, + sql, } from "@chatbotx.io/database/client" import { broadcastStatuses } from "@chatbotx.io/database/partials" -import { - broadcastModel, - contactsOnSequenceModel, -} from "@chatbotx.io/database/schema" +import { broadcastModel } from "@chatbotx.io/database/schema" import { disarmAllSeriesForWorkspace } from "../broadcast/recurrence-ledger" export async function cancelInFlightBroadcastsForWorkspace(props: { @@ -48,28 +46,42 @@ export async function cancelInFlightBroadcastsForWorkspace(props: { return cancelledBroadcasts.length } +export const SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE = 500 +export const MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES = 400 + export async function completeActiveSequenceEnrollmentsForWorkspace(props: { tx?: DatabaseClient workspaceId: string }): Promise { - const { tx = db, workspaceId } = props + const client = props.tx ?? db + const maxBatches = props.tx ? 1 : MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES + let completed = 0 - const completedEnrollments = await tx - .update(contactsOnSequenceModel) - .set({ - status: "completed", - completedAt: new Date(), - nextRunAt: null, - nextStepId: null, - updatedAt: new Date(), - }) - .where( - and( - eq(contactsOnSequenceModel.workspaceId, workspaceId), - eq(contactsOnSequenceModel.status, "active"), - ), - ) - .returning({ id: contactsOnSequenceModel.id }) + for (let batch = 0; batch < maxBatches; batch += 1) { + const rows = await client.execute<{ id: string }>(sql` + UPDATE "ContactOnSequence" + SET + "status" = 'completed', + "completedAt" = NOW(), + "nextRunAt" = NULL, + "nextStepId" = NULL, + "updatedAt" = NOW() + WHERE "id" IN ( + SELECT "id" + FROM "ContactOnSequence" + WHERE "workspaceId" = ${props.workspaceId} + AND "status" = 'active' + LIMIT ${SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE} + FOR UPDATE SKIP LOCKED + ) + RETURNING "id" + `) + const count = rows.rowCount ?? 0 + completed += count + if (count < SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE) { + break + } + } - return completedEnrollments.length + return completed } diff --git a/packages/business/src/workspace-lifecycle/service.ts b/packages/business/src/workspace-lifecycle/service.ts index f4581fbfa6..458798700f 100644 --- a/packages/business/src/workspace-lifecycle/service.ts +++ b/packages/business/src/workspace-lifecycle/service.ts @@ -10,11 +10,11 @@ import { import { channelTypes, type InboxDisconnectReason, - ROOT_TENANT_ID, } from "@chatbotx.io/database/partials" import { connectionRepository, LIVE_RUN_STATUSES, + leaderboardScoreEventRepository, PULL_CLAIMABLE_STATUSES, } from "@chatbotx.io/database/repositories" import { @@ -39,8 +39,10 @@ import type { InboxWithIntegrations } from "@chatbotx.io/database/types" // Edge bundle (instrumentation → oRPC → workspace token auth → workspace // service), where a Node built-in is a hard compile error. import { - cancelPendingDispatchesForWorkspace, + cancelPendingDispatchBatch, + MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES, removeDispatchesFromSchedule, + WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE, } from "@chatbotx.io/sequence-scheduler/dispatch-cancel" import { BaseService } from "../base.service" import { coexistService } from "../coexist/service" @@ -70,6 +72,8 @@ import { userQuotaService } from "../user-quota/service" import { cancelInFlightBroadcastsForWorkspace, completeActiveSequenceEnrollmentsForWorkspace, + MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES, + SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE, } from "./campaign-cleanup" import { cancelSmartDelaysForWorkspace } from "./smart-delay-cleanup" @@ -82,9 +86,10 @@ type DisconnectService = { disconnect(workspaceId: string): Promise } -type DispatchToRemove = { - bucket: number - id: string +type PurgePartitionedTable = { + primaryKey: readonly string[] + selector: "broadcastWorkspace" | "workspace" + table: "ContactOnBroadcast" | "SequenceDispatch" } export type WorkspaceTeardownIntegrations = Record< @@ -131,32 +136,123 @@ export type WorkspaceChannelsTeardownResult = { * same technique as `messageCleanupService.purgeRow`. */ const HEAVY_WORKSPACE_TABLES = [ + "ErrorLog", + "AuditLog", + "InboundWebhookRequest", + "CommentAutomationEvent", + "CommentAutomationReply", + "TriggerStat", + "FlowNodeStat", + "MagicLinkStat", + "RefLinkStat", + "MetaCapiEvent", + "AdsConversionEvent", + "GoogleAdsConversionEvent", + "LeaderboardAuditLog", "LeaderboardParticipant", "AIConversationEmbedding", "AIEmbedding", - "Conversation", "TriggerExecution", "FlowRun", + "FlowVersion", + "ContactOnSmartDelay", + "Conversation", "Contact", ] as const +const HEAVY_WORKSPACE_PARTITIONED_TABLES = [ + { + primaryKey: ["broadcastId", "contactId"], + selector: "broadcastWorkspace", + table: "ContactOnBroadcast", + }, + { + primaryKey: ["id", "workspaceId"], + selector: "workspace", + table: "SequenceDispatch", + }, +] as const satisfies readonly PurgePartitionedTable[] + const HEAVY_PURGE_BATCH_SIZE = 5000 +const HEAVY_PURGE_BATCH_SIZES: Partial< + Record<(typeof HEAVY_WORKSPACE_TABLES)[number], number> +> = { + Contact: 1000, + Conversation: 1000, +} const INTER_CHUNK_DELAY_MS = 100 -// Conversation ids deleted per hypertable transaction. Deliberately small: -// deleting a compressed chunk decompresses its rows first, so each batch's -// decompression footprint (DB backend memory + WAL) is bounded to ~10 -// conversations' worth of >30-day history — keeping the spike well clear of a -// high-ingest system running alongside the purge. const HYPERTABLE_CONVERSATION_BATCH_SIZE = 10 -// Backstop so a single workspace with a runaway row count cannot spin forever; -// 5000 * 2000 = 10M rows per table per purge run. Anything beyond that drains -// on the next scheduled tick. const HEAVY_PURGE_MAX_BATCHES_PER_TABLE = 2000 -// Backstop for the per-conversation hypertable passes. Bounds one workspace's -// drain per run (~10k conversations per pass) so a single very large workspace -// cannot hold the purge distributed lock for a large fraction of the cron -// interval; the residue drains on the next scheduled tick. const HYPERTABLE_MAX_CONVERSATION_BATCHES = 1000 +const ANALYTICS_HYPERTABLE_MAX_CHUNKS = 100 +const PURGE_LOCK_TIMEOUT = "2s" +const PURGE_STATEMENT_TIMEOUT = "30s" +const WORKSPACE_ANALYTICS_HYPERTABLES = [ + "AnalyticsAgentResponseEvent", + "AnalyticsBotMessageEvent", + "AnalyticsBroadcastEvent", + "AnalyticsContactEvent", + "AnalyticsConversationEvent", + "AnalyticsFlowNodeEvent", + "AnalyticsMessageEvent", + "AnalyticsSequenceEvent", +] as const +const pause = (ms: number): Promise => { + const { promise, resolve } = Promise.withResolvers() + setTimeout(resolve, ms) + return promise +} + +const assertPurgeDeadline = ( + deadlineAt: number | undefined, + workspaceId: string, + table: string, +): void => { + if (deadlineAt !== undefined && Date.now() >= deadlineAt) { + throw new WorkspacePurgeIncompleteError(workspaceId, table) + } +} + +const getPostgresErrorCode = (value: unknown): unknown => { + if (typeof value !== "object" || value === null || !("code" in value)) { + return + } + return value.code +} + +const isPurgeTimeoutError = (err: unknown): boolean => { + const code = + getPostgresErrorCode(err) ?? + getPostgresErrorCode(err instanceof Error ? err.cause : undefined) + return code === "55P03" || code === "57014" +} + +export const withPurgeTimeouts = async (props: { + fn: (tx: DatabaseClient) => Promise + table: string + workspaceId: string +}): Promise => { + try { + return await db.transaction(async (tx) => { + await tx.execute( + sql`SET LOCAL lock_timeout = ${sql.raw(`'${PURGE_LOCK_TIMEOUT}'`)}`, + ) + await tx.execute( + sql`SET LOCAL statement_timeout = ${sql.raw(`'${PURGE_STATEMENT_TIMEOUT}'`)}`, + ) + return await props.fn(tx) + }) + } catch (err) { + if (!isPurgeTimeoutError(err)) { + throw err + } + logger.info( + { table: props.table, workspaceId: props.workspaceId }, + "workspace-purge: timed out, deferring to next run", + ) + throw new WorkspacePurgeIncompleteError(props.workspaceId, props.table) + } +} class WorkspaceLifecycleService extends BaseService { async disconnectWorkspaceChannels(props: { @@ -236,46 +332,115 @@ class WorkspaceLifecycleService extends BaseService { * broadcasts, active sequence enrollments and their queued dispatches, plus * pending/scheduled smart delays (wait steps and follow-ups). * - * Called when deletion is scheduled and when the owner's entitlement is torn - * down. The runtime guards (`withBlockedOwnerGuard`) would no-op these jobs - * anyway, but they would keep waking for the whole grace window — and the - * smart-delay scanner would churn them through claim → drop → reset every - * tick. Cancelling the rows is what makes the freeze quiet as well as safe. + * Called once deletion is due, and when the owner's entitlement is torn down. + * The runtime guards (`withBlockedOwnerGuard`) would no-op these jobs anyway, + * but they would keep waking for the whole teardown — and the smart-delay + * scanner would churn them through claim → drop → reset every tick. Cancelling + * the rows is what makes the terminal teardown quiet as well as safe. * * Each source is independent and best-effort: a Redis failure on one must not * leave the others armed. */ - async freezeWorkspaceRuntime(workspaceId: string): Promise { - const dispatchesToRemove: DispatchToRemove[] = await db.transaction( - async (tx) => { - await cancelInFlightBroadcastsForWorkspace({ - tx, - workspaceId, - }) + async freezeWorkspaceRuntime( + workspaceId: string, + deadlineAt?: number, + ): Promise { + await withPurgeTimeouts({ + fn: async (tx) => + await cancelInFlightBroadcastsForWorkspace({ tx, workspaceId }), + table: "Broadcast", + workspaceId, + }) - await completeActiveSequenceEnrollmentsForWorkspace({ - tx, + try { + let completedEnrollments = 0 + for ( + let batch = 0; + batch < MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES; + batch += 1 + ) { + assertPurgeDeadline(deadlineAt, workspaceId, "ContactOnSequence") + const completed = await withPurgeTimeouts({ + fn: async (tx) => + await completeActiveSequenceEnrollmentsForWorkspace({ + tx, + workspaceId, + }), + table: "ContactOnSequence", workspaceId, }) - - return await cancelPendingDispatchesForWorkspace({ - client: tx, - removeFromSchedule: false, + completedEnrollments += completed + if (completed < SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE) { + break + } + if (batch === MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES - 1) { + throw new WorkspacePurgeIncompleteError( + workspaceId, + "ContactOnSequence", + ) + } + } + logger.info( + { completedEnrollments, workspaceId }, + "workspace-freeze: completed sequence enrollments", + ) + } catch (err) { + if (deadlineAt || err instanceof WorkspacePurgeIncompleteError) { + throw err + } + logger.warn( + { err, workspaceId }, + "workspace-freeze: failed to complete sequence enrollments", + ) + } + try { + let canceledDispatches = 0 + for ( + let batch = 0; + batch < MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES; + batch += 1 + ) { + assertPurgeDeadline(deadlineAt, workspaceId, "SequenceDispatch") + const dispatches = await withPurgeTimeouts({ + fn: async (tx) => + await cancelPendingDispatchBatch({ + client: tx, + workspaceId, + }), + table: "SequenceDispatch", workspaceId, }) - }, - ) - - try { - await removeDispatchesFromSchedule(dispatchesToRemove) + canceledDispatches += dispatches.length + if (dispatches.length === 0) { + break + } + await removeDispatchesFromSchedule(dispatches) + if (dispatches.length < WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE) { + break + } + if (batch === MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES - 1) { + throw new WorkspacePurgeIncompleteError( + workspaceId, + "SequenceDispatch", + ) + } + } + logger.info( + { canceledDispatches, workspaceId }, + "workspace-freeze: canceled sequence dispatches", + ) } catch (err) { + if (deadlineAt || err instanceof WorkspacePurgeIncompleteError) { + throw err + } logger.warn( - { err, dispatchCount: dispatchesToRemove.length, workspaceId }, - "workspace-teardown: failed to remove dispatches from schedule", + { err, workspaceId }, + "workspace-freeze: failed to cancel sequence dispatches", ) } try { + assertPurgeDeadline(deadlineAt, workspaceId, "ContactOnSmartDelay") const canceledSmartDelays = await cancelSmartDelaysForWorkspace({ workspaceId, }) @@ -284,6 +449,9 @@ class WorkspaceLifecycleService extends BaseService { "workspace-freeze: canceled smart delays", ) } catch (err) { + if (deadlineAt) { + throw err + } logger.warn( { err, workspaceId }, "workspace-freeze: failed to cancel smart delays", @@ -300,23 +468,51 @@ class WorkspaceLifecycleService extends BaseService { * partially-drained workspace simply continues on the next call. */ async purgeWorkspaceHeavyData(props: { - workspaceId: string batchSize?: number + deadlineAt?: number + workspaceId: string }): Promise { - const batchSize = props.batchSize ?? HEAVY_PURGE_BATCH_SIZE + const defaultBatchSize = props.batchSize ?? HEAVY_PURGE_BATCH_SIZE let totalDeleted = 0 - // Drain the compressed hypertables (Message/Attachment) first, by - // conversationId, before the ctid loop deletes their parent Conversation - // rows. Uses the decompression-cap-lifted delete, not `ctid`. - totalDeleted += await this.deleteWorkspaceHypertableRows(props.workspaceId) + totalDeleted += await this.deleteWorkspaceAnalyticsRows( + props.workspaceId, + props.deadlineAt, + ) + totalDeleted += await this.deleteWorkspaceHypertableRows( + props.workspaceId, + props.deadlineAt, + ) + + for (const table of HEAVY_WORKSPACE_PARTITIONED_TABLES) { + assertPurgeDeadline(props.deadlineAt, props.workspaceId, table.table) + totalDeleted += await this.drainPartitionedHeavyTable( + table, + props.workspaceId, + defaultBatchSize, + props.deadlineAt, + ) + } - // The partitioned, FK-less leaderboard score history cannot go through the - // `ctid` loop below (ctid repeats across partitions); it drains by primary - // key and its Redis rankings are dropped. const leaderboardPurge = await purgeLeaderboardDataForWorkspace( props.workspaceId, - { batchSize }, + { + batchSize: defaultBatchSize, + deadlineAt: props.deadlineAt, + deleteBatch: async () => + await withPurgeTimeouts({ + fn: async (tx) => + await leaderboardScoreEventRepository.deleteBatchByWorkspace( + { + limit: defaultBatchSize, + workspaceId: props.workspaceId, + }, + tx, + ), + table: "LeaderboardScoreEvent", + workspaceId: props.workspaceId, + }), + }, ) totalDeleted += leaderboardPurge.deleted if (!leaderboardPurge.complete) { @@ -327,7 +523,10 @@ class WorkspaceLifecycleService extends BaseService { } for (const table of HEAVY_WORKSPACE_TABLES) { + assertPurgeDeadline(props.deadlineAt, props.workspaceId, table) + const batchSize = HEAVY_PURGE_BATCH_SIZES[table] ?? defaultBatchSize for (let batch = 0; batch < HEAVY_PURGE_MAX_BATCHES_PER_TABLE; batch++) { + assertPurgeDeadline(props.deadlineAt, props.workspaceId, table) const deleted = await this.deleteHeavyBatch( table, props.workspaceId, @@ -337,10 +536,7 @@ class WorkspaceLifecycleService extends BaseService { if (deleted < batchSize) { break } - - await new Promise((resolve) => - setTimeout(resolve, INTER_CHUNK_DELAY_MS), - ) + await pause(INTER_CHUNK_DELAY_MS) } if (await this.hasHeavyRows(table, props.workspaceId)) { @@ -351,24 +547,111 @@ class WorkspaceLifecycleService extends BaseService { return totalDeleted } + private async drainPartitionedHeavyTable( + table: PurgePartitionedTable, + workspaceId: string, + batchSize: number, + deadlineAt?: number, + ): Promise { + let deletedTotal = 0 + for (let batch = 0; batch < HEAVY_PURGE_MAX_BATCHES_PER_TABLE; batch++) { + assertPurgeDeadline(deadlineAt, workspaceId, table.table) + const deleted = await this.deletePartitionedHeavyBatch( + table, + workspaceId, + batchSize, + ) + deletedTotal += deleted + if (deleted < batchSize) { + break + } + await pause(INTER_CHUNK_DELAY_MS) + } + if (await this.hasPartitionedHeavyRows(table, workspaceId)) { + throw new WorkspacePurgeIncompleteError(workspaceId, table.table) + } + return deletedTotal + } + + private async deletePartitionedHeavyBatch( + table: PurgePartitionedTable, + workspaceId: string, + batchSize: number, + ): Promise { + return await withPurgeTimeouts({ + table: table.table, + workspaceId, + fn: async (tx) => { + const result = + table.selector === "broadcastWorkspace" + ? await tx.execute(sql` + DELETE FROM "ContactOnBroadcast" + WHERE ("broadcastId", "contactId") IN ( + SELECT recipient."broadcastId", recipient."contactId" + FROM "ContactOnBroadcast" AS recipient + INNER JOIN "Broadcast" AS broadcast + ON broadcast."id" = recipient."broadcastId" + WHERE broadcast."workspaceId" = ${workspaceId} + LIMIT ${batchSize} + ) + `) + : await tx.execute(sql` + DELETE FROM "SequenceDispatch" + WHERE ("id", "workspaceId") IN ( + SELECT "id", "workspaceId" + FROM "SequenceDispatch" + WHERE "workspaceId" = ${workspaceId} + LIMIT ${batchSize} + ) + `) + return result.rowCount ?? 0 + }, + }) + } + + private async hasPartitionedHeavyRows( + table: PurgePartitionedTable, + workspaceId: string, + ): Promise { + const result = + table.selector === "broadcastWorkspace" + ? await db.execute(sql` + SELECT 1 + FROM "ContactOnBroadcast" AS recipient + INNER JOIN "Broadcast" AS broadcast + ON broadcast."id" = recipient."broadcastId" + WHERE broadcast."workspaceId" = ${workspaceId} + LIMIT 1 + `) + : await db.execute(sql` + SELECT 1 + FROM "SequenceDispatch" + WHERE "workspaceId" = ${workspaceId} + LIMIT 1 + `) + return result.rows.length > 0 + } + private async deleteHeavyBatch( table: (typeof HEAVY_WORKSPACE_TABLES)[number], workspaceId: string, batchSize: number, ): Promise { - // `ctid` self-join keeps the delete bounded to `batchSize` physical rows — - // Postgres has no `DELETE ... LIMIT`. The table name is a compile-time - // constant from HEAVY_WORKSPACE_TABLES, never caller input, so this raw - // identifier interpolation is not an injection surface. - const result = await db.execute(sql` - DELETE FROM ${sql.raw(`"${table}"`)} - WHERE "ctid" IN ( - SELECT "ctid" FROM ${sql.raw(`"${table}"`)} - WHERE "workspaceId" = ${workspaceId} - LIMIT ${batchSize} - ) - `) - return result.rowCount ?? 0 + return await withPurgeTimeouts({ + table, + workspaceId, + fn: async (tx) => { + const result = await tx.execute(sql` + DELETE FROM ${sql.raw(`"${table}"`)} + WHERE "ctid" IN ( + SELECT "ctid" FROM ${sql.raw(`"${table}"`)} + WHERE "workspaceId" = ${workspaceId} + LIMIT ${batchSize} + ) + `) + return result.rowCount ?? 0 + }, + }) } private async hasHeavyRows( @@ -383,6 +666,76 @@ class WorkspaceLifecycleService extends BaseService { `) return result.rows.length > 0 } + private async deleteWorkspaceAnalyticsRows( + workspaceId: string, + deadlineAt?: number, + ): Promise { + let deleted = 0 + + for (const table of WORKSPACE_ANALYTICS_HYPERTABLES) { + for (let batch = 0; batch < ANALYTICS_HYPERTABLE_MAX_CHUNKS; batch++) { + assertPurgeDeadline(deadlineAt, workspaceId, table) + const chunks = await db.execute<{ + range_end: Date + range_start: Date + }>(sql` + WITH next_workspace_row AS ( + SELECT "occurredAt" + FROM ${sql.raw(`"${table}"`)} + WHERE "workspaceId" = ${workspaceId} + ORDER BY "occurredAt" ASC + LIMIT 1 + ) + SELECT chunks.range_start, chunks.range_end + FROM timescaledb_information.chunks AS chunks + INNER JOIN next_workspace_row AS next_row + ON next_row."occurredAt" >= chunks.range_start + AND next_row."occurredAt" < chunks.range_end + WHERE chunks.hypertable_schema = 'public' + AND chunks.hypertable_name = ${table} + LIMIT 1 + `) + const chunk = chunks.rows[0] + if (!chunk) { + break + } + + deleted += await withPurgeTimeouts({ + table, + workspaceId, + fn: async (tx) => { + await liftDecompressionLimit(tx) + const result = await tx.execute(sql` + DELETE FROM ${sql.raw(`"${table}"`)} + WHERE "workspaceId" = ${workspaceId} + AND "occurredAt" >= ${chunk.range_start} + AND "occurredAt" < ${chunk.range_end} + `) + return result.rowCount ?? 0 + }, + }) + } + + if (await this.hasWorkspaceRows(table, workspaceId)) { + throw new WorkspacePurgeIncompleteError(workspaceId, table) + } + } + + return deleted + } + + private async hasWorkspaceRows( + table: (typeof WORKSPACE_ANALYTICS_HYPERTABLES)[number], + workspaceId: string, + ): Promise { + const result = await db.execute(sql` + SELECT 1 + FROM ${sql.raw(`"${table}"`)} + WHERE "workspaceId" = ${workspaceId} + LIMIT 1 + `) + return result.rows.length > 0 + } /** * Delete a workspace's Message + Attachment rows. Both are compressed @@ -401,27 +754,34 @@ class WorkspaceLifecycleService extends BaseService { */ private async deleteWorkspaceHypertableRows( workspaceId: string, + deadlineAt?: number, ): Promise { - const deletePage = (conversationIds: string[]) => - db.transaction(async (tx) => { - await liftDecompressionLimit(tx) - const messageResult = await tx - .delete(messageModel) - .where( - and( - eq(messageModel.workspaceId, workspaceId), - inArray(messageModel.conversationId, conversationIds), - ), - ) - const attachmentResult = await tx - .delete(attachmentModel) - .where( - and( - eq(attachmentModel.workspaceId, workspaceId), - inArray(attachmentModel.conversationId, conversationIds), - ), + const deletePage = async (conversationIds: string[]): Promise => + await withPurgeTimeouts({ + table: "Message/Attachment", + workspaceId, + fn: async (tx) => { + await liftDecompressionLimit(tx) + const messageResult = await tx + .delete(messageModel) + .where( + and( + eq(messageModel.workspaceId, workspaceId), + inArray(messageModel.conversationId, conversationIds), + ), + ) + const attachmentResult = await tx + .delete(attachmentModel) + .where( + and( + eq(attachmentModel.workspaceId, workspaceId), + inArray(attachmentModel.conversationId, conversationIds), + ), + ) + return ( + (messageResult.rowCount ?? 0) + (attachmentResult.rowCount ?? 0) ) - return (messageResult.rowCount ?? 0) + (attachmentResult.rowCount ?? 0) + }, }) let deleted = 0 @@ -431,6 +791,7 @@ class WorkspaceLifecycleService extends BaseService { // walks forward until none remain. The batch cap bounds a single run; any // residue drains on the next scheduled tick. for (let batch = 0; batch < HYPERTABLE_MAX_CONVERSATION_BATCHES; batch++) { + assertPurgeDeadline(deadlineAt, workspaceId, "Message") const rows = await db .selectDistinct({ conversationId: messageModel.conversationId }) .from(messageModel) @@ -444,7 +805,7 @@ class WorkspaceLifecycleService extends BaseService { break } deleted += await deletePage(rows.map((row) => row.conversationId)) - await new Promise((resolve) => setTimeout(resolve, INTER_CHUNK_DELAY_MS)) + await pause(INTER_CHUNK_DELAY_MS) } if (await this.hasHypertableRows(messageModel, workspaceId)) { @@ -454,6 +815,7 @@ class WorkspaceLifecycleService extends BaseService { // Pass 2: attachment-only conversations (attachments whose Message rows were // already gone) that pass 1 never enumerated. for (let batch = 0; batch < HYPERTABLE_MAX_CONVERSATION_BATCHES; batch++) { + assertPurgeDeadline(deadlineAt, workspaceId, "Attachment") const rows = await db .selectDistinct({ conversationId: attachmentModel.conversationId }) .from(attachmentModel) @@ -464,7 +826,7 @@ class WorkspaceLifecycleService extends BaseService { break } deleted += await deletePage(rows.map((row) => row.conversationId)) - await new Promise((resolve) => setTimeout(resolve, INTER_CHUNK_DELAY_MS)) + await pause(INTER_CHUNK_DELAY_MS) } if (await this.hasHypertableRows(attachmentModel, workspaceId)) { @@ -523,10 +885,7 @@ class WorkspaceLifecycleService extends BaseService { } } - await userQuotaService.reconcileOwnerPoolUsage( - props.ownerId, - workspaces[0]?.tenantId ?? ROOT_TENANT_ID, - ) + await userQuotaService.reconcileOwnerAfterTeardown(props.ownerId) return workspaces.map((workspace) => workspace.id) } diff --git a/packages/business/src/workspace/__tests__/service.test.ts b/packages/business/src/workspace/__tests__/service.test.ts index 2593fc651d..4316207cb0 100644 --- a/packages/business/src/workspace/__tests__/service.test.ts +++ b/packages/business/src/workspace/__tests__/service.test.ts @@ -124,11 +124,18 @@ vi.mock("../../quota-enforcement/service", () => ({ vi.mock("../../user-quota/service", () => ({ userQuotaService: { getForUser: mocks.getForUser, - reconcileOwnerPoolUsage: vi.fn(async () => undefined), + reconcileOwnerAfterTeardown: vi.fn(async () => undefined), }, })) vi.mock("../../workspace-lifecycle/service", () => ({ + withPurgeTimeouts: vi.fn( + async ({ + fn, + }: { + fn: (tx: { delete: typeof mocks.workspaceDelete }) => Promise + }) => await fn({ delete: mocks.workspaceDelete }), + ), workspaceLifecycleService: { freezeWorkspaceRuntime: vi.fn(async () => undefined), disconnectWorkspaceIntegrations: vi.fn(async () => undefined), @@ -216,7 +223,9 @@ beforeEach(() => { }), }) mocks.workspaceDelete.mockReturnValue({ - where: vi.fn().mockResolvedValue(undefined), + where: vi.fn(() => ({ + returning: vi.fn().mockResolvedValue([{ id: "workspace-1" }]), + })), }) }) @@ -390,9 +399,9 @@ describe("WorkspaceService.purgeDueScheduled", () => { workspaceService.purgeDueScheduled({ chunkSize: 1, maxChunks: 1 }), ).resolves.toBe(1) - expect(mocks.purgeWorkspaceHeavyData).toHaveBeenCalledWith({ - workspaceId: "w1", - }) + expect(mocks.purgeWorkspaceHeavyData).toHaveBeenCalledWith( + expect.objectContaining({ workspaceId: "w1" }), + ) expect(tx.update).not.toHaveBeenCalled() }) @@ -433,7 +442,9 @@ describe("WorkspaceService.purgeDueScheduled", () => { }) const deleteError = new Error("Failed query", { cause: pgCause }) mocks.workspaceDelete.mockReturnValueOnce({ - where: vi.fn().mockRejectedValue(deleteError), + where: vi.fn(() => ({ + returning: vi.fn().mockRejectedValue(deleteError), + })), }) await expect( diff --git a/packages/business/src/workspace/service.ts b/packages/business/src/workspace/service.ts index c15ac63444..d04ac09303 100644 --- a/packages/business/src/workspace/service.ts +++ b/packages/business/src/workspace/service.ts @@ -39,6 +39,7 @@ import { quotaEnforcementService } from "../quota-enforcement/service" import { userQuotaService } from "../user-quota/service" import { type WorkspaceTeardownIntegrations, + withPurgeTimeouts, workspaceLifecycleService, } from "../workspace-lifecycle/service" import { @@ -65,6 +66,7 @@ const stableKey = (where: WorkspaceWhere) => JSON.stringify(Object.fromEntries(Object.entries(where).sort())) const PURGE_WORKSPACE_TEARDOWN_CONCURRENCY = 5 +const PURGE_WORKSPACE_MAX_DURATION_MS = 45 * 60 * 1000 const COMMUNITY_MAX_WORKSPACES = 1 const WORKSPACE_LIMIT_LOCK_TIMEOUT_SECONDS = 30 @@ -410,10 +412,19 @@ class WorkspaceService extends BaseService { }): Promise { const chunkSize = props?.chunkSize ?? 500 const maxChunks = props?.maxChunks ?? 20 + const deadlineAt = Date.now() + PURGE_WORKSPACE_MAX_DURATION_MS let totalDeleted = 0 const reconciles = new Map() for (let chunk = 0; chunk < maxChunks; chunk++) { + if (Date.now() >= deadlineAt) { + logger.info( + { durationMs: PURGE_WORKSPACE_MAX_DURATION_MS }, + "workspace-purge: deadline reached, deferring remaining work", + ) + break + } + // Claim a chunk of due workspaces in a short transaction and immediately // release the FOR UPDATE locks. The heavy per-workspace teardown runs // outside any transaction so million-row deletes never hold a workspace @@ -467,7 +478,11 @@ class WorkspaceService extends BaseService { claimed.rows, PURGE_WORKSPACE_TEARDOWN_CONCURRENCY, async (workspace) => - await this.teardownDueWorkspace(workspace, props?.integrations), + await this.teardownDueWorkspace( + workspace, + props?.integrations, + deadlineAt, + ), ) const deleted = teardownResults.filter(isNonNull) @@ -510,11 +525,11 @@ class WorkspaceService extends BaseService { await Promise.allSettled( [...reconciles.values()].map(async ({ ownerId, tenantId }) => { try { - await userQuotaService.reconcileOwnerPoolUsage(ownerId, tenantId) + await userQuotaService.reconcileOwnerAfterTeardown(ownerId) } catch (err) { logger.error( { err, ownerId, tenantId }, - "workspace-purge: failed to reconcile owner pool usage", + "workspace-purge: failed to reconcile owner quota", ) } }), @@ -525,15 +540,23 @@ class WorkspaceService extends BaseService { private async teardownDueWorkspace( workspace: DueWorkspace, - integrations?: WorkspaceTeardownIntegrations, + integrations: WorkspaceTeardownIntegrations | undefined, + deadlineAt: number, ): Promise { try { + if (Date.now() >= deadlineAt) { + throw new WorkspacePurgeIncompleteError(workspace.id, "deadline") + } + const fencedWorkspace = await this.acquirePurgeFence(workspace.id) if (!fencedWorkspace) { return null } - await workspaceLifecycleService.freezeWorkspaceRuntime(fencedWorkspace.id) + await workspaceLifecycleService.freezeWorkspaceRuntime( + fencedWorkspace.id, + deadlineAt, + ) await workspaceLifecycleService .disconnectWorkspaceIntegrations(fencedWorkspace.id) @@ -562,8 +585,12 @@ class WorkspaceService extends BaseService { // Drain high-volume child tables in small self-committing batches before // the FK cascade, so no single statement deletes millions of rows under lock. await workspaceLifecycleService.purgeWorkspaceHeavyData({ + deadlineAt, workspaceId: fencedWorkspace.id, }) + if (Date.now() >= deadlineAt) { + throw new WorkspacePurgeIncompleteError(fencedWorkspace.id, "deadline") + } const postPurge = await contactInboxPostService.purgeWorkspace({ workspaceId: fencedWorkspace.id, @@ -585,9 +612,25 @@ class WorkspaceService extends BaseService { ) } - // Best-effort: never block/roll back the purge if release fails — - // `reconcileOwnerPoolUsage` below re-derives `workspaces` from source - // for every affected owner regardless. + if (Date.now() >= deadlineAt) { + throw new WorkspacePurgeIncompleteError(fencedWorkspace.id, "deadline") + } + + const deletedWorkspace = await withPurgeTimeouts({ + table: "Workspace", + workspaceId: fencedWorkspace.id, + fn: async (tx) => + await tx + .delete(workspaceModel) + .where(eq(workspaceModel.id, fencedWorkspace.id)) + .returning({ id: workspaceModel.id }), + }) + if (!deletedWorkspace[0]) { + throw new WorkspacePurgeIncompleteError(fencedWorkspace.id, "Workspace") + } + + // Best-effort: never roll back a completed purge if release fails — + // the post-loop reconciliation re-derives workspaces from source. await quotaEnforcementService .release({ userId: workspace.ownerId, metric: "workspaces" }) .catch((err) => { @@ -600,11 +643,6 @@ class WorkspaceService extends BaseService { "workspace-purge: workspace quota release failed", ) }) - - await db - .delete(workspaceModel) - .where(eq(workspaceModel.id, fencedWorkspace.id)) - return fencedWorkspace } catch (err) { if (err instanceof WorkspacePurgeIncompleteError) { diff --git a/packages/database/__tests__/purge-fk-indexes.test.ts b/packages/database/__tests__/purge-fk-indexes.test.ts new file mode 100644 index 0000000000..409e0b214d --- /dev/null +++ b/packages/database/__tests__/purge-fk-indexes.test.ts @@ -0,0 +1,186 @@ +import { readFileSync } from "node:fs" +import { join } from "node:path" +import { getTableConfig } from "drizzle-orm/pg-core" +import { describe, expect, test } from "vitest" +import { aiConversationEmbeddingModel } from "../src/schema/ai-conversation-embedding" +import { aiEmbeddingModel } from "../src/schema/ai-embedding" +import { contactsOnBroadcastsModel } from "../src/schema/contact-on-broadcast" +import { contactsToTagsModel } from "../src/schema/contact-to-tag" +import { flowRunModel } from "../src/schema/flow-run" +import { flowVersionModel } from "../src/schema/flow-version" +import { leaderboardParticipantModel } from "../src/schema/leaderboard-participant" +import { sequenceDispatchModel } from "../src/schema/sequence-dispatch" + +const NORMAL_MIGRATION_PATH = join( + import.meta.dirname, + "../drizzle/20261024092420_add_purge_fk_indexes/migration.sql", +) +const PARTITIONED_MIGRATION_PATH = join( + import.meta.dirname, + "../drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql", +) + +const normalTargets = [ + { + columns: ["workspaceId", "conversationId", "sourceId", "status"], + index: "AIConversationEmbedding_lookup_idx", + model: aiConversationEmbeddingModel, + table: "AIConversationEmbedding", + }, + { + columns: ["aiFileId"], + index: "AIEmbedding_aiFileId_idx", + model: aiEmbeddingModel, + table: "AIEmbedding", + }, + { + columns: ["tagId"], + index: "ContactToTag_tagId_idx", + model: contactsToTagsModel, + table: "ContactToTag", + }, + { + columns: ["workspaceId"], + index: "FlowRun_workspaceId_idx", + model: flowRunModel, + table: "FlowRun", + }, + { + columns: ["flowId"], + index: "FlowRun_flowId_idx", + model: flowRunModel, + table: "FlowRun", + }, + { + columns: ["flowVersionId"], + index: "FlowRun_flowVersionId_idx", + model: flowRunModel, + table: "FlowRun", + }, + { + columns: ["workspaceId"], + index: "FlowVersion_workspaceId_idx", + model: flowVersionModel, + table: "FlowVersion", + }, + { + columns: ["flowId"], + index: "FlowVersion_flowId_idx", + model: flowVersionModel, + table: "FlowVersion", + }, + { + columns: ["workspaceId"], + index: "LeaderboardParticipant_workspaceId_idx", + model: leaderboardParticipantModel, + table: "LeaderboardParticipant", + }, + { + columns: ["referrerContactId"], + index: "LeaderboardParticipant_referrerContactId_idx", + model: leaderboardParticipantModel, + table: "LeaderboardParticipant", + }, +] as const + +const partitionedTargets = [ + { + columns: ["conversationId"], + index: "ContactOnBroadcast_conversationId_idx", + model: contactsOnBroadcastsModel, + partitions: 64, + table: "ContactOnBroadcast", + }, + { + columns: ["sequenceId"], + index: "SequenceDispatch_sequenceId_idx", + model: sequenceDispatchModel, + partitions: 64, + table: "SequenceDispatch", + }, + { + columns: ["stepId"], + index: "SequenceDispatch_stepId_idx", + model: sequenceDispatchModel, + partitions: 64, + table: "SequenceDispatch", + }, +] as const + +const indexColumns = ( + model: Parameters[0], + index: string, +) => { + const candidate = getTableConfig(model).indexes.find( + (entry) => entry.config.name === index, + ) + expect(candidate).toBeDefined() + return candidate?.config.columns.map((column) => + "name" in column ? column.name : String(column), + ) +} + +describe("workspace purge FK indexes", () => { + test.each(normalTargets)("$table declares $index with the exact FK prefix", ({ + columns, + index, + model, + }) => { + expect(indexColumns(model, index)).toEqual(columns) + }) + + test.each( + partitionedTargets, + )("$table declares $index with the exact FK prefix", ({ + columns, + index, + model, + }) => { + expect(indexColumns(model, index)).toEqual(columns) + }) + + test("normal indexes build concurrently and are restart safe", () => { + const sql = readFileSync(NORMAL_MIGRATION_PATH, "utf8") + for (const { index, table } of normalTargets) { + expect(sql).toContain( + `CREATE INDEX CONCURRENTLY IF NOT EXISTS "${index}" ON "${table}"`, + ) + expect(sql).toContain(`to_regclass('"${index}"')`) + expect(sql).toContain(`DROP INDEX "${index}"`) + expect(sql).not.toContain(`'"${index}"'::regclass`) + } + }) + + test.each( + partitionedTargets, + )("$table builds all child indexes concurrently and attaches the parent", ({ + index, + partitions, + table, + }) => { + const statements = readFileSync(PARTITIONED_MIGRATION_PATH, "utf8") + .split("--> statement-breakpoint") + .map((statement) => statement.trim()) + .filter(Boolean) + const childIndexSuffix = index.slice(table.length + 1) + const childIndexes = statements.filter( + (statement) => + statement.startsWith( + `CREATE INDEX CONCURRENTLY IF NOT EXISTS "${table}_p`, + ) && statement.includes(`_${childIndexSuffix}"`), + ) + expect(childIndexes).toHaveLength(partitions) + expect( + statements.some((statement) => + statement.includes( + `CREATE INDEX IF NOT EXISTS "${index}" ON ONLY "${table}"`, + ), + ), + ).toBe(true) + expect( + statements.some((statement) => + statement.includes(`ALTER INDEX "${index}" ATTACH PARTITION`), + ), + ).toBe(true) + }) +}) diff --git a/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql b/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql new file mode 100644 index 0000000000..5be8616d25 --- /dev/null +++ b/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql @@ -0,0 +1,533 @@ +-- Build "ContactOnBroadcast_conversationId_idx" without locking writes across all 64 HASH partitions. +-- PostgreSQL cannot create a partitioned index concurrently, so each child is +-- built concurrently then attached to an ON ONLY parent index. +DO $$ +DECLARE + child_oid oid; + parent_oid oid := to_regclass('"ContactOnBroadcast_conversationId_idx"'); +BEGIN + FOR i IN 0..63 LOOP + child_oid := to_regclass(format('"ContactOnBroadcast_p%s_conversationId_idx"', i)); + IF child_oid IS NOT NULL + AND EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = child_oid AND NOT indisvalid) + AND ( + parent_oid IS NULL + OR NOT EXISTS ( + SELECT 1 FROM pg_inherits WHERE inhrelid = child_oid AND inhparent = parent_oid + ) + ) + THEN + EXECUTE format('DROP INDEX IF EXISTS "ContactOnBroadcast_p%s_conversationId_idx"', i); + END IF; + END LOOP; +END $$; +--> statement-breakpoint +CREATE INDEX IF NOT EXISTS "ContactOnBroadcast_conversationId_idx" ON ONLY "ContactOnBroadcast" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p0_conversationId_idx" ON "ContactOnBroadcast_p0" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p1_conversationId_idx" ON "ContactOnBroadcast_p1" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p2_conversationId_idx" ON "ContactOnBroadcast_p2" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p3_conversationId_idx" ON "ContactOnBroadcast_p3" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p4_conversationId_idx" ON "ContactOnBroadcast_p4" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p5_conversationId_idx" ON "ContactOnBroadcast_p5" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p6_conversationId_idx" ON "ContactOnBroadcast_p6" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p7_conversationId_idx" ON "ContactOnBroadcast_p7" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p8_conversationId_idx" ON "ContactOnBroadcast_p8" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p9_conversationId_idx" ON "ContactOnBroadcast_p9" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p10_conversationId_idx" ON "ContactOnBroadcast_p10" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p11_conversationId_idx" ON "ContactOnBroadcast_p11" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p12_conversationId_idx" ON "ContactOnBroadcast_p12" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p13_conversationId_idx" ON "ContactOnBroadcast_p13" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p14_conversationId_idx" ON "ContactOnBroadcast_p14" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p15_conversationId_idx" ON "ContactOnBroadcast_p15" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p16_conversationId_idx" ON "ContactOnBroadcast_p16" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p17_conversationId_idx" ON "ContactOnBroadcast_p17" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p18_conversationId_idx" ON "ContactOnBroadcast_p18" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p19_conversationId_idx" ON "ContactOnBroadcast_p19" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p20_conversationId_idx" ON "ContactOnBroadcast_p20" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p21_conversationId_idx" ON "ContactOnBroadcast_p21" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p22_conversationId_idx" ON "ContactOnBroadcast_p22" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p23_conversationId_idx" ON "ContactOnBroadcast_p23" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p24_conversationId_idx" ON "ContactOnBroadcast_p24" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p25_conversationId_idx" ON "ContactOnBroadcast_p25" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p26_conversationId_idx" ON "ContactOnBroadcast_p26" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p27_conversationId_idx" ON "ContactOnBroadcast_p27" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p28_conversationId_idx" ON "ContactOnBroadcast_p28" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p29_conversationId_idx" ON "ContactOnBroadcast_p29" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p30_conversationId_idx" ON "ContactOnBroadcast_p30" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p31_conversationId_idx" ON "ContactOnBroadcast_p31" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p32_conversationId_idx" ON "ContactOnBroadcast_p32" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p33_conversationId_idx" ON "ContactOnBroadcast_p33" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p34_conversationId_idx" ON "ContactOnBroadcast_p34" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p35_conversationId_idx" ON "ContactOnBroadcast_p35" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p36_conversationId_idx" ON "ContactOnBroadcast_p36" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p37_conversationId_idx" ON "ContactOnBroadcast_p37" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p38_conversationId_idx" ON "ContactOnBroadcast_p38" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p39_conversationId_idx" ON "ContactOnBroadcast_p39" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p40_conversationId_idx" ON "ContactOnBroadcast_p40" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p41_conversationId_idx" ON "ContactOnBroadcast_p41" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p42_conversationId_idx" ON "ContactOnBroadcast_p42" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p43_conversationId_idx" ON "ContactOnBroadcast_p43" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p44_conversationId_idx" ON "ContactOnBroadcast_p44" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p45_conversationId_idx" ON "ContactOnBroadcast_p45" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p46_conversationId_idx" ON "ContactOnBroadcast_p46" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p47_conversationId_idx" ON "ContactOnBroadcast_p47" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p48_conversationId_idx" ON "ContactOnBroadcast_p48" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p49_conversationId_idx" ON "ContactOnBroadcast_p49" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p50_conversationId_idx" ON "ContactOnBroadcast_p50" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p51_conversationId_idx" ON "ContactOnBroadcast_p51" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p52_conversationId_idx" ON "ContactOnBroadcast_p52" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p53_conversationId_idx" ON "ContactOnBroadcast_p53" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p54_conversationId_idx" ON "ContactOnBroadcast_p54" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p55_conversationId_idx" ON "ContactOnBroadcast_p55" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p56_conversationId_idx" ON "ContactOnBroadcast_p56" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p57_conversationId_idx" ON "ContactOnBroadcast_p57" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p58_conversationId_idx" ON "ContactOnBroadcast_p58" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p59_conversationId_idx" ON "ContactOnBroadcast_p59" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p60_conversationId_idx" ON "ContactOnBroadcast_p60" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p61_conversationId_idx" ON "ContactOnBroadcast_p61" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p62_conversationId_idx" ON "ContactOnBroadcast_p62" USING btree ("conversationId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactOnBroadcast_p63_conversationId_idx" ON "ContactOnBroadcast_p63" USING btree ("conversationId"); +--> statement-breakpoint +DO $$ +DECLARE + child_name text; +BEGIN + FOR i IN 0..63 LOOP + child_name := format('ContactOnBroadcast_p%s_conversationId_idx', i); + IF NOT EXISTS ( + SELECT 1 FROM pg_inherits + WHERE inhrelid = to_regclass(format('"%s"', child_name)) + AND inhparent = to_regclass('"ContactOnBroadcast_conversationId_idx"') + ) THEN + EXECUTE format('ALTER INDEX "ContactOnBroadcast_conversationId_idx" ATTACH PARTITION %I', child_name); + END IF; + END LOOP; +END $$; +--> statement-breakpoint +DO $$ +BEGIN + IF NOT (SELECT indisvalid FROM pg_index WHERE indexrelid = '"ContactOnBroadcast_conversationId_idx"'::regclass) THEN + RAISE EXCEPTION 'ContactOnBroadcast_conversationId_idx is not valid after attaching all partitions'; + END IF; +END $$; +--> statement-breakpoint + +-- Build "SequenceDispatch_sequenceId_idx" without locking writes across all 64 HASH partitions. +-- PostgreSQL cannot create a partitioned index concurrently, so each child is +-- built concurrently then attached to an ON ONLY parent index. +DO $$ +DECLARE + child_oid oid; + parent_oid oid := to_regclass('"SequenceDispatch_sequenceId_idx"'); +BEGIN + FOR i IN 0..63 LOOP + child_oid := to_regclass(format('"SequenceDispatch_p%s_sequenceId_idx"', i)); + IF child_oid IS NOT NULL + AND EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = child_oid AND NOT indisvalid) + AND ( + parent_oid IS NULL + OR NOT EXISTS ( + SELECT 1 FROM pg_inherits WHERE inhrelid = child_oid AND inhparent = parent_oid + ) + ) + THEN + EXECUTE format('DROP INDEX IF EXISTS "SequenceDispatch_p%s_sequenceId_idx"', i); + END IF; + END LOOP; +END $$; +--> statement-breakpoint +CREATE INDEX IF NOT EXISTS "SequenceDispatch_sequenceId_idx" ON ONLY "SequenceDispatch" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p0_sequenceId_idx" ON "SequenceDispatch_p0" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p1_sequenceId_idx" ON "SequenceDispatch_p1" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p2_sequenceId_idx" ON "SequenceDispatch_p2" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p3_sequenceId_idx" ON "SequenceDispatch_p3" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p4_sequenceId_idx" ON "SequenceDispatch_p4" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p5_sequenceId_idx" ON "SequenceDispatch_p5" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p6_sequenceId_idx" ON "SequenceDispatch_p6" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p7_sequenceId_idx" ON "SequenceDispatch_p7" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p8_sequenceId_idx" ON "SequenceDispatch_p8" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p9_sequenceId_idx" ON "SequenceDispatch_p9" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p10_sequenceId_idx" ON "SequenceDispatch_p10" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p11_sequenceId_idx" ON "SequenceDispatch_p11" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p12_sequenceId_idx" ON "SequenceDispatch_p12" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p13_sequenceId_idx" ON "SequenceDispatch_p13" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p14_sequenceId_idx" ON "SequenceDispatch_p14" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p15_sequenceId_idx" ON "SequenceDispatch_p15" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p16_sequenceId_idx" ON "SequenceDispatch_p16" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p17_sequenceId_idx" ON "SequenceDispatch_p17" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p18_sequenceId_idx" ON "SequenceDispatch_p18" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p19_sequenceId_idx" ON "SequenceDispatch_p19" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p20_sequenceId_idx" ON "SequenceDispatch_p20" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p21_sequenceId_idx" ON "SequenceDispatch_p21" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p22_sequenceId_idx" ON "SequenceDispatch_p22" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p23_sequenceId_idx" ON "SequenceDispatch_p23" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p24_sequenceId_idx" ON "SequenceDispatch_p24" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p25_sequenceId_idx" ON "SequenceDispatch_p25" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p26_sequenceId_idx" ON "SequenceDispatch_p26" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p27_sequenceId_idx" ON "SequenceDispatch_p27" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p28_sequenceId_idx" ON "SequenceDispatch_p28" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p29_sequenceId_idx" ON "SequenceDispatch_p29" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p30_sequenceId_idx" ON "SequenceDispatch_p30" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p31_sequenceId_idx" ON "SequenceDispatch_p31" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p32_sequenceId_idx" ON "SequenceDispatch_p32" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p33_sequenceId_idx" ON "SequenceDispatch_p33" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p34_sequenceId_idx" ON "SequenceDispatch_p34" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p35_sequenceId_idx" ON "SequenceDispatch_p35" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p36_sequenceId_idx" ON "SequenceDispatch_p36" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p37_sequenceId_idx" ON "SequenceDispatch_p37" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p38_sequenceId_idx" ON "SequenceDispatch_p38" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p39_sequenceId_idx" ON "SequenceDispatch_p39" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p40_sequenceId_idx" ON "SequenceDispatch_p40" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p41_sequenceId_idx" ON "SequenceDispatch_p41" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p42_sequenceId_idx" ON "SequenceDispatch_p42" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p43_sequenceId_idx" ON "SequenceDispatch_p43" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p44_sequenceId_idx" ON "SequenceDispatch_p44" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p45_sequenceId_idx" ON "SequenceDispatch_p45" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p46_sequenceId_idx" ON "SequenceDispatch_p46" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p47_sequenceId_idx" ON "SequenceDispatch_p47" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p48_sequenceId_idx" ON "SequenceDispatch_p48" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p49_sequenceId_idx" ON "SequenceDispatch_p49" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p50_sequenceId_idx" ON "SequenceDispatch_p50" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p51_sequenceId_idx" ON "SequenceDispatch_p51" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p52_sequenceId_idx" ON "SequenceDispatch_p52" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p53_sequenceId_idx" ON "SequenceDispatch_p53" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p54_sequenceId_idx" ON "SequenceDispatch_p54" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p55_sequenceId_idx" ON "SequenceDispatch_p55" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p56_sequenceId_idx" ON "SequenceDispatch_p56" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p57_sequenceId_idx" ON "SequenceDispatch_p57" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p58_sequenceId_idx" ON "SequenceDispatch_p58" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p59_sequenceId_idx" ON "SequenceDispatch_p59" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p60_sequenceId_idx" ON "SequenceDispatch_p60" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p61_sequenceId_idx" ON "SequenceDispatch_p61" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p62_sequenceId_idx" ON "SequenceDispatch_p62" USING btree ("sequenceId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p63_sequenceId_idx" ON "SequenceDispatch_p63" USING btree ("sequenceId"); +--> statement-breakpoint +DO $$ +DECLARE + child_name text; +BEGIN + FOR i IN 0..63 LOOP + child_name := format('SequenceDispatch_p%s_sequenceId_idx', i); + IF NOT EXISTS ( + SELECT 1 FROM pg_inherits + WHERE inhrelid = to_regclass(format('"%s"', child_name)) + AND inhparent = to_regclass('"SequenceDispatch_sequenceId_idx"') + ) THEN + EXECUTE format('ALTER INDEX "SequenceDispatch_sequenceId_idx" ATTACH PARTITION %I', child_name); + END IF; + END LOOP; +END $$; +--> statement-breakpoint +DO $$ +BEGIN + IF NOT (SELECT indisvalid FROM pg_index WHERE indexrelid = '"SequenceDispatch_sequenceId_idx"'::regclass) THEN + RAISE EXCEPTION 'SequenceDispatch_sequenceId_idx is not valid after attaching all partitions'; + END IF; +END $$; +--> statement-breakpoint + +-- Build "SequenceDispatch_stepId_idx" without locking writes across all 64 HASH partitions. +-- PostgreSQL cannot create a partitioned index concurrently, so each child is +-- built concurrently then attached to an ON ONLY parent index. +DO $$ +DECLARE + child_oid oid; + parent_oid oid := to_regclass('"SequenceDispatch_stepId_idx"'); +BEGIN + FOR i IN 0..63 LOOP + child_oid := to_regclass(format('"SequenceDispatch_p%s_stepId_idx"', i)); + IF child_oid IS NOT NULL + AND EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = child_oid AND NOT indisvalid) + AND ( + parent_oid IS NULL + OR NOT EXISTS ( + SELECT 1 FROM pg_inherits WHERE inhrelid = child_oid AND inhparent = parent_oid + ) + ) + THEN + EXECUTE format('DROP INDEX IF EXISTS "SequenceDispatch_p%s_stepId_idx"', i); + END IF; + END LOOP; +END $$; +--> statement-breakpoint +CREATE INDEX IF NOT EXISTS "SequenceDispatch_stepId_idx" ON ONLY "SequenceDispatch" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p0_stepId_idx" ON "SequenceDispatch_p0" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p1_stepId_idx" ON "SequenceDispatch_p1" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p2_stepId_idx" ON "SequenceDispatch_p2" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p3_stepId_idx" ON "SequenceDispatch_p3" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p4_stepId_idx" ON "SequenceDispatch_p4" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p5_stepId_idx" ON "SequenceDispatch_p5" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p6_stepId_idx" ON "SequenceDispatch_p6" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p7_stepId_idx" ON "SequenceDispatch_p7" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p8_stepId_idx" ON "SequenceDispatch_p8" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p9_stepId_idx" ON "SequenceDispatch_p9" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p10_stepId_idx" ON "SequenceDispatch_p10" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p11_stepId_idx" ON "SequenceDispatch_p11" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p12_stepId_idx" ON "SequenceDispatch_p12" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p13_stepId_idx" ON "SequenceDispatch_p13" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p14_stepId_idx" ON "SequenceDispatch_p14" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p15_stepId_idx" ON "SequenceDispatch_p15" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p16_stepId_idx" ON "SequenceDispatch_p16" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p17_stepId_idx" ON "SequenceDispatch_p17" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p18_stepId_idx" ON "SequenceDispatch_p18" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p19_stepId_idx" ON "SequenceDispatch_p19" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p20_stepId_idx" ON "SequenceDispatch_p20" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p21_stepId_idx" ON "SequenceDispatch_p21" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p22_stepId_idx" ON "SequenceDispatch_p22" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p23_stepId_idx" ON "SequenceDispatch_p23" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p24_stepId_idx" ON "SequenceDispatch_p24" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p25_stepId_idx" ON "SequenceDispatch_p25" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p26_stepId_idx" ON "SequenceDispatch_p26" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p27_stepId_idx" ON "SequenceDispatch_p27" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p28_stepId_idx" ON "SequenceDispatch_p28" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p29_stepId_idx" ON "SequenceDispatch_p29" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p30_stepId_idx" ON "SequenceDispatch_p30" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p31_stepId_idx" ON "SequenceDispatch_p31" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p32_stepId_idx" ON "SequenceDispatch_p32" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p33_stepId_idx" ON "SequenceDispatch_p33" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p34_stepId_idx" ON "SequenceDispatch_p34" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p35_stepId_idx" ON "SequenceDispatch_p35" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p36_stepId_idx" ON "SequenceDispatch_p36" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p37_stepId_idx" ON "SequenceDispatch_p37" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p38_stepId_idx" ON "SequenceDispatch_p38" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p39_stepId_idx" ON "SequenceDispatch_p39" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p40_stepId_idx" ON "SequenceDispatch_p40" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p41_stepId_idx" ON "SequenceDispatch_p41" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p42_stepId_idx" ON "SequenceDispatch_p42" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p43_stepId_idx" ON "SequenceDispatch_p43" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p44_stepId_idx" ON "SequenceDispatch_p44" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p45_stepId_idx" ON "SequenceDispatch_p45" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p46_stepId_idx" ON "SequenceDispatch_p46" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p47_stepId_idx" ON "SequenceDispatch_p47" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p48_stepId_idx" ON "SequenceDispatch_p48" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p49_stepId_idx" ON "SequenceDispatch_p49" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p50_stepId_idx" ON "SequenceDispatch_p50" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p51_stepId_idx" ON "SequenceDispatch_p51" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p52_stepId_idx" ON "SequenceDispatch_p52" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p53_stepId_idx" ON "SequenceDispatch_p53" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p54_stepId_idx" ON "SequenceDispatch_p54" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p55_stepId_idx" ON "SequenceDispatch_p55" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p56_stepId_idx" ON "SequenceDispatch_p56" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p57_stepId_idx" ON "SequenceDispatch_p57" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p58_stepId_idx" ON "SequenceDispatch_p58" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p59_stepId_idx" ON "SequenceDispatch_p59" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p60_stepId_idx" ON "SequenceDispatch_p60" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p61_stepId_idx" ON "SequenceDispatch_p61" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p62_stepId_idx" ON "SequenceDispatch_p62" USING btree ("stepId"); +--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SequenceDispatch_p63_stepId_idx" ON "SequenceDispatch_p63" USING btree ("stepId"); +--> statement-breakpoint +DO $$ +DECLARE + child_name text; +BEGIN + FOR i IN 0..63 LOOP + child_name := format('SequenceDispatch_p%s_stepId_idx', i); + IF NOT EXISTS ( + SELECT 1 FROM pg_inherits + WHERE inhrelid = to_regclass(format('"%s"', child_name)) + AND inhparent = to_regclass('"SequenceDispatch_stepId_idx"') + ) THEN + EXECUTE format('ALTER INDEX "SequenceDispatch_stepId_idx" ATTACH PARTITION %I', child_name); + END IF; + END LOOP; +END $$; +--> statement-breakpoint +DO $$ +BEGIN + IF NOT (SELECT indisvalid FROM pg_index WHERE indexrelid = '"SequenceDispatch_stepId_idx"'::regclass) THEN + RAISE EXCEPTION 'SequenceDispatch_stepId_idx is not valid after attaching all partitions'; + END IF; +END $$; +--> statement-breakpoint diff --git a/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json b/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json new file mode 100644 index 0000000000..bf808de2b0 --- /dev/null +++ b/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json @@ -0,0 +1,61667 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "bd0d6e05-0879-4d7b-a006-d9f2023b154c", + "prevIds": [ + "edf6de11-00e6-44b1-8ce9-4a886d9a7a65" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql b/packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql new file mode 100644 index 0000000000..ebe9451efe --- /dev/null +++ b/packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql @@ -0,0 +1,70 @@ +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIConversationEmbedding_lookup_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIConversationEmbedding_lookup_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIConversationEmbedding_lookup_idx" ON "AIConversationEmbedding" ("workspaceId", "conversationId", "sourceId", "status");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIEmbedding_aiFileId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIEmbedding_aiFileId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIEmbedding_aiFileId_idx" ON "AIEmbedding" ("aiFileId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"ContactToTag_tagId_idx"') AND NOT indisvalid) THEN + DROP INDEX "ContactToTag_tagId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactToTag_tagId_idx" ON "ContactToTag" ("tagId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowRun_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_workspaceId_idx" ON "FlowRun" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_flowId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowRun_flowId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_flowId_idx" ON "FlowRun" ("flowId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_flowVersionId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowRun_flowVersionId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_flowVersionId_idx" ON "FlowRun" ("flowVersionId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowVersion_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowVersion_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowVersion_workspaceId_idx" ON "FlowVersion" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowVersion_flowId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowVersion_flowId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowVersion_flowId_idx" ON "FlowVersion" ("flowId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardParticipant_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "LeaderboardParticipant_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardParticipant_workspaceId_idx" ON "LeaderboardParticipant" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardParticipant_referrerContactId_idx"') AND NOT indisvalid) THEN + DROP INDEX "LeaderboardParticipant_referrerContactId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardParticipant_referrerContactId_idx" ON "LeaderboardParticipant" ("referrerContactId") WHERE "referrerContactId" IS NOT NULL; \ No newline at end of file diff --git a/packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json b/packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json new file mode 100644 index 0000000000..84da618b70 --- /dev/null +++ b/packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json @@ -0,0 +1,61898 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "9d0ba254-b168-43a3-ac8d-86a99cf55674", + "prevIds": [ + "bd0d6e05-0879-4d7b-a006-d9f2023b154c" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_aiFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTag_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowVersionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowVersionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/src/schema/ai-conversation-embedding.ts b/packages/database/src/schema/ai-conversation-embedding.ts index 7c5b880b6e..279f1250ed 100644 --- a/packages/database/src/schema/ai-conversation-embedding.ts +++ b/packages/database/src/schema/ai-conversation-embedding.ts @@ -64,5 +64,12 @@ export const aiConversationEmbeddingModel = pgTable( "btree", table.conversationId.asc().nullsLast(), ), + index("AIConversationEmbedding_lookup_idx").using( + "btree", + table.workspaceId.asc().nullsLast(), + table.conversationId.asc().nullsLast(), + table.sourceId.asc().nullsLast(), + table.status.asc().nullsLast(), + ), ], ) diff --git a/packages/database/src/schema/ai-embedding.ts b/packages/database/src/schema/ai-embedding.ts index e3f08f77c7..ca13ec80e3 100644 --- a/packages/database/src/schema/ai-embedding.ts +++ b/packages/database/src/schema/ai-embedding.ts @@ -34,5 +34,9 @@ export const aiEmbeddingModel = pgTable( "btree", table.workspaceId.asc().nullsLast(), ), + index("AIEmbedding_aiFileId_idx").using( + "btree", + table.aiFileId.asc().nullsLast(), + ), ], ) diff --git a/packages/database/src/schema/contact-on-broadcast.ts b/packages/database/src/schema/contact-on-broadcast.ts index 10f5807314..df07e72d6b 100644 --- a/packages/database/src/schema/contact-on-broadcast.ts +++ b/packages/database/src/schema/contact-on-broadcast.ts @@ -57,6 +57,9 @@ export const contactsOnBroadcastsModel = pgTable( name: "ContactsOnBroadcast_pkey", }), index("idx_contact_on_broadcast_contact_id").on(table.contactId), + // Covers the `Conversation -> ContactOnBroadcast` ON DELETE CASCADE check. + // Built per partition + ATTACH (64 HASH partitions). + index("ContactOnBroadcast_conversationId_idx").on(table.conversationId), // Covers the `ContactInbox -> ContactOnBroadcast` ON DELETE CASCADE check. // Without it every ContactInbox delete (workspace purge, contact delete) // seq-scans all 64 partitions. Built per partition + ATTACH, see diff --git a/packages/database/src/schema/contact-to-tag.ts b/packages/database/src/schema/contact-to-tag.ts index 33078b3a4a..52edd010a8 100644 --- a/packages/database/src/schema/contact-to-tag.ts +++ b/packages/database/src/schema/contact-to-tag.ts @@ -1,4 +1,4 @@ -import { pgTable, primaryKey } from "drizzle-orm/pg-core" +import { index, pgTable, primaryKey } from "drizzle-orm/pg-core" import { bigintAsString } from "../partials/shared" import { contactModel } from "./contact" import { tagModel } from "./tag" @@ -23,5 +23,6 @@ export const contactsToTagsModel = pgTable( primaryKey({ columns: [table.contactId, table.tagId], }), + index("ContactToTag_tagId_idx").on(table.tagId), ], ) diff --git a/packages/database/src/schema/flow-run.ts b/packages/database/src/schema/flow-run.ts index 9ebd5712f1..79a13fe2c3 100644 --- a/packages/database/src/schema/flow-run.ts +++ b/packages/database/src/schema/flow-run.ts @@ -37,5 +37,14 @@ export const flowRunModel = pgTable( "btree", table.conversationId.asc().nullsLast(), ), + index("FlowRun_workspaceId_idx").using( + "btree", + table.workspaceId.asc().nullsLast(), + ), + index("FlowRun_flowId_idx").using("btree", table.flowId.asc().nullsLast()), + index("FlowRun_flowVersionId_idx").using( + "btree", + table.flowVersionId.asc().nullsLast(), + ), ], ) diff --git a/packages/database/src/schema/flow-version.ts b/packages/database/src/schema/flow-version.ts index 56156f11e9..d3acf2c247 100644 --- a/packages/database/src/schema/flow-version.ts +++ b/packages/database/src/schema/flow-version.ts @@ -1,31 +1,38 @@ -import { boolean, jsonb, pgTable } from "drizzle-orm/pg-core" +import { boolean, index, jsonb, pgTable } from "drizzle-orm/pg-core" import { bigintAsString, sharedColumns } from "../partials/shared" import { flowModel } from "./flow" import { workspaceModel } from "./workspace" -export const flowVersionModel = pgTable("FlowVersion", { - ...sharedColumns, - workspaceId: bigintAsString() - .notNull() - .references(() => workspaceModel.id, { - onDelete: "cascade", - onUpdate: "cascade", - }), - flowId: bigintAsString() - .notNull() - .references(() => flowModel.id, { - onDelete: "cascade", - onUpdate: "cascade", - }), - nodes: jsonb() - .$type<{ id: string; [x: string]: unknown }>() - .array() - .notNull(), - edges: jsonb() - .$type<{ id: string; [x: string]: unknown }>() - .array() - .notNull(), - isDraft: boolean().notNull(), - isLatest: boolean().default(false).notNull(), - startNodeId: bigintAsString().notNull(), -}) +export const flowVersionModel = pgTable( + "FlowVersion", + { + ...sharedColumns, + workspaceId: bigintAsString() + .notNull() + .references(() => workspaceModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + flowId: bigintAsString() + .notNull() + .references(() => flowModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + nodes: jsonb() + .$type<{ id: string; [x: string]: unknown }>() + .array() + .notNull(), + edges: jsonb() + .$type<{ id: string; [x: string]: unknown }>() + .array() + .notNull(), + isDraft: boolean().notNull(), + isLatest: boolean().default(false).notNull(), + startNodeId: bigintAsString().notNull(), + }, + (table) => [ + index("FlowVersion_workspaceId_idx").on(table.workspaceId), + index("FlowVersion_flowId_idx").on(table.flowId), + ], +) diff --git a/packages/database/src/schema/leaderboard-participant.ts b/packages/database/src/schema/leaderboard-participant.ts index 531224518f..bce0a5f04c 100644 --- a/packages/database/src/schema/leaderboard-participant.ts +++ b/packages/database/src/schema/leaderboard-participant.ts @@ -87,5 +87,12 @@ export const leaderboardParticipantModel = pgTable( "btree", table.contactId.asc().nullsLast(), ), + index("LeaderboardParticipant_workspaceId_idx").using( + "btree", + table.workspaceId.asc().nullsLast(), + ), + index("LeaderboardParticipant_referrerContactId_idx") + .using("btree", table.referrerContactId.asc().nullsLast()) + .where(sql`${table.referrerContactId} IS NOT NULL`), ], ) diff --git a/packages/database/src/schema/sequence-dispatch.ts b/packages/database/src/schema/sequence-dispatch.ts index 5b96652748..62c7e909d1 100644 --- a/packages/database/src/schema/sequence-dispatch.ts +++ b/packages/database/src/schema/sequence-dispatch.ts @@ -137,5 +137,10 @@ export const sequenceDispatchModel = pgTable( // Covers the `ContactInbox -> SequenceDispatch` ON DELETE CASCADE check; // built per partition + ATTACH (64 HASH partitions). index("SequenceDispatch_contactInboxId_idx").on(table.contactInboxId), + // Covers the `Sequence -> SequenceDispatch` and + // `SequenceStep -> SequenceDispatch` ON DELETE CASCADE checks; both are + // built per partition + ATTACH (64 HASH partitions). + index("SequenceDispatch_sequenceId_idx").on(table.sequenceId), + index("SequenceDispatch_stepId_idx").on(table.stepId), ], ) diff --git a/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts b/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts index 0ae479c362..f5dd703e08 100644 --- a/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts +++ b/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts @@ -6,9 +6,11 @@ const findManyMock = vi.fn() const updateWhereMock = vi.fn() const removeFromScheduleMock = vi.fn() const useExistingMock = vi.fn() +const executeMock = vi.fn() vi.mock("@chatbotx.io/database/client", () => ({ db: { + execute: (...args: unknown[]) => executeMock(...args), insert: () => ({ values: () => ({ returning: returningInsertMock }), }), @@ -28,6 +30,10 @@ vi.mock("@chatbotx.io/database/client", () => ({ and: (...a: unknown[]) => ({ __and: a }), eq: (c: unknown, v: unknown) => ({ __eq: [c, v] }), inArray: (c: unknown, v: unknown) => ({ __inArray: [c, v] }), + sql: (strings: TemplateStringsArray, ...values: unknown[]) => ({ + strings, + values, + }), })) vi.mock("@chatbotx.io/database/schema", () => ({ @@ -345,32 +351,26 @@ describe("cancelPendingDispatches", () => { expect(findManyMock).not.toHaveBeenCalled() }) - test("cancels all pending dispatches for a workspace without enrollmentId", async () => { + test("cancels a workspace's pending dispatches in an atomic bounded batch", async () => { const { cancelPendingDispatchesForWorkspace } = await import( "../src/dispatch-cancel" ) - findManyMock.mockResolvedValue([ - { - id: "d-1", - bucket: 9, - sequenceId: "seq-1", - contactId: "c-1", - stepId: "s-1", - }, - ]) + const onCanceled = vi.fn().mockResolvedValue(undefined) + executeMock.mockResolvedValue({ + rows: [{ bucket: 9, id: "d-1" }], + }) const result = await cancelPendingDispatchesForWorkspace({ + onCanceled, workspaceId: "ws-2", }) - expect(result).toEqual([{ id: "d-1", bucket: 9 }]) - expect(findManyMock).toHaveBeenCalledWith( - expect.objectContaining({ - where: expect.objectContaining({ - workspaceId: "ws-2", - status: "pending", - }), - }), - ) + expect(result).toBe(1) + expect(executeMock).toHaveBeenCalledOnce() + const statement = executeMock.mock.calls[0][0] + expect(statement.strings.join("")).toContain('UPDATE "SequenceDispatch"') + expect(statement.strings.join("")).toContain("FOR UPDATE SKIP LOCKED") + expect(statement.values).toEqual(["ws-2", 500]) + expect(onCanceled).toHaveBeenCalledWith([{ bucket: 9, id: "d-1" }]) }) }) diff --git a/packages/sequence-scheduler/src/dispatch-cancel.ts b/packages/sequence-scheduler/src/dispatch-cancel.ts index 3c1631aeb4..0eb813055a 100644 --- a/packages/sequence-scheduler/src/dispatch-cancel.ts +++ b/packages/sequence-scheduler/src/dispatch-cancel.ts @@ -4,6 +4,7 @@ import { db, eq, inArray, + sql, type Transaction, } from "@chatbotx.io/database/client" import { sequenceDispatchModel } from "@chatbotx.io/database/schema" @@ -18,7 +19,7 @@ import { SchedulerClient } from "@chatbotx.io/scheduler" */ type DrizzleClient = typeof db | Transaction -type ScheduledDispatch = { id: string; bucket: number } +export type ScheduledDispatch = { id: string; bucket: number } type PendingDispatch = { bucket: number contactId: string @@ -46,6 +47,8 @@ const pendingDispatchColumns = { contactId: true, stepId: true, } as const +export const WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE = 500 +export const MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES = 400 export interface CancelPendingDispatchesParams { client?: DatabaseClient | Transaction @@ -111,19 +114,48 @@ export async function cancelPendingDispatches( }) } -export async function cancelPendingDispatchesForWorkspace(params: { - client?: DatabaseClient | Transaction - removeFromSchedule?: boolean +export async function cancelPendingDispatchBatch(params: { + client?: DatabaseClient workspaceId: string }): Promise { - return await cancelPendingDispatchesByWhere({ - client: params.client, - removeFromSchedule: params.removeFromSchedule, - where: { - status: "pending", - workspaceId: params.workspaceId, - }, - }) + const result = await (params.client ?? db).execute(sql` + UPDATE "SequenceDispatch" + SET "status" = 'canceled', "updatedAt" = NOW() + WHERE ("id", "workspaceId") IN ( + SELECT "id", "workspaceId" + FROM "SequenceDispatch" + WHERE "workspaceId" = ${params.workspaceId} + AND "status" = 'pending' + LIMIT ${WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE} + FOR UPDATE SKIP LOCKED + ) + RETURNING "id", "bucket" + `) + return result.rows +} + +export async function cancelPendingDispatchesForWorkspace(params: { + client?: DatabaseClient + onCanceled?: (dispatches: ScheduledDispatch[]) => Promise + workspaceId: string +}): Promise { + const maxBatches = params.client ? 1 : MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES + let canceled = 0 + + for (let batch = 0; batch < maxBatches; batch += 1) { + const dispatches = await cancelPendingDispatchBatch(params) + canceled += dispatches.length + if (dispatches.length === 0) { + break + } + + await params.onCanceled?.(dispatches) + if (dispatches.length < WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE) { + break + } + } + + return canceled } export async function removeDispatchesFromSchedule( From 5b47c82c31a1d16557de19ddcbe3b79b1d262130 Mon Sep 17 00:00:00 2001 From: Real Codesiman Date: Sat, 24 Oct 2026 18:05:08 +0700 Subject: [PATCH 2/7] fix(workspace): harden workspace purge cleanup --- .agents/skills/drizzle-database/SKILL.md | 2 +- .agents/skills/workspace-purge/SKILL.md | 6 +- .claude/agents/invariant-guard.md | 2 +- .devin/rules/chatbotx.md | 2 +- .github/copilot-instructions.md | 2 +- AGENTS.md | 2 +- .../__tests__/campaign-cleanup.test.ts | 33 +- .../workspace-lifecycle.service.test.ts | 69 +- ...pace-lifecycle.smart-delay-cleanup.test.ts | 38 +- packages/business/src/leaderboard/purge.ts | 40 +- .../__tests__/purge-batch.test.ts | 85 + .../__tests__/service.test.ts | 200 +- .../workspace-lifecycle/campaign-cleanup.ts | 45 +- .../src/workspace-lifecycle/purge-batch.ts | 103 + .../src/workspace-lifecycle/service.ts | 776 +- .../smart-delay-cleanup.ts | 78 +- .../src/workspace/__tests__/service.test.ts | 19 +- packages/business/src/workspace/service.ts | 2 +- .../workspace-purge-coverage.test.ts | 211 + .../workspace-purge-repository.test.ts | 18 + .../migration.sql | 14 + .../snapshot.json | 61940 +++++++++++++++ .../migration.sql | 42 + .../snapshot.json | 62066 +++++++++++++++ .../migration.sql | 36 + .../snapshot.json | 62255 +++++++++++++++ .../migration.sql | 9 + .../snapshot.json | 62276 ++++++++++++++++ packages/database/package.json | 2 + packages/database/src/repositories/index.ts | 1 + .../sequence-dispatch/repository.ts | 20 + .../src/repositories/sequence/repository.ts | 33 +- .../src/repositories/workspace-purge/index.ts | 214 + .../repositories/workspace-purge/tables.ts | 100 + packages/database/src/schema/ai-agent.ts | 47 +- packages/database/src/schema/ai-file.ts | 32 +- .../src/schema/analytics-email-topic.ts | 10 + .../src/schema/comment-automation-reply.ts | 1 + .../src/schema/facebook-lead-ads-lead.ts | 4 + packages/database/src/schema/flow.ts | 38 +- packages/database/src/schema/inbox-team.ts | 26 +- .../src/schema/leaderboard-audit-log.ts | 4 + .../database/src/schema/mini-app-upload.ts | 4 + .../database/src/schema/minigame-contact.ts | 7 + packages/database/src/schema/questionnaire.ts | 7 + .../database/src/schema/saved-reply-image.ts | 4 + packages/database/src/schema/saved-reply.ts | 28 +- .../__tests__/dispatch-manager.test.ts | 23 - .../sequence-scheduler/src/dispatch-cancel.ts | 48 +- 49 files changed, 250030 insertions(+), 994 deletions(-) create mode 100644 packages/business/src/workspace-lifecycle/__tests__/purge-batch.test.ts create mode 100644 packages/business/src/workspace-lifecycle/purge-batch.ts create mode 100644 packages/database/__tests__/workspace-purge-coverage.test.ts create mode 100644 packages/database/__tests__/workspace-purge-repository.test.ts create mode 100644 packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql create mode 100644 packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/snapshot.json create mode 100644 packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql create mode 100644 packages/database/drizzle/20261024103711_add_workspace_purge_indexes/snapshot.json create mode 100644 packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql create mode 100644 packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json create mode 100644 packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql create mode 100644 packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json create mode 100644 packages/database/src/repositories/workspace-purge/index.ts create mode 100644 packages/database/src/repositories/workspace-purge/tables.ts diff --git a/.agents/skills/drizzle-database/SKILL.md b/.agents/skills/drizzle-database/SKILL.md index b64e2cabb8..8a6d5aa14c 100644 --- a/.agents/skills/drizzle-database/SKILL.md +++ b/.agents/skills/drizzle-database/SKILL.md @@ -55,7 +55,7 @@ export const myModel = pgTable( - `bigintAsString()` custom type: stores `bigint` in DB, exposes as `string` in app - FK pattern: `.references(() => otherModel.id, { onDelete, onUpdate })` - Index naming: `TableName_columnName_idx` or `TableName_column_key` for unique -- Every FK column must lead an index so RI cascade lookups do not scan child tables. +- Every FK column must lead an index so RI cascade lookups do not scan child tables. `pnpm --filter @chatbotx.io/database test` runs `workspace-purge-coverage.test.ts`, which rejects any newly unindexed FK. - A new table with `workspaceId` requires the `workspace-purge` skill. Partitioned-table indexes use the per-partition recipe in `20260924105732_add_contact_inbox_fk_indexes`. ### Enums diff --git a/.agents/skills/workspace-purge/SKILL.md b/.agents/skills/workspace-purge/SKILL.md index a5e9dae3e9..1ea6107bb2 100644 --- a/.agents/skills/workspace-purge/SKILL.md +++ b/.agents/skills/workspace-purge/SKILL.md @@ -22,9 +22,9 @@ The scheduled worker may retry this path. Every step must be idempotent and leav ## Required rules -1. **Every new foreign-key column needs a leading index.** A parent delete invokes a child RI lookup for every deleted parent row. Nullable `SET NULL` foreign keys use a partial `WHERE column IS NOT NULL` index. Expand `packages/database/__tests__/purge-fk-indexes.test.ts` whenever a high-volume purge path gains an FK. -2. **Drain large workspace tables before the final cascade.** A log, event, stat, per-contact, or per-message table with `workspaceId` belongs in `HEAVY_WORKSPACE_TABLES` in child-before-parent order and needs a leading `workspaceId` index. Partitioned tables delete by their primary-key tuple with a per-table workspace selector; never use `ctid`. Hypertables drain one workspace-bearing chunk at a time with `liftDecompressionLimit`. -3. **Delete workspace-scoped tables without a foreign key explicitly.** A missing FK does not make data disappear at workspace deletion. Add a bounded purge stage. +1. **Every new foreign-key column needs a leading index.** A parent delete invokes a child RI lookup for every deleted parent row. Nullable `SET NULL` foreign keys use a partial `WHERE column IS NOT NULL` index. The CI-enforced `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a newly unindexed FK; `purge-fk-indexes.test.ts` verifies migration shape for high-volume paths. +2. **Drain large workspace tables before the final cascade.** A log, event, stat, per-contact, or per-message table with `workspaceId` belongs in `repositories/workspace-purge/tables.ts`, in child-before-parent order, and needs a leading `workspaceId` index. Partitioned tables delete by their primary-key tuple with a per-table workspace selector; never use `ctid`. Hypertables delete bounded workspace time slices with `liftDecompressionLimit`, shrinking the slice after a timeout. +3. **Delete workspace-scoped tables without a foreign key explicitly.** A missing FK does not make data disappear at workspace deletion. Add the table and owning strategy to `NO_FK_WORKSPACE_TABLES`; the coverage test fails if a table with `workspaceId` is neither cascade-reachable nor registered. 4. **Keep every purge/freeze statement bounded.** Use a `LIMIT` plus keyset or `FOR UPDATE SKIP LOCKED`, one short transaction per batch, and no `IN` built from every matching id. Never call HTTP while holding a database transaction. Use `withPurgeTimeouts`; stop before the cron deadline so its run stays below the distributed-lock TTL. 5. **Make teardown idempotent.** It runs again on each tick. Convert temporary lock/timeout failures into `WorkspacePurgeIncompleteError` so the next tick resumes safely. 6. **Reconcile the correct quota scope.** Call `userQuotaService.reconcileOwnerAfterTeardown(ownerId)`; never count all root-tenant resources as a reseller pool. diff --git a/.claude/agents/invariant-guard.md b/.claude/agents/invariant-guard.md index a429236d19..dc73ab462e 100644 --- a/.claude/agents/invariant-guard.md +++ b/.claude/agents/invariant-guard.md @@ -30,7 +30,7 @@ You are a focused reviewer with ONE job: catch violations of the ChatbotX invari 11. **Flow node type cascade.** If `nodeTypeSchema` in `packages/flow-config/src/nodes/base.ts` gained a value, grep an existing node schema symbol (e.g. `waitNodeSchema`) and `nodeTypeSchema.enum.` across `apps/` and `packages/` — the new node must appear in the `flowVersionSchema` union (`packages/flow-config/src/nodes/index.ts`), `allNodesConfig` (`nodes/node-config.tsx`), `allSteps` (`steps/index.tsx`), `viewerNodeTypes` (`react-flow-wrapper.tsx`), and `analyticsNodeTypes` (`node-types-config.ts`). These are plain-object maps and hand-rolled unions that fail SILENTLY (node doesn't render, or publish fails with a generic toast). Also flag any NEW zod union that hand-lists node schemas instead of reusing `flowVersionSchema`/`publishFlowSchema`. 12. **TanStack Query mutation invalidation.** If a mutation creates, updates, deletes, toggles, or moves a resource read through a TanStack Query hook, flag a missing resource invalidator (or `setQueryData`) in its success path; `router.refresh()` alone does not update the browser cache. Also flag a new `ChangeFolderDialog` caller that omits `onSuccess`, because the dialog cannot know which resource key to invalidate. 13. **Agent-first public API parity** (AGENTS.md invariant 23). If the diff adds a server action under `apps/builder/src/features/*/actions/`, a procedure in a feature's `api/private.ts`/`api/index.ts`, or a new feature folder, check that the same feature's `api/public.ts` (or `api/public/*.ts`) gains — or already has — a procedure for the same operation, and that it is nested in `apps/builder/src/routers/public.ts`. Pay extra attention to result-returning operations: an action or procedure whose name matches `preview|test|simulat|generate|export|run|sync|scan|stats|link|render` is the kind most often shipped UI-only. Also flag a public procedure that re-implements logic instead of calling the same service/`lib/` function as the UI path. Skip features on the invariant 23 exempt list (auth/account, platform admin, end-customer webviews, OAuth redirect step, UI-only plumbing, token minting) but say which exemption you applied. Severity: HIGH (the operation is invisible to the CLI/MCP). -14. **Workspace purge safety.** If the diff adds or changes a schema FK, a workspace-scoped table, `workspace-lifecycle`, workspace purge code, campaign cleanup, or dispatch cancellation, require the `workspace-purge` rules: leading FK indexes; child-before-parent bounded drains; PK-tuple deletes for partitioned data; chunk drains for hypertables; short timeout-guarded transactions. +14. **Workspace purge safety.** If the diff adds or changes a schema FK, a workspace-scoped table, `workspace-lifecycle`, workspace purge code, campaign cleanup, or dispatch cancellation, require the `workspace-purge` rules: leading FK indexes; child-before-parent bounded drains; PK-tuple deletes for partitioned data; chunk drains for hypertables; short timeout-guarded transactions. Require `packages/database/__tests__/workspace-purge-coverage.test.ts` for a new workspace-scoped table or FK. ## Output diff --git a/.devin/rules/chatbotx.md b/.devin/rules/chatbotx.md index 2f3f5f2cf8..642ed14665 100644 --- a/.devin/rules/chatbotx.md +++ b/.devin/rules/chatbotx.md @@ -60,7 +60,7 @@ pnpm workspaces + Turborepo · TypeScript 5 · React 19 · Next.js 16 (builder) 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). -24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. ## Workflow diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index f2f07752e6..3bf113f45f 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -64,7 +64,7 @@ These instructions apply repository-wide. Read the relevant detailed rule in `.a 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). -24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. ## Rule index diff --git a/AGENTS.md b/AGENTS.md index b016076cbd..6c68004ff9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -197,7 +197,7 @@ These are the most common mistakes — read before writing any code: 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). -24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. diff --git a/packages/business/__tests__/campaign-cleanup.test.ts b/packages/business/__tests__/campaign-cleanup.test.ts index a4cdb10561..bf42c46c89 100644 --- a/packages/business/__tests__/campaign-cleanup.test.ts +++ b/packages/business/__tests__/campaign-cleanup.test.ts @@ -5,6 +5,7 @@ const updateWhereMock = vi.fn() const updateSetMock = vi.fn() const updateMock = vi.fn() const executeMock = vi.fn() +const completeActiveEnrollmentBatchMock = vi.fn() vi.mock("@chatbotx.io/database/client", () => ({ and: (...conditions: unknown[]) => ({ __and: conditions }), @@ -49,6 +50,12 @@ vi.mock("@chatbotx.io/database/schema", () => ({ }, })) +vi.mock("@chatbotx.io/database/repositories/sequence", () => ({ + sequenceRepository: { + completeActiveEnrollmentBatch: completeActiveEnrollmentBatchMock, + }, +})) + beforeEach(() => { vi.clearAllMocks() updateReturningMock.mockResolvedValue([{ id: "row-1" }]) @@ -56,6 +63,7 @@ beforeEach(() => { updateSetMock.mockReturnValue({ where: updateWhereMock }) updateMock.mockReturnValue({ set: updateSetMock }) executeMock.mockResolvedValue({ rowCount: 1 }) + completeActiveEnrollmentBatchMock.mockResolvedValue(1) }) test("cancelInFlightBroadcastsForWorkspace cancels scheduled, sending and recurring broadcasts only, stopping their series first", async () => { @@ -102,20 +110,21 @@ test("cancelInFlightBroadcastsForWorkspace cancels scheduled, sending and recurr ) }) -test("completeActiveSequenceEnrollmentsForWorkspace atomically claims one bounded active batch", async () => { - const { completeActiveSequenceEnrollmentsForWorkspace } = await import( +test("completeActiveSequenceEnrollmentBatch delegates one bounded batch to the repository", async () => { + const { completeActiveSequenceEnrollmentBatch } = await import( "../src/workspace-lifecycle/campaign-cleanup" ) + const tx = {} as never - const completedCount = await completeActiveSequenceEnrollmentsForWorkspace({ - workspaceId: "workspace-1", - }) + await expect( + completeActiveSequenceEnrollmentBatch({ + tx, + workspaceId: "workspace-1", + }), + ).resolves.toBe(1) - expect(completedCount).toBe(1) - expect(executeMock).toHaveBeenCalledOnce() - const statement = executeMock.mock.calls[0][0] - expect(statement.strings.join("")).toContain('UPDATE "ContactOnSequence"') - expect(statement.strings.join("")).toContain("FOR UPDATE SKIP LOCKED") - expect(statement.strings.join("")).toContain("LIMIT ") - expect(statement.values).toEqual(["workspace-1", 500]) + expect(completeActiveEnrollmentBatchMock).toHaveBeenCalledWith( + { limit: 500, workspaceId: "workspace-1" }, + tx, + ) }) diff --git a/packages/business/__tests__/workspace-lifecycle.service.test.ts b/packages/business/__tests__/workspace-lifecycle.service.test.ts index 8107eee40a..d9fda1c37f 100644 --- a/packages/business/__tests__/workspace-lifecycle.service.test.ts +++ b/packages/business/__tests__/workspace-lifecycle.service.test.ts @@ -3,8 +3,8 @@ import { beforeEach, expect, test, vi } from "vitest" const order: string[] = [] const transactionMock = vi.fn() const cancelInFlightBroadcastsForWorkspaceMock = vi.fn() -const completeActiveSequenceEnrollmentsForWorkspaceMock = vi.fn() -const cancelPendingDispatchesForWorkspaceMock = vi.fn() +const completeActiveSequenceEnrollmentBatchMock = vi.fn() +const cancelPendingDispatchBatchMock = vi.fn() const removeDispatchesFromScheduleMock = vi.fn() const cancelSmartDelaysForWorkspaceMock = vi.fn() const loggerWarnMock = vi.fn() @@ -24,17 +24,20 @@ vi.mock("@chatbotx.io/database/client", () => ({ })) vi.mock("@chatbotx.io/sequence-scheduler/dispatch-cancel", () => ({ - cancelPendingDispatchBatch: cancelPendingDispatchesForWorkspaceMock, - cancelPendingDispatchesForWorkspace: cancelPendingDispatchesForWorkspaceMock, - MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES: 400, + cancelPendingDispatchBatch: cancelPendingDispatchBatchMock, removeDispatchesFromSchedule: removeDispatchesFromScheduleMock, WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE: 500, })) vi.mock("@chatbotx.io/database/repositories", () => ({ connectionRepository: { findByInboxId: findByInboxIdMock }, + HEAVY_WORKSPACE_TABLES: [], LIVE_RUN_STATUSES: [], + NO_FK_WORKSPACE_TABLES: [], + PARTITIONED_WORKSPACE_TABLES: [], PULL_CLAIMABLE_STATUSES: [], + WORKSPACE_ANALYTICS_HYPERTABLES: [], + workspacePurgeRepository: {}, })) vi.mock("../src/connection/state-service", () => ({ @@ -48,9 +51,8 @@ vi.mock("../src/base.service", () => ({ vi.mock("../src/workspace-lifecycle/campaign-cleanup", () => ({ cancelInFlightBroadcastsForWorkspace: cancelInFlightBroadcastsForWorkspaceMock, - completeActiveSequenceEnrollmentsForWorkspace: - completeActiveSequenceEnrollmentsForWorkspaceMock, - MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES: 400, + completeActiveSequenceEnrollmentBatch: + completeActiveSequenceEnrollmentBatchMock, SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE: 500, })) @@ -95,11 +97,11 @@ beforeEach(() => { order.push("broadcast") return Promise.resolve(2) }) - completeActiveSequenceEnrollmentsForWorkspaceMock.mockImplementation(() => { + completeActiveSequenceEnrollmentBatchMock.mockImplementation(() => { order.push("enrollments") return Promise.resolve(3) }) - cancelPendingDispatchesForWorkspaceMock.mockImplementation(() => { + cancelPendingDispatchBatchMock.mockImplementation(() => { order.push("dispatches") return Promise.resolve([{ bucket: 1, id: "dispatch-1" }]) }) @@ -129,7 +131,10 @@ test("freezeWorkspaceRuntime keeps the transaction to broadcasts and drains inde "../src/workspace-lifecycle/service" ) - await workspaceLifecycleService.freezeWorkspaceRuntime("workspace-1") + await workspaceLifecycleService.freezeWorkspaceRuntime( + "workspace-1", + Date.now() + 60_000, + ) expect(transactionMock).toHaveBeenCalledTimes(3) expect(cancelInFlightBroadcastsForWorkspaceMock).toHaveBeenCalledWith( @@ -137,14 +142,12 @@ test("freezeWorkspaceRuntime keeps the transaction to broadcasts and drains inde workspaceId: "workspace-1", }), ) - expect( - completeActiveSequenceEnrollmentsForWorkspaceMock, - ).toHaveBeenCalledWith( + expect(completeActiveSequenceEnrollmentBatchMock).toHaveBeenCalledWith( expect.objectContaining({ workspaceId: "workspace-1", }), ) - expect(cancelPendingDispatchesForWorkspaceMock).toHaveBeenCalledWith( + expect(cancelPendingDispatchBatchMock).toHaveBeenCalledWith( expect.objectContaining({ workspaceId: "workspace-1", }), @@ -152,9 +155,9 @@ test("freezeWorkspaceRuntime keeps the transaction to broadcasts and drains inde expect(removeDispatchesFromScheduleMock).toHaveBeenCalledWith([ { bucket: 1, id: "dispatch-1" }, ]) - expect(cancelSmartDelaysForWorkspaceMock).toHaveBeenCalledWith({ - workspaceId: "workspace-1", - }) + expect(cancelSmartDelaysForWorkspaceMock).toHaveBeenCalledWith( + expect.objectContaining({ workspaceId: "workspace-1" }), + ) expect(order).toEqual([ "broadcast", "tx-done", @@ -168,9 +171,7 @@ test("freezeWorkspaceRuntime keeps the transaction to broadcasts and drains inde }) test("freezeWorkspaceRuntime still cancels smart delays when dispatch cleanup fails", async () => { - // Broadcasts/sequences and wait steps are independent runtime sources: a - // Redis failure on one must not leave the other armed. - cancelPendingDispatchesForWorkspaceMock.mockRejectedValueOnce( + removeDispatchesFromScheduleMock.mockRejectedValueOnce( new Error("redis down"), ) @@ -178,27 +179,31 @@ test("freezeWorkspaceRuntime still cancels smart delays when dispatch cleanup fa "../src/workspace-lifecycle/service" ) - await workspaceLifecycleService.freezeWorkspaceRuntime("workspace-1") + await workspaceLifecycleService.freezeWorkspaceRuntime( + "workspace-1", + Date.now() + 60_000, + ) expect(loggerWarnMock).toHaveBeenCalledOnce() - expect(cancelSmartDelaysForWorkspaceMock).toHaveBeenCalledWith({ - workspaceId: "workspace-1", - }) + expect(cancelSmartDelaysForWorkspaceMock).toHaveBeenCalledWith( + expect.objectContaining({ workspaceId: "workspace-1" }), + ) }) -test("freezeWorkspaceRuntime does not throw when smart-delay cancellation fails", async () => { - cancelSmartDelaysForWorkspaceMock.mockRejectedValueOnce( - new Error("redis down"), - ) +test("freezeWorkspaceRuntime defers when smart-delay cancellation fails", async () => { + const error = new Error("redis down") + cancelSmartDelaysForWorkspaceMock.mockRejectedValueOnce(error) const { workspaceLifecycleService } = await import( "../src/workspace-lifecycle/service" ) await expect( - workspaceLifecycleService.freezeWorkspaceRuntime("workspace-1"), - ).resolves.toBeUndefined() - expect(loggerWarnMock).toHaveBeenCalledOnce() + workspaceLifecycleService.freezeWorkspaceRuntime( + "workspace-1", + Date.now() + 60_000, + ), + ).rejects.toBe(error) }) test("disconnectWorkspaceChannels tears down active native Instagram coexist runs", async () => { diff --git a/packages/business/__tests__/workspace-lifecycle.smart-delay-cleanup.test.ts b/packages/business/__tests__/workspace-lifecycle.smart-delay-cleanup.test.ts index b3c973f873..3e14308df0 100644 --- a/packages/business/__tests__/workspace-lifecycle.smart-delay-cleanup.test.ts +++ b/packages/business/__tests__/workspace-lifecycle.smart-delay-cleanup.test.ts @@ -3,22 +3,34 @@ import { beforeEach, describe, expect, test, vi } from "vitest" const cancelActiveForWorkspace = vi.fn() const queueRemove = vi.fn() const loggerWarn = vi.fn() +const transaction = vi.fn((callback: (tx: unknown) => unknown) => + callback({ execute: vi.fn() }), +) vi.mock("@chatbotx.io/worker-config", () => ({ integrationQueue: { remove: queueRemove }, })) - vi.mock("../src/logger", () => ({ logger: { error: vi.fn(), info: vi.fn(), warn: loggerWarn }, })) - vi.mock("../src/smart-delay/service", () => ({ smartDelayService: { cancelActiveForWorkspace }, })) +vi.mock("@chatbotx.io/database/client", () => ({ + db: { transaction }, + sql: Object.assign( + vi.fn(() => ({})), + { raw: vi.fn(() => "") }, + ), +})) const { cancelSmartDelaysForWorkspace, SMART_DELAY_CANCEL_BATCH_SIZE } = await import("../src/workspace-lifecycle/smart-delay-cleanup") +const props = () => ({ + deadlineAt: Date.now() + 60_000, + workspaceId: "workspace-1", +}) const rowsOfSize = (size: number, offset = 0) => Array.from({ length: size }, (_, index) => ({ id: `row-${offset + index}`, @@ -34,9 +46,7 @@ describe("cancelSmartDelaysForWorkspace", () => { test("cancels nothing and touches no queue when the workspace has no live rows", async () => { cancelActiveForWorkspace.mockResolvedValueOnce([]) - await expect( - cancelSmartDelaysForWorkspace({ workspaceId: "workspace-1" }), - ).resolves.toBe(0) + await expect(cancelSmartDelaysForWorkspace(props())).resolves.toBe(0) expect(cancelActiveForWorkspace).toHaveBeenCalledOnce() expect(queueRemove).not.toHaveBeenCalled() @@ -47,9 +57,7 @@ describe("cancelSmartDelaysForWorkspace", () => { { id: "row-1", triggerAt: new Date("2026-07-16T00:01:00.000Z") }, ]) - await expect( - cancelSmartDelaysForWorkspace({ workspaceId: "workspace-1" }), - ).resolves.toBe(1) + await expect(cancelSmartDelaysForWorkspace(props())).resolves.toBe(1) expect(queueRemove).toHaveBeenCalledWith( `smart-delay-row-1-${new Date("2026-07-16T00:01:00.000Z").getTime()}`, @@ -61,13 +69,14 @@ describe("cancelSmartDelaysForWorkspace", () => { .mockResolvedValueOnce(rowsOfSize(SMART_DELAY_CANCEL_BATCH_SIZE)) .mockResolvedValueOnce(rowsOfSize(3, SMART_DELAY_CANCEL_BATCH_SIZE)) - await expect( - cancelSmartDelaysForWorkspace({ workspaceId: "workspace-1" }), - ).resolves.toBe(SMART_DELAY_CANCEL_BATCH_SIZE + 3) + await expect(cancelSmartDelaysForWorkspace(props())).resolves.toBe( + SMART_DELAY_CANCEL_BATCH_SIZE + 3, + ) expect(cancelActiveForWorkspace).toHaveBeenCalledTimes(2) expect(cancelActiveForWorkspace).toHaveBeenLastCalledWith({ limit: SMART_DELAY_CANCEL_BATCH_SIZE, + tx: expect.anything(), workspaceId: "workspace-1", }) }) @@ -78,10 +87,7 @@ describe("cancelSmartDelaysForWorkspace", () => { ]) queueRemove.mockRejectedValueOnce(new Error("redis down")) - // The row is already canceled, so a surviving job is a no-op when it wakes: - // removal is cleanup, never correctness. - await expect( - cancelSmartDelaysForWorkspace({ workspaceId: "workspace-1" }), - ).resolves.toBe(1) + await expect(cancelSmartDelaysForWorkspace(props())).resolves.toBe(1) + expect(loggerWarn).toHaveBeenCalledOnce() }) }) diff --git a/packages/business/src/leaderboard/purge.ts b/packages/business/src/leaderboard/purge.ts index 91c27e20cf..09731b1ab2 100644 --- a/packages/business/src/leaderboard/purge.ts +++ b/packages/business/src/leaderboard/purge.ts @@ -4,6 +4,7 @@ import { } from "@chatbotx.io/database/repositories" import { leaderboardStore } from "@chatbotx.io/redis" import { logger } from "../logger" +import { drainInBatches } from "../workspace-lifecycle/purge-batch" /** * Workspace hard-delete: participants/audit rows cascade with the Leaderboard @@ -17,12 +18,10 @@ export async function purgeLeaderboardDataForWorkspace( options: { batchSize?: number deadlineAt?: number - deleteBatch?: () => Promise maxBatches?: number } = {}, -): Promise<{ deleted: number; complete: boolean }> { +): Promise { const batchSize = options.batchSize ?? 5000 - const maxBatches = options.maxBatches ?? 2000 const live = await leaderboardRepository.findLiveForWorkspace(workspaceId) for (const leaderboard of live) { await leaderboardStore.drop(leaderboard.id).catch((err) => { @@ -32,23 +31,20 @@ export async function purgeLeaderboardDataForWorkspace( ) }) } - let deleted = 0 - for (let batch = 0; batch < maxBatches; batch++) { - if (options.deadlineAt && Date.now() >= options.deadlineAt) { - return { deleted, complete: false } - } - const count = await ( - options.deleteBatch ?? - (async () => - await leaderboardScoreEventRepository.deleteBatchByWorkspace({ - workspaceId, - limit: batchSize, - })) - )() - deleted += count - if (count < batchSize) { - return { deleted, complete: true } - } - } - return { deleted, complete: false } + + return await drainInBatches({ + batchSize, + deadlineAt: options.deadlineAt ?? Number.MAX_SAFE_INTEGER, + maxBatches: options.maxBatches ?? 2000, + runBatch: async (tx) => { + const count = + await leaderboardScoreEventRepository.deleteBatchByWorkspace( + { limit: batchSize, workspaceId }, + tx, + ) + return { count, value: undefined } + }, + table: "LeaderboardScoreEvent", + workspaceId, + }) } diff --git a/packages/business/src/workspace-lifecycle/__tests__/purge-batch.test.ts b/packages/business/src/workspace-lifecycle/__tests__/purge-batch.test.ts new file mode 100644 index 0000000000..699bd1e326 --- /dev/null +++ b/packages/business/src/workspace-lifecycle/__tests__/purge-batch.test.ts @@ -0,0 +1,85 @@ +import { beforeEach, describe, expect, test, vi } from "vitest" +import { WorkspacePurgeIncompleteError } from "../../errors" + +const { mockExecute, mockTransaction } = vi.hoisted(() => { + const execute = vi.fn() + return { + mockExecute: execute, + mockTransaction: vi.fn((callback: (tx: unknown) => unknown) => + callback({ execute }), + ), + } +}) + +vi.mock("@chatbotx.io/database/client", () => ({ + db: { transaction: mockTransaction }, + sql: Object.assign( + vi.fn(() => ({})), + { raw: vi.fn(() => "") }, + ), +})) +vi.mock("../../logger", () => ({ logger: { info: vi.fn() } })) + +const { drainInBatches, withPurgeTimeouts } = await import("../purge-batch") + +const props = { + batchSize: 2, + deadlineAt: Date.now() + 60_000, + maxBatches: 2, + table: "Example", + workspaceId: "workspace-1", +} + +describe("purge batch helpers", () => { + beforeEach(() => { + vi.clearAllMocks() + mockExecute.mockResolvedValue(undefined) + }) + + test("throws incomplete before starting a batch when the deadline has elapsed", async () => { + await expect( + drainInBatches({ + ...props, + deadlineAt: Date.now(), + runBatch: vi.fn(), + }), + ).rejects.toBeInstanceOf(WorkspacePurgeIncompleteError) + }) + + test("throws incomplete when every permitted batch is full", async () => { + await expect( + drainInBatches({ + ...props, + runBatch: async () => ({ count: 2, value: undefined }), + }), + ).rejects.toBeInstanceOf(WorkspacePurgeIncompleteError) + }) + + test.each([ + "55P03", + "57014", + ])("maps PostgreSQL %s timeout errors to incomplete", async (code) => { + mockTransaction.mockRejectedValueOnce({ code }) + + await expect( + withPurgeTimeouts({ + fn: async () => undefined, + table: "Example", + workspaceId: "workspace-1", + }), + ).rejects.toBeInstanceOf(WorkspacePurgeIncompleteError) + }) + + test("rethrows non-timeout failures", async () => { + const error = new Error("database unavailable") + mockTransaction.mockRejectedValueOnce(error) + + await expect( + withPurgeTimeouts({ + fn: async () => undefined, + table: "Example", + workspaceId: "workspace-1", + }), + ).rejects.toBe(error) + }) +}) diff --git a/packages/business/src/workspace-lifecycle/__tests__/service.test.ts b/packages/business/src/workspace-lifecycle/__tests__/service.test.ts index 964d7c782c..44f2dd0c9d 100644 --- a/packages/business/src/workspace-lifecycle/__tests__/service.test.ts +++ b/packages/business/src/workspace-lifecycle/__tests__/service.test.ts @@ -2,77 +2,75 @@ import { beforeEach, describe, expect, test, vi } from "vitest" import { WorkspacePurgeIncompleteError } from "../../errors" const { - mockDbExecute, - mockSelectDistinctLimit, - mockTransaction, - mockTxDelete, - mockDeleteWhere, - mockLiftDecompressionLimit, + mockConnectionTransition, + mockFindByInboxId, + mockHasPartitionedWorkspaceRows, + mockHasWorkspaceRows, + mockListMessageConversationPage, mockListWithIntegrationsByWorkspace, mockInboxDisconnect, - mockFindByInboxId, - mockConnectionTransition, - mockSql, + mockDeleteMessagesAndAttachments, + mockDeletePartitionedBatch, + mockDeleteWorkspaceRowsBatch, + mockTransaction, } = vi.hoisted(() => { - const sql = Object.assign( - vi.fn(() => ({})), - { - raw: vi.fn((value: string) => value), - }, - ) - - const deleteWhere = vi.fn() - const txDelete = vi.fn(() => ({ where: deleteWhere })) - const selectDistinctLimit = vi.fn() - + const execute = vi.fn() return { - mockDbExecute: vi.fn(), - mockSelectDistinctLimit: selectDistinctLimit, + mockConnectionTransition: vi.fn(), + mockDeleteMessagesAndAttachments: vi.fn(), + mockDeletePartitionedBatch: vi.fn(), + mockDeleteWorkspaceRowsBatch: vi.fn(), + mockFindByInboxId: vi.fn(), + mockHasPartitionedWorkspaceRows: vi.fn(), + mockHasWorkspaceRows: vi.fn(), + mockInboxDisconnect: vi.fn().mockResolvedValue(undefined), + mockListMessageConversationPage: vi.fn(), + mockListWithIntegrationsByWorkspace: vi.fn(), mockTransaction: vi.fn((callback: (tx: unknown) => unknown) => - callback({ delete: txDelete, execute: mockDbExecute }), + callback({ execute }), ), - mockTxDelete: txDelete, - mockDeleteWhere: deleteWhere, - mockLiftDecompressionLimit: vi.fn().mockResolvedValue(undefined), - mockListWithIntegrationsByWorkspace: vi.fn(), - mockInboxDisconnect: vi.fn().mockResolvedValue(undefined), - mockFindByInboxId: vi.fn().mockResolvedValue(undefined), - mockConnectionTransition: vi.fn(), - mockSql: sql, } }) -const selectDistinctChain = { - from: () => selectDistinctChain, - where: () => selectDistinctChain, - orderBy: () => selectDistinctChain, - limit: mockSelectDistinctLimit, -} - vi.mock("../../leaderboard/purge", () => ({ - purgeLeaderboardDataForWorkspace: vi.fn(async () => ({ - deleted: 0, - complete: true, - })), + purgeLeaderboardDataForWorkspace: vi.fn().mockResolvedValue(0), })) vi.mock("@chatbotx.io/database/client", () => ({ - db: { - execute: mockDbExecute, - selectDistinct: () => selectDistinctChain, - transaction: mockTransaction, - }, - sql: mockSql, + db: { transaction: mockTransaction }, + sql: Object.assign( + vi.fn(() => ({})), + { raw: vi.fn(() => "") }, + ), and: vi.fn(), eq: vi.fn(), inArray: vi.fn(), - liftDecompressionLimit: mockLiftDecompressionLimit, })) vi.mock("@chatbotx.io/database/repositories", () => ({ connectionRepository: { findByInboxId: mockFindByInboxId }, + HEAVY_WORKSPACE_TABLES: ["ErrorLog"], LIVE_RUN_STATUSES: [], + NO_FK_WORKSPACE_TABLES: [], + PARTITIONED_WORKSPACE_TABLES: [ + { + primaryKey: ["broadcastId", "contactId"], + selector: "broadcastWorkspace", + table: "ContactOnBroadcast", + }, + ], PULL_CLAIMABLE_STATUSES: [], + WORKSPACE_ANALYTICS_HYPERTABLES: ["AnalyticsContactEvent"], + workspacePurgeRepository: { + deleteAnalyticsSlice: vi.fn(), + deleteMessagesAndAttachments: mockDeleteMessagesAndAttachments, + deletePartitionedBatch: mockDeletePartitionedBatch, + deleteWorkspaceRowsBatch: mockDeleteWorkspaceRowsBatch, + findNextAnalyticsRowAt: vi.fn().mockResolvedValue(null), + hasPartitionedWorkspaceRows: mockHasPartitionedWorkspaceRows, + hasWorkspaceRows: mockHasWorkspaceRows, + listMessageConversationPage: mockListMessageConversationPage, + }, })) vi.mock("../../connection/state-service", () => ({ @@ -88,96 +86,66 @@ vi.mock("../../inbox/service", () => ({ const { workspaceLifecycleService } = await import("../service") -// Direct workspace tables drain before the final cascade; partitioned tables -// have their own primary-key batching path. -const HEAVY_TABLE_COUNT = 21 -const MAX_BATCHES_PER_TABLE = 2000 +const deadlineAt = () => Date.now() + 60_000 describe("workspaceLifecycleService", () => { beforeEach(() => { vi.clearAllMocks() - mockInboxDisconnect.mockResolvedValue(undefined) - mockFindByInboxId.mockResolvedValue(undefined) mockConnectionTransition.mockResolvedValue(undefined) - // Default: no hypertable rows, so purgeWorkspaceHeavyData exercises only the - // ctid loop unless a test opts in. - mockSelectDistinctLimit.mockResolvedValue([]) - mockDeleteWhere.mockResolvedValue({ rowCount: 0 }) - mockLiftDecompressionLimit.mockResolvedValue(undefined) - mockDbExecute.mockResolvedValue({ rowCount: 0, rows: [] }) - }) - - test("purgeWorkspaceHeavyData drains bounded batches before the final cascade", async () => { - mockDbExecute.mockResolvedValue({ rowCount: 1, rows: [] }) - - const result = await workspaceLifecycleService.purgeWorkspaceHeavyData({ - workspaceId: "workspace-1", - batchSize: 2, - }) - - expect(result).toBeGreaterThan(0) - expect(mockTransaction).toHaveBeenCalled() + mockDeleteMessagesAndAttachments.mockResolvedValue(0) + mockDeletePartitionedBatch.mockResolvedValue(0) + mockDeleteWorkspaceRowsBatch.mockResolvedValue(0) + mockFindByInboxId.mockResolvedValue(undefined) + mockHasPartitionedWorkspaceRows.mockResolvedValue(false) + mockHasWorkspaceRows.mockResolvedValue(false) + mockInboxDisconnect.mockResolvedValue(undefined) + mockListMessageConversationPage.mockResolvedValue([]) + mockListWithIntegrationsByWorkspace.mockResolvedValue([]) }) - test("purgeWorkspaceHeavyData caps every table's batch loop", async () => { - vi.spyOn(globalThis, "setTimeout").mockImplementation((callback) => { - callback() - return 0 as unknown as ReturnType - }) - mockDbExecute.mockResolvedValue({ rowCount: 1, rows: [] }) + test("drains each registered direct workspace table once when batches are short", async () => { + mockDeleteWorkspaceRowsBatch.mockResolvedValue(1) - const result = await workspaceLifecycleService.purgeWorkspaceHeavyData({ - workspaceId: "workspace-1", - batchSize: 1, - }) + await expect( + workspaceLifecycleService.purgeWorkspaceHeavyData({ + batchSize: 2, + deadlineAt: deadlineAt(), + workspaceId: "workspace-1", + }), + ).resolves.toBe(1) - expect(result).toBeGreaterThanOrEqual( - HEAVY_TABLE_COUNT * MAX_BATCHES_PER_TABLE, - ) - vi.restoreAllMocks() + expect(mockDeletePartitionedBatch).toHaveBeenCalledOnce() + expect(mockDeleteWorkspaceRowsBatch).toHaveBeenCalledOnce() }) - test("signals an incomplete drain when a capped table still has rows", async () => { - vi.spyOn(globalThis, "setTimeout").mockImplementation((callback) => { - callback() - return 0 as unknown as ReturnType - }) - mockDbExecute.mockResolvedValue({ rowCount: 1, rows: [{}] }) + test("defers a partitioned table when a SKIP LOCKED drain leaves rows behind", async () => { + mockHasPartitionedWorkspaceRows.mockResolvedValue(true) await expect( workspaceLifecycleService.purgeWorkspaceHeavyData({ + batchSize: 2, + deadlineAt: deadlineAt(), workspaceId: "workspace-1", - batchSize: 1, }), ).rejects.toBeInstanceOf(WorkspacePurgeIncompleteError) - - vi.restoreAllMocks() }) - test("purgeWorkspaceHeavyData lifts the decompression limit for hypertable pages", async () => { - vi.spyOn(globalThis, "setTimeout").mockImplementation((callback) => { - callback() - return 0 as unknown as ReturnType - }) - mockDbExecute.mockResolvedValue({ rowCount: 0, rows: [] }) - mockSelectDistinctLimit - .mockResolvedValueOnce([ - { conversationId: "conv-1" }, - { conversationId: "conv-2" }, - ]) + test("counts rows deleted from a message hypertable page", async () => { + mockListMessageConversationPage + .mockResolvedValueOnce(["conversation-1"]) .mockResolvedValue([]) - mockDeleteWhere.mockResolvedValue({ rowCount: 3 }) + mockDeleteMessagesAndAttachments.mockResolvedValue(3) - await workspaceLifecycleService.purgeWorkspaceHeavyData({ - workspaceId: "workspace-1", - batchSize: 5000, - }) + await expect( + workspaceLifecycleService.purgeWorkspaceHeavyData({ + batchSize: 2, + deadlineAt: deadlineAt(), + workspaceId: "workspace-1", + }), + ).resolves.toBe(3) - expect(mockLiftDecompressionLimit).toHaveBeenCalled() - expect(mockTxDelete).toHaveBeenCalledTimes(2) - vi.restoreAllMocks() + expect(mockDeleteMessagesAndAttachments).toHaveBeenCalledOnce() }) - test("disconnectWorkspaceChannels disconnects provider auth and marks the inbox disconnected", async () => { const disconnect = vi.fn().mockResolvedValue(undefined) mockListWithIntegrationsByWorkspace.mockResolvedValue([ diff --git a/packages/business/src/workspace-lifecycle/campaign-cleanup.ts b/packages/business/src/workspace-lifecycle/campaign-cleanup.ts index 8988bb1b61..f771752e69 100644 --- a/packages/business/src/workspace-lifecycle/campaign-cleanup.ts +++ b/packages/business/src/workspace-lifecycle/campaign-cleanup.ts @@ -4,9 +4,9 @@ import { db, eq, inArray, - sql, } from "@chatbotx.io/database/client" import { broadcastStatuses } from "@chatbotx.io/database/partials" +import { sequenceRepository } from "@chatbotx.io/database/repositories/sequence" import { broadcastModel } from "@chatbotx.io/database/schema" import { disarmAllSeriesForWorkspace } from "../broadcast/recurrence-ledger" @@ -47,41 +47,16 @@ export async function cancelInFlightBroadcastsForWorkspace(props: { } export const SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE = 500 -export const MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES = 400 -export async function completeActiveSequenceEnrollmentsForWorkspace(props: { - tx?: DatabaseClient +export async function completeActiveSequenceEnrollmentBatch(props: { + tx: DatabaseClient workspaceId: string }): Promise { - const client = props.tx ?? db - const maxBatches = props.tx ? 1 : MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES - let completed = 0 - - for (let batch = 0; batch < maxBatches; batch += 1) { - const rows = await client.execute<{ id: string }>(sql` - UPDATE "ContactOnSequence" - SET - "status" = 'completed', - "completedAt" = NOW(), - "nextRunAt" = NULL, - "nextStepId" = NULL, - "updatedAt" = NOW() - WHERE "id" IN ( - SELECT "id" - FROM "ContactOnSequence" - WHERE "workspaceId" = ${props.workspaceId} - AND "status" = 'active' - LIMIT ${SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE} - FOR UPDATE SKIP LOCKED - ) - RETURNING "id" - `) - const count = rows.rowCount ?? 0 - completed += count - if (count < SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE) { - break - } - } - - return completed + return await sequenceRepository.completeActiveEnrollmentBatch( + { + limit: SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE, + workspaceId: props.workspaceId, + }, + props.tx, + ) } diff --git a/packages/business/src/workspace-lifecycle/purge-batch.ts b/packages/business/src/workspace-lifecycle/purge-batch.ts new file mode 100644 index 0000000000..bc622016ec --- /dev/null +++ b/packages/business/src/workspace-lifecycle/purge-batch.ts @@ -0,0 +1,103 @@ +import { type DatabaseClient, db, sql } from "@chatbotx.io/database/client" +import { WorkspacePurgeIncompleteError } from "../errors" +import { logger } from "../logger" + +const PURGE_LOCK_TIMEOUT = "2s" +const PURGE_STATEMENT_TIMEOUT = "30s" + +const getPostgresErrorCode = (value: unknown): unknown => { + if (typeof value !== "object" || value === null || !("code" in value)) { + return + } + return value.code +} + +export const isPurgeTimeoutError = (err: unknown): boolean => { + const code = + getPostgresErrorCode(err) ?? + getPostgresErrorCode(err instanceof Error ? err.cause : undefined) + return code === "55P03" || code === "57014" +} + +export const pause = (ms: number): Promise => { + const { promise, resolve } = Promise.withResolvers() + setTimeout(resolve, ms) + return promise +} + +export const assertPurgeDeadline = ( + deadlineAt: number, + workspaceId: string, + table: string, +): void => { + if (Date.now() >= deadlineAt) { + throw new WorkspacePurgeIncompleteError(workspaceId, table) + } +} + +export const withPurgeTimeouts = async (props: { + fn: (tx: DatabaseClient) => Promise + rethrowTimeout?: boolean + table: string + workspaceId: string +}): Promise => { + try { + return await db.transaction(async (tx) => { + await tx.execute( + sql`SET LOCAL lock_timeout = ${sql.raw(`'${PURGE_LOCK_TIMEOUT}'`)}`, + ) + await tx.execute( + sql`SET LOCAL statement_timeout = ${sql.raw(`'${PURGE_STATEMENT_TIMEOUT}'`)}`, + ) + return await props.fn(tx) + }) + } catch (err) { + if (!isPurgeTimeoutError(err) || props.rethrowTimeout) { + throw err + } + logger.info( + { table: props.table, workspaceId: props.workspaceId }, + "workspace-purge: timed out, deferring to next run", + ) + throw new WorkspacePurgeIncompleteError(props.workspaceId, props.table) + } +} + +type BatchResult = { + count: number + value: T +} + +export const drainInBatches = async (props: { + afterBatch?: (value: T) => Promise + batchSize: number + deadlineAt: number + maxBatches: number + runBatch: (tx: DatabaseClient) => Promise> + table: string + workspaceId: string +}): Promise => { + let total = 0 + + for (let batch = 0; batch < props.maxBatches; batch += 1) { + assertPurgeDeadline(props.deadlineAt, props.workspaceId, props.table) + const result = await withPurgeTimeouts({ + fn: props.runBatch, + table: props.table, + workspaceId: props.workspaceId, + }) + total += result.count + + if (result.count === 0) { + return total + } + + await props.afterBatch?.(result.value) + + if (result.count < props.batchSize) { + return total + } + } + + throw new WorkspacePurgeIncompleteError(props.workspaceId, props.table) +} diff --git a/packages/business/src/workspace-lifecycle/service.ts b/packages/business/src/workspace-lifecycle/service.ts index 458798700f..18018ffe2b 100644 --- a/packages/business/src/workspace-lifecycle/service.ts +++ b/packages/business/src/workspace-lifecycle/service.ts @@ -4,8 +4,6 @@ import { db, eq, inArray, - liftDecompressionLimit, - sql, } from "@chatbotx.io/database/client" import { channelTypes, @@ -13,12 +11,15 @@ import { } from "@chatbotx.io/database/partials" import { connectionRepository, + HEAVY_WORKSPACE_TABLES, LIVE_RUN_STATUSES, - leaderboardScoreEventRepository, + NO_FK_WORKSPACE_TABLES, + PARTITIONED_WORKSPACE_TABLES, PULL_CLAIMABLE_STATUSES, + WORKSPACE_ANALYTICS_HYPERTABLES, + workspacePurgeRepository, } from "@chatbotx.io/database/repositories" import { - attachmentModel, coexistSyncRunModel, integrationInstagramModel, integrationMessengerModel, @@ -29,7 +30,6 @@ import { integrationWebchatModel, integrationWhatsappModel, integrationZaloModel, - messageModel, tagChannelModel, whatsappCoexistStagingModel, } from "@chatbotx.io/database/schema" @@ -40,7 +40,6 @@ import type { InboxWithIntegrations } from "@chatbotx.io/database/types" // service), where a Node built-in is a hard compile error. import { cancelPendingDispatchBatch, - MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES, removeDispatchesFromSchedule, WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE, } from "@chatbotx.io/sequence-scheduler/dispatch-cancel" @@ -71,10 +70,16 @@ import { logger } from "../logger" import { userQuotaService } from "../user-quota/service" import { cancelInFlightBroadcastsForWorkspace, - completeActiveSequenceEnrollmentsForWorkspace, - MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES, + completeActiveSequenceEnrollmentBatch, SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE, } from "./campaign-cleanup" +import { + assertPurgeDeadline, + drainInBatches, + isPurgeTimeoutError, + pause, + withPurgeTimeouts, +} from "./purge-batch" import { cancelSmartDelaysForWorkspace } from "./smart-delay-cleanup" type WorkspaceTeardownIntegration = { @@ -86,12 +91,6 @@ type DisconnectService = { disconnect(workspaceId: string): Promise } -type PurgePartitionedTable = { - primaryKey: readonly string[] - selector: "broadcastWorkspace" | "workspace" - table: "ContactOnBroadcast" | "SequenceDispatch" -} - export type WorkspaceTeardownIntegrations = Record< string, WorkspaceTeardownIntegration | undefined @@ -114,65 +113,6 @@ export type WorkspaceChannelsTeardownResult = { pendingReleases: PendingQuotaRelease[] } -/** - * High-volume tables that carry a direct `workspaceId` FK, ordered - * children-before-parents so each batched delete respects referential - * integrity on its own (independent of the deferred cascade). A workspace can - * hold millions of messages/contacts; deleting them via the single - * `DELETE FROM "Workspace"` FK cascade would scan every child table inside one - * transaction, holding locks and bloating WAL. Instead we drain these tables - * in small `ctid`-bounded chunks — one short autocommit statement each — and - * leave the remaining low-volume tables to the final cascade. - * - * Table names are the physical PG identifiers (not Drizzle models) because the - * delete is a raw `ctid IN (... LIMIT ...)` statement the query builder cannot - * express; keep them in sync with the schema if a table is renamed. - * - * `Message` and `Attachment` are deliberately NOT here: they are compressed - * TimescaleDB hypertables where `ctid` is unavailable ("transparent - * decompression only supports tableoid system column"). They are drained - * separately by `deleteWorkspaceHypertableRows`, which deletes by the - * `conversationId` segmentby column with the decompression cap lifted — the - * same technique as `messageCleanupService.purgeRow`. - */ -const HEAVY_WORKSPACE_TABLES = [ - "ErrorLog", - "AuditLog", - "InboundWebhookRequest", - "CommentAutomationEvent", - "CommentAutomationReply", - "TriggerStat", - "FlowNodeStat", - "MagicLinkStat", - "RefLinkStat", - "MetaCapiEvent", - "AdsConversionEvent", - "GoogleAdsConversionEvent", - "LeaderboardAuditLog", - "LeaderboardParticipant", - "AIConversationEmbedding", - "AIEmbedding", - "TriggerExecution", - "FlowRun", - "FlowVersion", - "ContactOnSmartDelay", - "Conversation", - "Contact", -] as const - -const HEAVY_WORKSPACE_PARTITIONED_TABLES = [ - { - primaryKey: ["broadcastId", "contactId"], - selector: "broadcastWorkspace", - table: "ContactOnBroadcast", - }, - { - primaryKey: ["id", "workspaceId"], - selector: "workspace", - table: "SequenceDispatch", - }, -] as const satisfies readonly PurgePartitionedTable[] - const HEAVY_PURGE_BATCH_SIZE = 5000 const HEAVY_PURGE_BATCH_SIZES: Partial< Record<(typeof HEAVY_WORKSPACE_TABLES)[number], number> @@ -184,75 +124,9 @@ const INTER_CHUNK_DELAY_MS = 100 const HYPERTABLE_CONVERSATION_BATCH_SIZE = 10 const HEAVY_PURGE_MAX_BATCHES_PER_TABLE = 2000 const HYPERTABLE_MAX_CONVERSATION_BATCHES = 1000 -const ANALYTICS_HYPERTABLE_MAX_CHUNKS = 100 -const PURGE_LOCK_TIMEOUT = "2s" -const PURGE_STATEMENT_TIMEOUT = "30s" -const WORKSPACE_ANALYTICS_HYPERTABLES = [ - "AnalyticsAgentResponseEvent", - "AnalyticsBotMessageEvent", - "AnalyticsBroadcastEvent", - "AnalyticsContactEvent", - "AnalyticsConversationEvent", - "AnalyticsFlowNodeEvent", - "AnalyticsMessageEvent", - "AnalyticsSequenceEvent", -] as const -const pause = (ms: number): Promise => { - const { promise, resolve } = Promise.withResolvers() - setTimeout(resolve, ms) - return promise -} - -const assertPurgeDeadline = ( - deadlineAt: number | undefined, - workspaceId: string, - table: string, -): void => { - if (deadlineAt !== undefined && Date.now() >= deadlineAt) { - throw new WorkspacePurgeIncompleteError(workspaceId, table) - } -} - -const getPostgresErrorCode = (value: unknown): unknown => { - if (typeof value !== "object" || value === null || !("code" in value)) { - return - } - return value.code -} - -const isPurgeTimeoutError = (err: unknown): boolean => { - const code = - getPostgresErrorCode(err) ?? - getPostgresErrorCode(err instanceof Error ? err.cause : undefined) - return code === "55P03" || code === "57014" -} - -export const withPurgeTimeouts = async (props: { - fn: (tx: DatabaseClient) => Promise - table: string - workspaceId: string -}): Promise => { - try { - return await db.transaction(async (tx) => { - await tx.execute( - sql`SET LOCAL lock_timeout = ${sql.raw(`'${PURGE_LOCK_TIMEOUT}'`)}`, - ) - await tx.execute( - sql`SET LOCAL statement_timeout = ${sql.raw(`'${PURGE_STATEMENT_TIMEOUT}'`)}`, - ) - return await props.fn(tx) - }) - } catch (err) { - if (!isPurgeTimeoutError(err)) { - throw err - } - logger.info( - { table: props.table, workspaceId: props.workspaceId }, - "workspace-purge: timed out, deferring to next run", - ) - throw new WorkspacePurgeIncompleteError(props.workspaceId, props.table) - } -} +const ANALYTICS_HYPERTABLE_MAX_SLICES = 1000 +const ANALYTICS_SLICE_MS = 24 * 60 * 60 * 1000 +const MIN_ANALYTICS_SLICE_MS = 60 * 1000 class WorkspaceLifecycleService extends BaseService { async disconnectWorkspaceChannels(props: { @@ -343,7 +217,7 @@ class WorkspaceLifecycleService extends BaseService { */ async freezeWorkspaceRuntime( workspaceId: string, - deadlineAt?: number, + deadlineAt: number, ): Promise { await withPurgeTimeouts({ fn: async (tx) => @@ -352,111 +226,62 @@ class WorkspaceLifecycleService extends BaseService { workspaceId, }) - try { - let completedEnrollments = 0 - for ( - let batch = 0; - batch < MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES; - batch += 1 - ) { - assertPurgeDeadline(deadlineAt, workspaceId, "ContactOnSequence") - const completed = await withPurgeTimeouts({ - fn: async (tx) => - await completeActiveSequenceEnrollmentsForWorkspace({ - tx, - workspaceId, - }), - table: "ContactOnSequence", + const completedEnrollments = await drainInBatches({ + batchSize: SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE, + deadlineAt, + maxBatches: 400, + runBatch: async (tx) => { + const count = await completeActiveSequenceEnrollmentBatch({ + tx, workspaceId, }) - completedEnrollments += completed - if (completed < SEQUENCE_ENROLLMENT_CANCEL_BATCH_SIZE) { - break - } - if (batch === MAX_SEQUENCE_ENROLLMENT_CANCEL_BATCHES - 1) { - throw new WorkspacePurgeIncompleteError( - workspaceId, - "ContactOnSequence", + return { count, value: undefined } + }, + table: "ContactOnSequence", + workspaceId, + }) + logger.info( + { completedEnrollments, workspaceId }, + "workspace-freeze: completed sequence enrollments", + ) + + const canceledDispatches = await drainInBatches({ + afterBatch: async ( + dispatches: Awaited>, + ) => { + await removeDispatchesFromSchedule(dispatches).catch((err) => { + logger.warn( + { err, workspaceId }, + "workspace-freeze: failed to remove sequence dispatches from schedule", ) - } - } - logger.info( - { completedEnrollments, workspaceId }, - "workspace-freeze: completed sequence enrollments", - ) - } catch (err) { - if (deadlineAt || err instanceof WorkspacePurgeIncompleteError) { - throw err - } - logger.warn( - { err, workspaceId }, - "workspace-freeze: failed to complete sequence enrollments", - ) - } - try { - let canceledDispatches = 0 - for ( - let batch = 0; - batch < MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES; - batch += 1 - ) { - assertPurgeDeadline(deadlineAt, workspaceId, "SequenceDispatch") - const dispatches = await withPurgeTimeouts({ - fn: async (tx) => - await cancelPendingDispatchBatch({ - client: tx, - workspaceId, - }), - table: "SequenceDispatch", + }) + }, + batchSize: WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE, + deadlineAt, + maxBatches: 400, + runBatch: async (tx) => { + const dispatches = await cancelPendingDispatchBatch({ + client: tx, workspaceId, }) - canceledDispatches += dispatches.length - if (dispatches.length === 0) { - break - } - await removeDispatchesFromSchedule(dispatches) - if (dispatches.length < WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE) { - break - } - if (batch === MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES - 1) { - throw new WorkspacePurgeIncompleteError( - workspaceId, - "SequenceDispatch", - ) - } - } - logger.info( - { canceledDispatches, workspaceId }, - "workspace-freeze: canceled sequence dispatches", - ) - } catch (err) { - if (deadlineAt || err instanceof WorkspacePurgeIncompleteError) { - throw err - } - logger.warn( - { err, workspaceId }, - "workspace-freeze: failed to cancel sequence dispatches", - ) - } + return { count: dispatches.length, value: dispatches } + }, + table: "SequenceDispatch", + workspaceId, + }) + logger.info( + { canceledDispatches, workspaceId }, + "workspace-freeze: canceled sequence dispatches", + ) - try { - assertPurgeDeadline(deadlineAt, workspaceId, "ContactOnSmartDelay") - const canceledSmartDelays = await cancelSmartDelaysForWorkspace({ - workspaceId, - }) - logger.info( - { canceledSmartDelays, workspaceId }, - "workspace-freeze: canceled smart delays", - ) - } catch (err) { - if (deadlineAt) { - throw err - } - logger.warn( - { err, workspaceId }, - "workspace-freeze: failed to cancel smart delays", - ) - } + const canceledSmartDelays = await cancelSmartDelaysForWorkspace({ + deadlineAt, + workspaceId, + }) + logger.info( + { canceledSmartDelays, workspaceId }, + "workspace-freeze: canceled smart delays", + ) } /** @@ -469,7 +294,7 @@ class WorkspaceLifecycleService extends BaseService { */ async purgeWorkspaceHeavyData(props: { batchSize?: number - deadlineAt?: number + deadlineAt: number workspaceId: string }): Promise { const defaultBatchSize = props.batchSize ?? HEAVY_PURGE_BATCH_SIZE @@ -484,370 +309,197 @@ class WorkspaceLifecycleService extends BaseService { props.deadlineAt, ) - for (const table of HEAVY_WORKSPACE_PARTITIONED_TABLES) { - assertPurgeDeadline(props.deadlineAt, props.workspaceId, table.table) - totalDeleted += await this.drainPartitionedHeavyTable( - table, - props.workspaceId, - defaultBatchSize, - props.deadlineAt, - ) - } - - const leaderboardPurge = await purgeLeaderboardDataForWorkspace( - props.workspaceId, - { + for (const spec of PARTITIONED_WORKSPACE_TABLES) { + totalDeleted += await drainInBatches({ + afterBatch: async () => await pause(INTER_CHUNK_DELAY_MS), batchSize: defaultBatchSize, deadlineAt: props.deadlineAt, - deleteBatch: async () => - await withPurgeTimeouts({ - fn: async (tx) => - await leaderboardScoreEventRepository.deleteBatchByWorkspace( - { - limit: defaultBatchSize, - workspaceId: props.workspaceId, - }, - tx, - ), - table: "LeaderboardScoreEvent", - workspaceId: props.workspaceId, - }), - }, - ) - totalDeleted += leaderboardPurge.deleted - if (!leaderboardPurge.complete) { - throw new WorkspacePurgeIncompleteError( - props.workspaceId, - "LeaderboardScoreEvent", - ) + maxBatches: HEAVY_PURGE_MAX_BATCHES_PER_TABLE, + runBatch: async (tx) => ({ + count: await workspacePurgeRepository.deletePartitionedBatch( + spec, + props.workspaceId, + defaultBatchSize, + tx, + ), + value: undefined, + }), + table: spec.table, + workspaceId: props.workspaceId, + }) + if ( + await workspacePurgeRepository.hasPartitionedWorkspaceRows( + spec, + props.workspaceId, + ) + ) { + throw new WorkspacePurgeIncompleteError(props.workspaceId, spec.table) + } } + totalDeleted += await purgeLeaderboardDataForWorkspace(props.workspaceId, { + batchSize: defaultBatchSize, + deadlineAt: props.deadlineAt, + }) + for (const table of HEAVY_WORKSPACE_TABLES) { - assertPurgeDeadline(props.deadlineAt, props.workspaceId, table) const batchSize = HEAVY_PURGE_BATCH_SIZES[table] ?? defaultBatchSize - for (let batch = 0; batch < HEAVY_PURGE_MAX_BATCHES_PER_TABLE; batch++) { - assertPurgeDeadline(props.deadlineAt, props.workspaceId, table) - const deleted = await this.deleteHeavyBatch( + totalDeleted += await drainInBatches({ + afterBatch: async () => await pause(INTER_CHUNK_DELAY_MS), + batchSize, + deadlineAt: props.deadlineAt, + maxBatches: HEAVY_PURGE_MAX_BATCHES_PER_TABLE, + runBatch: async (tx) => ({ + count: await workspacePurgeRepository.deleteWorkspaceRowsBatch( + table, + props.workspaceId, + batchSize, + tx, + ), + value: undefined, + }), + table, + workspaceId: props.workspaceId, + }) + if ( + await workspacePurgeRepository.hasWorkspaceRows( table, props.workspaceId, - batchSize, ) - totalDeleted += deleted - if (deleted < batchSize) { - break - } - await pause(INTER_CHUNK_DELAY_MS) - } - - if (await this.hasHeavyRows(table, props.workspaceId)) { + ) { throw new WorkspacePurgeIncompleteError(props.workspaceId, table) } } - return totalDeleted - } - - private async drainPartitionedHeavyTable( - table: PurgePartitionedTable, - workspaceId: string, - batchSize: number, - deadlineAt?: number, - ): Promise { - let deletedTotal = 0 - for (let batch = 0; batch < HEAVY_PURGE_MAX_BATCHES_PER_TABLE; batch++) { - assertPurgeDeadline(deadlineAt, workspaceId, table.table) - const deleted = await this.deletePartitionedHeavyBatch( + for (const entry of NO_FK_WORKSPACE_TABLES) { + if (entry.stage !== "ctid") { + continue + } + const { table } = entry + totalDeleted += await drainInBatches({ + afterBatch: async () => await pause(INTER_CHUNK_DELAY_MS), + batchSize: defaultBatchSize, + deadlineAt: props.deadlineAt, + maxBatches: HEAVY_PURGE_MAX_BATCHES_PER_TABLE, + runBatch: async (tx) => ({ + count: await workspacePurgeRepository.deleteWorkspaceRowsBatch( + table, + props.workspaceId, + defaultBatchSize, + tx, + ), + value: undefined, + }), table, - workspaceId, - batchSize, - ) - deletedTotal += deleted - if (deleted < batchSize) { - break + workspaceId: props.workspaceId, + }) + if ( + await workspacePurgeRepository.hasWorkspaceRows( + table, + props.workspaceId, + ) + ) { + throw new WorkspacePurgeIncompleteError(props.workspaceId, table) } - await pause(INTER_CHUNK_DELAY_MS) } - if (await this.hasPartitionedHeavyRows(table, workspaceId)) { - throw new WorkspacePurgeIncompleteError(workspaceId, table.table) - } - return deletedTotal - } - private async deletePartitionedHeavyBatch( - table: PurgePartitionedTable, - workspaceId: string, - batchSize: number, - ): Promise { - return await withPurgeTimeouts({ - table: table.table, - workspaceId, - fn: async (tx) => { - const result = - table.selector === "broadcastWorkspace" - ? await tx.execute(sql` - DELETE FROM "ContactOnBroadcast" - WHERE ("broadcastId", "contactId") IN ( - SELECT recipient."broadcastId", recipient."contactId" - FROM "ContactOnBroadcast" AS recipient - INNER JOIN "Broadcast" AS broadcast - ON broadcast."id" = recipient."broadcastId" - WHERE broadcast."workspaceId" = ${workspaceId} - LIMIT ${batchSize} - ) - `) - : await tx.execute(sql` - DELETE FROM "SequenceDispatch" - WHERE ("id", "workspaceId") IN ( - SELECT "id", "workspaceId" - FROM "SequenceDispatch" - WHERE "workspaceId" = ${workspaceId} - LIMIT ${batchSize} - ) - `) - return result.rowCount ?? 0 - }, - }) - } - - private async hasPartitionedHeavyRows( - table: PurgePartitionedTable, - workspaceId: string, - ): Promise { - const result = - table.selector === "broadcastWorkspace" - ? await db.execute(sql` - SELECT 1 - FROM "ContactOnBroadcast" AS recipient - INNER JOIN "Broadcast" AS broadcast - ON broadcast."id" = recipient."broadcastId" - WHERE broadcast."workspaceId" = ${workspaceId} - LIMIT 1 - `) - : await db.execute(sql` - SELECT 1 - FROM "SequenceDispatch" - WHERE "workspaceId" = ${workspaceId} - LIMIT 1 - `) - return result.rows.length > 0 - } - - private async deleteHeavyBatch( - table: (typeof HEAVY_WORKSPACE_TABLES)[number], - workspaceId: string, - batchSize: number, - ): Promise { - return await withPurgeTimeouts({ - table, - workspaceId, - fn: async (tx) => { - const result = await tx.execute(sql` - DELETE FROM ${sql.raw(`"${table}"`)} - WHERE "ctid" IN ( - SELECT "ctid" FROM ${sql.raw(`"${table}"`)} - WHERE "workspaceId" = ${workspaceId} - LIMIT ${batchSize} - ) - `) - return result.rowCount ?? 0 - }, - }) + return totalDeleted } - private async hasHeavyRows( - table: (typeof HEAVY_WORKSPACE_TABLES)[number], - workspaceId: string, - ): Promise { - const result = await db.execute(sql` - SELECT 1 - FROM ${sql.raw(`"${table}"`)} - WHERE "workspaceId" = ${workspaceId} - LIMIT 1 - `) - return result.rows.length > 0 - } private async deleteWorkspaceAnalyticsRows( workspaceId: string, - deadlineAt?: number, + deadlineAt: number, ): Promise { let deleted = 0 - for (const table of WORKSPACE_ANALYTICS_HYPERTABLES) { - for (let batch = 0; batch < ANALYTICS_HYPERTABLE_MAX_CHUNKS; batch++) { + let sliceMs = ANALYTICS_SLICE_MS + for (let batch = 0; batch < ANALYTICS_HYPERTABLE_MAX_SLICES; batch += 1) { assertPurgeDeadline(deadlineAt, workspaceId, table) - const chunks = await db.execute<{ - range_end: Date - range_start: Date - }>(sql` - WITH next_workspace_row AS ( - SELECT "occurredAt" - FROM ${sql.raw(`"${table}"`)} - WHERE "workspaceId" = ${workspaceId} - ORDER BY "occurredAt" ASC - LIMIT 1 - ) - SELECT chunks.range_start, chunks.range_end - FROM timescaledb_information.chunks AS chunks - INNER JOIN next_workspace_row AS next_row - ON next_row."occurredAt" >= chunks.range_start - AND next_row."occurredAt" < chunks.range_end - WHERE chunks.hypertable_schema = 'public' - AND chunks.hypertable_name = ${table} - LIMIT 1 - `) - const chunk = chunks.rows[0] - if (!chunk) { - break - } - - deleted += await withPurgeTimeouts({ + const from = await workspacePurgeRepository.findNextAnalyticsRowAt( table, workspaceId, - fn: async (tx) => { - await liftDecompressionLimit(tx) - const result = await tx.execute(sql` - DELETE FROM ${sql.raw(`"${table}"`)} - WHERE "workspaceId" = ${workspaceId} - AND "occurredAt" >= ${chunk.range_start} - AND "occurredAt" < ${chunk.range_end} - `) - return result.rowCount ?? 0 - }, - }) + ) + if (!from) { + break + } + const to = new Date(from.getTime() + sliceMs) + try { + deleted += await withPurgeTimeouts({ + fn: async (tx) => + await workspacePurgeRepository.deleteAnalyticsSlice( + table, + workspaceId, + from, + to, + tx, + ), + rethrowTimeout: true, + table, + workspaceId, + }) + sliceMs = ANALYTICS_SLICE_MS + } catch (err) { + if (isPurgeTimeoutError(err) && sliceMs > MIN_ANALYTICS_SLICE_MS) { + sliceMs = Math.max(MIN_ANALYTICS_SLICE_MS, Math.floor(sliceMs / 2)) + continue + } + if (isPurgeTimeoutError(err)) { + throw new WorkspacePurgeIncompleteError(workspaceId, table) + } + throw err + } } - - if (await this.hasWorkspaceRows(table, workspaceId)) { + if (await workspacePurgeRepository.hasWorkspaceRows(table, workspaceId)) { throw new WorkspacePurgeIncompleteError(workspaceId, table) } } - return deleted } - private async hasWorkspaceRows( - table: (typeof WORKSPACE_ANALYTICS_HYPERTABLES)[number], - workspaceId: string, - ): Promise { - const result = await db.execute(sql` - SELECT 1 - FROM ${sql.raw(`"${table}"`)} - WHERE "workspaceId" = ${workspaceId} - LIMIT 1 - `) - return result.rows.length > 0 - } - - /** - * Delete a workspace's Message + Attachment rows. Both are compressed - * TimescaleDB hypertables (segmentby `workspaceId,conversationId`) where - * `ctid` is unsupported, so `deleteHeavyBatch` cannot touch them. Instead we - * drain them one bounded page of conversationIds at a time: deleting a page - * lifts the per-statement decompression cap for that transaction only, and the - * deleted ids drop out so the next page query walks forward to the next ones. - * - * Paging (rather than loading every conversationId up front) keeps worker - * memory constant — a workspace can hold millions of conversations, and - * materialising that whole id list in the process could exhaust its heap. - * Message is drained first (high volume), then any attachment-only - * conversations left behind. The whole workspace is being torn down, so no - * `createdAt` upper bound is needed. - */ private async deleteWorkspaceHypertableRows( workspaceId: string, - deadlineAt?: number, + deadlineAt: number, ): Promise { - const deletePage = async (conversationIds: string[]): Promise => - await withPurgeTimeouts({ - table: "Message/Attachment", - workspaceId, - fn: async (tx) => { - await liftDecompressionLimit(tx) - const messageResult = await tx - .delete(messageModel) - .where( - and( - eq(messageModel.workspaceId, workspaceId), - inArray(messageModel.conversationId, conversationIds), - ), - ) - const attachmentResult = await tx - .delete(attachmentModel) - .where( - and( - eq(attachmentModel.workspaceId, workspaceId), - inArray(attachmentModel.conversationId, conversationIds), - ), + let deleted = 0 + for (const table of ["Message", "Attachment"] as const) { + let deletedFromTable = 0 + await drainInBatches({ + afterBatch: async (count: number) => { + deletedFromTable += count + await pause(INTER_CHUNK_DELAY_MS) + }, + batchSize: HYPERTABLE_CONVERSATION_BATCH_SIZE, + deadlineAt, + maxBatches: HYPERTABLE_MAX_CONVERSATION_BATCHES, + runBatch: async (tx) => { + const conversationIds = + await workspacePurgeRepository.listMessageConversationPage( + table, + workspaceId, + HYPERTABLE_CONVERSATION_BATCH_SIZE, + tx, ) - return ( - (messageResult.rowCount ?? 0) + (attachmentResult.rowCount ?? 0) - ) + const count = + conversationIds.length === 0 + ? 0 + : await workspacePurgeRepository.deleteMessagesAndAttachments( + workspaceId, + conversationIds, + tx, + ) + return { count: conversationIds.length, value: count } }, + table, + workspaceId, }) - - let deleted = 0 - - // Pass 1: discovery driven off Message (the high-volume table). Each deleted - // page removes those conversationIds, so re-querying with the same LIMIT - // walks forward until none remain. The batch cap bounds a single run; any - // residue drains on the next scheduled tick. - for (let batch = 0; batch < HYPERTABLE_MAX_CONVERSATION_BATCHES; batch++) { - assertPurgeDeadline(deadlineAt, workspaceId, "Message") - const rows = await db - .selectDistinct({ conversationId: messageModel.conversationId }) - .from(messageModel) - .where(eq(messageModel.workspaceId, workspaceId)) - // Ordered so Postgres can serve each page from the (workspaceId, - // conversationId) index as a bounded scan instead of re-aggregating the - // whole workspace on every batch. - .orderBy(messageModel.conversationId) - .limit(HYPERTABLE_CONVERSATION_BATCH_SIZE) - if (rows.length === 0) { - break - } - deleted += await deletePage(rows.map((row) => row.conversationId)) - await pause(INTER_CHUNK_DELAY_MS) - } - - if (await this.hasHypertableRows(messageModel, workspaceId)) { - throw new WorkspacePurgeIncompleteError(workspaceId, "Message") - } - - // Pass 2: attachment-only conversations (attachments whose Message rows were - // already gone) that pass 1 never enumerated. - for (let batch = 0; batch < HYPERTABLE_MAX_CONVERSATION_BATCHES; batch++) { - assertPurgeDeadline(deadlineAt, workspaceId, "Attachment") - const rows = await db - .selectDistinct({ conversationId: attachmentModel.conversationId }) - .from(attachmentModel) - .where(eq(attachmentModel.workspaceId, workspaceId)) - .orderBy(attachmentModel.conversationId) - .limit(HYPERTABLE_CONVERSATION_BATCH_SIZE) - if (rows.length === 0) { - break + deleted += deletedFromTable + if (await workspacePurgeRepository.hasWorkspaceRows(table, workspaceId)) { + throw new WorkspacePurgeIncompleteError(workspaceId, table) } - deleted += await deletePage(rows.map((row) => row.conversationId)) - await pause(INTER_CHUNK_DELAY_MS) } - - if (await this.hasHypertableRows(attachmentModel, workspaceId)) { - throw new WorkspacePurgeIncompleteError(workspaceId, "Attachment") - } - return deleted } - private async hasHypertableRows( - model: typeof messageModel | typeof attachmentModel, - workspaceId: string, - ): Promise { - const rows = await db - .selectDistinct({ conversationId: model.conversationId }) - .from(model) - .where(eq(model.workspaceId, workspaceId)) - .limit(1) - return rows.length > 0 - } - /** Returns the ids of the owner's workspaces this call tore down, so callers that need to attribute a per-workspace side effect (e.g. audit rows) don't have to re-query. */ async deactivateOwnerWorkspaces(props: { ownerId: string diff --git a/packages/business/src/workspace-lifecycle/smart-delay-cleanup.ts b/packages/business/src/workspace-lifecycle/smart-delay-cleanup.ts index 5791ea600c..024091b9e1 100644 --- a/packages/business/src/workspace-lifecycle/smart-delay-cleanup.ts +++ b/packages/business/src/workspace-lifecycle/smart-delay-cleanup.ts @@ -1,13 +1,10 @@ import { buildJobId } from "@chatbotx.io/flow-config" import { integrationQueue } from "@chatbotx.io/worker-config" import { logger } from "../logger" -import { smartDelayService } from "../smart-delay/service" +import { type SmartDelayRow, smartDelayService } from "../smart-delay/service" +import { drainInBatches } from "./purge-batch" export const SMART_DELAY_CANCEL_BATCH_SIZE = 500 -// Backstop so one workspace with a runaway backlog cannot spin the freeze call -// forever: 500 * 400 = 200k rows per call. Whatever is left is harmless — the -// worker-side guard no-ops those wake-ups, and the purge cascade removes the -// rows when the grace window expires. const MAX_CANCEL_BATCHES = 400 /** @@ -16,47 +13,42 @@ const MAX_CANCEL_BATCHES = 400 * * Cancelling the row is the part that matters. A wake-up job for a `canceled` * row is already a no-op (`wait-resume` requires `status === 'scheduled'` and - * `claimForRun` CASes on it), and — more importantly — the scanner's - * stuck-scheduled sweeper can only reset rows that are still `scheduled`, so a - * canceled row stops churning through claim → drop → reset for the rest of the - * 24-hour grace window. + * `claimForRun` CASes on it), and the scanner's stuck-scheduled sweeper can + * only reset rows that are still `scheduled`. */ export async function cancelSmartDelaysForWorkspace(props: { + deadlineAt: number workspaceId: string }): Promise { - let canceled = 0 - - for (let batch = 0; batch < MAX_CANCEL_BATCHES; batch += 1) { - const rows = await smartDelayService.cancelActiveForWorkspace({ - limit: SMART_DELAY_CANCEL_BATCH_SIZE, - workspaceId: props.workspaceId, - }) - - if (rows.length === 0) { - break - } - - canceled += rows.length - - // Best-effort: the rows are already canceled, so a job that survives is - // inert. Never let a Redis hiccup abort the cancellation loop. - const removals = await Promise.allSettled( - rows.map((row) => - integrationQueue.remove(buildJobId(row.id, row.triggerAt)), - ), - ) - const failed = removals.filter((result) => result.status === "rejected") - if (failed.length > 0) { - logger.warn( - { failedCount: failed.length, workspaceId: props.workspaceId }, - "workspace-freeze: failed to remove smart-delay jobs", + return await drainInBatches({ + afterBatch: async (rows: Pick[]) => { + // Best-effort: the rows are already canceled, so a job that survives is + // inert. Never let a Redis hiccup abort the cancellation loop. + const removals = await Promise.allSettled( + rows.map((row) => + integrationQueue.remove(buildJobId(row.id, row.triggerAt)), + ), ) - } - - if (rows.length < SMART_DELAY_CANCEL_BATCH_SIZE) { - break - } - } - - return canceled + const failed = removals.filter((result) => result.status === "rejected") + if (failed.length > 0) { + logger.warn( + { failedCount: failed.length, workspaceId: props.workspaceId }, + "workspace-freeze: failed to remove smart-delay jobs", + ) + } + }, + batchSize: SMART_DELAY_CANCEL_BATCH_SIZE, + deadlineAt: props.deadlineAt, + maxBatches: MAX_CANCEL_BATCHES, + runBatch: async (tx) => { + const rows = await smartDelayService.cancelActiveForWorkspace({ + limit: SMART_DELAY_CANCEL_BATCH_SIZE, + tx, + workspaceId: props.workspaceId, + }) + return { count: rows.length, value: rows } + }, + table: "ContactOnSmartDelay", + workspaceId: props.workspaceId, + }) } diff --git a/packages/business/src/workspace/__tests__/service.test.ts b/packages/business/src/workspace/__tests__/service.test.ts index 4316207cb0..c606dfd4c2 100644 --- a/packages/business/src/workspace/__tests__/service.test.ts +++ b/packages/business/src/workspace/__tests__/service.test.ts @@ -67,7 +67,7 @@ vi.mock("@chatbotx.io/database/client", () => ({ inArray: vi.fn(), and: vi.fn(), isNull: vi.fn(), - sql: vi.fn(), + sql: Object.assign(vi.fn(), { raw: vi.fn(() => "") }), })) vi.mock("@chatbotx.io/database/partials", async (importOriginal) => { @@ -129,13 +129,6 @@ vi.mock("../../user-quota/service", () => ({ })) vi.mock("../../workspace-lifecycle/service", () => ({ - withPurgeTimeouts: vi.fn( - async ({ - fn, - }: { - fn: (tx: { delete: typeof mocks.workspaceDelete }) => Promise - }) => await fn({ delete: mocks.workspaceDelete }), - ), workspaceLifecycleService: { freezeWorkspaceRuntime: vi.fn(async () => undefined), disconnectWorkspaceIntegrations: vi.fn(async () => undefined), @@ -147,6 +140,16 @@ vi.mock("../../workspace-lifecycle/service", () => ({ }, })) +vi.mock("../../workspace-lifecycle/purge-batch", () => ({ + withPurgeTimeouts: vi.fn( + async ({ + fn, + }: { + fn: (tx: { delete: typeof mocks.workspaceDelete }) => Promise + }) => await fn({ delete: mocks.workspaceDelete }), + ), +})) + vi.mock("../../connection/state-service", () => ({ connectionStateService: { releasePendingQuota: vi.fn(async () => undefined), diff --git a/packages/business/src/workspace/service.ts b/packages/business/src/workspace/service.ts index d04ac09303..10096b4bd2 100644 --- a/packages/business/src/workspace/service.ts +++ b/packages/business/src/workspace/service.ts @@ -37,9 +37,9 @@ import { isCommunity } from "../keys" import { logger } from "../logger" import { quotaEnforcementService } from "../quota-enforcement/service" import { userQuotaService } from "../user-quota/service" +import { withPurgeTimeouts } from "../workspace-lifecycle/purge-batch" import { type WorkspaceTeardownIntegrations, - withPurgeTimeouts, workspaceLifecycleService, } from "../workspace-lifecycle/service" import { diff --git a/packages/database/__tests__/workspace-purge-coverage.test.ts b/packages/database/__tests__/workspace-purge-coverage.test.ts new file mode 100644 index 0000000000..ab8d460458 --- /dev/null +++ b/packages/database/__tests__/workspace-purge-coverage.test.ts @@ -0,0 +1,211 @@ +import { readdirSync, readFileSync } from "node:fs" +import { join } from "node:path" +import { describe, expect, test } from "vitest" +import { + HEAVY_WORKSPACE_TABLES, + NO_FK_WORKSPACE_TABLES, + PARTITIONED_WORKSPACE_TABLES, + WORKSPACE_ANALYTICS_HYPERTABLES, +} from "../src/repositories/workspace-purge" + +type SnapshotEntry = { + columns?: Array + entityType: string + name: string + onDelete?: string + table?: string + tableTo?: string +} + +type Snapshot = { ddl: SnapshotEntry[] } + +const MIGRATION_DIRECTORY = /^\d+_/ + +const drizzleDirectory = join(import.meta.dirname, "../drizzle") +const snapshotPath = join( + drizzleDirectory, + readdirSync(drizzleDirectory) + .filter((entry) => MIGRATION_DIRECTORY.test(entry)) + .sort() + .at(-1) ?? "", + "snapshot.json", +) +const snapshot = JSON.parse(readFileSync(snapshotPath, "utf8")) as Snapshot +const entriesByType = (entityType: string) => + snapshot.ddl.filter((entry) => entry.entityType === entityType) +const key = (table: string, columns: readonly string[]) => + `${table}:${columns.join(",")}` +const indexColumns = (entry: SnapshotEntry) => + (entry.columns ?? []).map((column) => + typeof column === "string" ? column : column.value, + ) +const hasPrefix = (candidate: readonly string[], expected: readonly string[]) => + candidate.length >= expected.length && + expected.every((column, index) => candidate[index] === column) + +const LEGACY_UNINDEXED_FKS = [ + "AdsConversionEvent:integrationWhatsappId", + "AdsConversionEvent:integrationMessengerId", + "AdsConversionEvent:integrationInstagramId", + "AdsConversionRule:integrationWhatsappId", + "AdsConversionRule:integrationFacebookAdsId", + "AdsConversionRule:integrationMessengerId", + "AdsConversionRule:integrationInstagramId", + "AIFunction:triggerFlowId", + "AIFunction:workspaceId", + "AIMCPServer:workspaceId", + "Appointment:conversationId", + "Appointment:contactInboxId", + "AppointmentCalendar:confirmationFlowId", + "AppointmentCalendar:cancellationFlowId", + "AppointmentCalendar:externalConnectionId", + "AppointmentCalendarReminder:flowId", + "AppointmentReminderDispatch:workspaceId", + "AppointmentReminderDispatch:reminderConfigId", + "Account:userId", + "Account:tenantId", + "Invitation:workspaceId", + "Invitation:invitedBy", + "Session:userId", + "AutomatedResponse:folderId", + "AutomatedResponse:flowId", + "BotField:folderId", + "Broadcast:integrationWhatsappId", + "Broadcast:integrationMessengerId", + "CoexistSyncRun:requestedByUserId", + "ConnectSession:targetConnectionId", + "ConnectSession:actorUserId", + "ConnectSession:actorTokenId", + "Connection:createdBy", + "ContactNote:createdById", + "Conversation:assignedUserId", + "Conversation:assignedInboxTeamId", + "ConversationParticipant:userId", + "Coupon:topicId", + "CouponTopic:createdById", + "CustomField:folderId", + "DynamicImage:customFieldId", + "AuditLog:userId", + "File:userId", + "Flow:folderId", + "GoogleAdsConversionEvent:integrationGoogleAdsId", + "Import:userId", + "InboxTeamMember:inboxTeamId", + "InboxTeamMember:userId", + "IntegrationGoogleCalendar:workspaceId", + "IntegrationGoogleSheet:workspaceId", + "IntegrationOpenai:aiAgentId", + "IntegrationOutlookCalendar:workspaceId", + "Leaderboard:referralWelcomeFlowId", + "LeaderboardAuditLog:contactId", + "LeaderboardAuditLog:actorUserId", + "MagicLinkStat:linkId", + "MessagingAdOperation:createdBy", + "MetaCatalogSyncRun:integrationMetaCatalogId", + "MetaCatalogSyncRun:categoryId", + "MiniAppPublication:integrationWhatsappId", + "MiniAppPublication:whatsappFlowId", + "MiniAppSubmission:workspaceId", + "MiniAppUpload:workspaceId", + "DiscountCodeRedemption:workspaceId", + "OrderItem:productId", + "OrderItem:vendorId", + "Questionnaire:triggerFlowId", + "RefLinkStat:linkId", + "Reflink:flowId", + "Reflink:customFieldId", + "Reflink:widgetLogoFileId", + "Template:createdBy", + "TemplateInstallation:installFolderId", + "TemplateInstallation:installedBy", + "UserDeviceToken:workspaceId", + "WhatsappCall:answeredByUserId", + "WhatsappCall:initiatedByUserId", + "WhatsappSignupSession:ownerId", + "WhatsappSignupSession:workspaceId", + "WorkingHoursDateOverride:workingHoursId,workspaceId", + "WorkingHoursMember:userId", + "WorkingHoursMember:workingHoursId,workspaceId", + "Workspace:ownerId", + "WorkspaceMember:userId", +] + +describe("workspace purge coverage", () => { + test("registers every workspace-scoped table outside the Workspace cascade", () => { + const foreignKeys = entriesByType("fks") + const cascadeReachable = new Set(["Workspace"]) + for (let changed = true; changed; ) { + changed = false + for (const foreignKey of foreignKeys) { + if ( + foreignKey.onDelete === "CASCADE" && + foreignKey.table && + foreignKey.tableTo && + cascadeReachable.has(foreignKey.tableTo) && + !cascadeReachable.has(foreignKey.table) + ) { + cascadeReachable.add(foreignKey.table) + changed = true + } + } + } + + const registered = new Set([ + ...HEAVY_WORKSPACE_TABLES, + ...PARTITIONED_WORKSPACE_TABLES.map(({ table }) => table), + ...WORKSPACE_ANALYTICS_HYPERTABLES, + ...NO_FK_WORKSPACE_TABLES.map(({ table }) => table), + ]) + const workspaceTables = new Set( + entriesByType("columns") + .filter((column) => column.name === "workspaceId" && column.table) + .map((column) => column.table as string), + ) + const missing = [...workspaceTables] + .filter( + (table) => !(cascadeReachable.has(table) || registered.has(table)), + ) + .sort() + + expect( + missing, + "Add the table to workspace-purge/tables.ts and follow the workspace-purge skill.", + ).toEqual([]) + }) + + test("does not add an unindexed foreign key or retain a fixed baseline entry", () => { + const support = [ + ...entriesByType("indexes"), + ...entriesByType("pks"), + ...entriesByType("uniques"), + ] + const uncovered = entriesByType("fks") + .filter((foreignKey) => { + const columns = foreignKey.columns ?? [] + return !support.some( + (entry) => + entry.table === foreignKey.table && + hasPrefix(indexColumns(entry), columns), + ) + }) + .map((foreignKey) => + key(foreignKey.table ?? "", foreignKey.columns ?? []), + ) + .sort() + const unexpected = uncovered.filter( + (foreignKey) => !LEGACY_UNINDEXED_FKS.includes(foreignKey), + ) + const fixedBaseline = LEGACY_UNINDEXED_FKS.filter( + (foreignKey) => !uncovered.includes(foreignKey), + ).sort() + + expect( + unexpected, + "Add a leading FK index before adding a new foreign key.", + ).toEqual([]) + expect( + fixedBaseline, + "Remove fixed FKs from LEGACY_UNINDEXED_FKS.", + ).toEqual([]) + }) +}) diff --git a/packages/database/__tests__/workspace-purge-repository.test.ts b/packages/database/__tests__/workspace-purge-repository.test.ts new file mode 100644 index 0000000000..aae43cfdec --- /dev/null +++ b/packages/database/__tests__/workspace-purge-repository.test.ts @@ -0,0 +1,18 @@ +import { describe, expect, test, vi } from "vitest" +import { workspacePurgeRepository } from "../src/repositories/workspace-purge" + +describe("workspace purge repository", () => { + test("decodes an analytics timestamp returned by the postgres driver", async () => { + const execute = vi.fn().mockResolvedValue({ + rows: [{ occurredAt: "2026-10-24T10:00:00.000Z" }], + }) + + const occurredAt = await workspacePurgeRepository.findNextAnalyticsRowAt( + "AnalyticsAgentResponseEvent", + "1", + { execute } as never, + ) + + expect(occurredAt).toEqual(new Date("2026-10-24T10:00:00.000Z")) + }) +}) diff --git a/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql b/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql new file mode 100644 index 0000000000..02c9fb72b4 --- /dev/null +++ b/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql @@ -0,0 +1,14 @@ +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"CommentAutomationReply_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "CommentAutomationReply_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "CommentAutomationReply_workspaceId_idx" ON "CommentAutomationReply" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardAuditLog_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "LeaderboardAuditLog_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardAuditLog_workspaceId_idx" ON "LeaderboardAuditLog" ("workspaceId"); \ No newline at end of file diff --git a/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/snapshot.json b/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/snapshot.json new file mode 100644 index 0000000000..050e7ff5c3 --- /dev/null +++ b/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/snapshot.json @@ -0,0 +1,61940 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "40cf9d2a-d989-4410-a8f6-1ba0485e39de", + "prevIds": [ + "9d0ba254-b168-43a3-ac8d-86a99cf55674" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_aiFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTag_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowVersionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowVersionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql b/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql new file mode 100644 index 0000000000..1c85aeef1b --- /dev/null +++ b/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql @@ -0,0 +1,42 @@ +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIAgent_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIAgent_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIAgent_workspaceId_idx" ON "AIAgent" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIFile_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIFile_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIFile_workspaceId_idx" ON "AIFile" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"Flow_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "Flow_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "Flow_workspaceId_idx" ON "Flow" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"InboxTeam_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "InboxTeam_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "InboxTeam_workspaceId_idx" ON "InboxTeam" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"SavedReply_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "SavedReply_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SavedReply_workspaceId_idx" ON "SavedReply" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"SavedReplyImage_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "SavedReplyImage_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SavedReplyImage_workspaceId_idx" ON "SavedReplyImage" ("workspaceId"); diff --git a/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/snapshot.json b/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/snapshot.json new file mode 100644 index 0000000000..ca55e7ac98 --- /dev/null +++ b/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/snapshot.json @@ -0,0 +1,62066 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "e49563dc-20d4-4b98-9f88-db1819b4eb62", + "prevIds": [ + "40cf9d2a-d989-4410-a8f6-1ba0485e39de" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIAgent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_aiFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTag_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Flow_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowVersionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowVersionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboxTeam_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql b/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql new file mode 100644 index 0000000000..2e1199a615 --- /dev/null +++ b/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql @@ -0,0 +1,36 @@ +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "AnalyticsEmailTopic_contactId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_contactId_idx" ON "AnalyticsEmailTopic" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_conversationId_idx"') AND NOT indisvalid) THEN DROP INDEX "AnalyticsEmailTopic_conversationId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_conversationId_idx" ON "AnalyticsEmailTopic" ("conversationId") WHERE "conversationId" IS NOT NULL;--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_contactInboxId_idx"') AND NOT indisvalid) THEN DROP INDEX "AnalyticsEmailTopic_contactInboxId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_contactInboxId_idx" ON "AnalyticsEmailTopic" ("contactInboxId") WHERE "contactInboxId" IS NOT NULL;--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FacebookLeadAdsLead_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "FacebookLeadAdsLead_contactId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FacebookLeadAdsLead_contactId_idx" ON "FacebookLeadAdsLead" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MiniAppUpload_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "MiniAppUpload_contactId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "MiniAppUpload_contactId_idx" ON "MiniAppUpload" ("contactId");--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MinigameContact_referrerContactId_idx"') AND NOT indisvalid) THEN DROP INDEX "MinigameContact_referrerContactId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "MinigameContact_referrerContactId_idx" ON "MinigameContact" ("referrerContactId") WHERE "referrerContactId" IS NOT NULL;--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MinigameContact_contactInboxId_idx"') AND NOT indisvalid) THEN DROP INDEX "MinigameContact_contactInboxId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "MinigameContact_contactInboxId_idx" ON "MinigameContact" ("contactInboxId") WHERE "contactInboxId" IS NOT NULL;--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "QuestionnaireSubmission_contactId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_contactId_idx" ON "QuestionnaireSubmission" ("contactId");--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_conversationId_idx"') AND NOT indisvalid) THEN DROP INDEX "QuestionnaireSubmission_conversationId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_conversationId_idx" ON "QuestionnaireSubmission" ("conversationId") WHERE "conversationId" IS NOT NULL; \ No newline at end of file diff --git a/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json b/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json new file mode 100644 index 0000000000..4a11ae7806 --- /dev/null +++ b/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json @@ -0,0 +1,62255 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "7e8a925f-4a67-49a0-bd91-03492cfc9814", + "prevIds": [ + "e49563dc-20d4-4b98-9f88-db1819b4eb62" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIAgent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_aiFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTag_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Flow_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowVersionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowVersionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboxTeam_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql b/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql new file mode 100644 index 0000000000..89dafab5a6 --- /dev/null +++ b/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql @@ -0,0 +1,9 @@ +DROP INDEX CONCURRENTLY IF EXISTS "MiniAppUpload_contactId_idx";--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MiniAppUpload_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "MiniAppUpload_contactId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "MiniAppUpload_contactId_idx" ON "MiniAppUpload" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_currentQuestionId_idx"') AND NOT indisvalid) THEN DROP INDEX "QuestionnaireSubmission_currentQuestionId_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_currentQuestionId_idx" ON "QuestionnaireSubmission" ("currentQuestionId") WHERE "currentQuestionId" IS NOT NULL; \ No newline at end of file diff --git a/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json b/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json new file mode 100644 index 0000000000..61906d55b7 --- /dev/null +++ b/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json @@ -0,0 +1,62276 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "8866cec4-c4d7-446e-9a68-8e762c47b77c", + "prevIds": [ + "7e8a925f-4a67-49a0-bd91-03492cfc9814" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIAgent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_aiFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTag_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Flow_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowVersionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowVersionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboxTeam_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "currentQuestionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"currentQuestionId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_currentQuestionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/package.json b/packages/database/package.json index c1479e11d4..e4e236dae9 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -67,6 +67,8 @@ "./repositories/contact-activity": "./src/repositories/contact-activity/index.ts", "./repositories/contact-inbox-post": "./src/repositories/contact-inbox-post/index.ts", "./repositories/workspace": "./src/repositories/workspace/index.ts", + "./repositories/sequence": "./src/repositories/sequence/index.ts", + "./repositories/sequence-dispatch": "./src/repositories/sequence-dispatch/index.ts", "./schema": "./src/schema/index.ts", "./types": "./src/types.ts", "./utils": "./src/utils.ts" diff --git a/packages/database/src/repositories/index.ts b/packages/database/src/repositories/index.ts index 895b4737ec..1d86c693be 100644 --- a/packages/database/src/repositories/index.ts +++ b/packages/database/src/repositories/index.ts @@ -90,3 +90,4 @@ export * from "./working-hours" export * from "./workspace" export * from "./workspace-api-token" export * from "./workspace-member" +export * from "./workspace-purge" diff --git a/packages/database/src/repositories/sequence-dispatch/repository.ts b/packages/database/src/repositories/sequence-dispatch/repository.ts index b2a5995b7f..8a11645da6 100644 --- a/packages/database/src/repositories/sequence-dispatch/repository.ts +++ b/packages/database/src/repositories/sequence-dispatch/repository.ts @@ -168,6 +168,26 @@ export const sequenceDispatchRepository = { return result.rows.length }, + async cancelPendingBatchForWorkspace( + input: { workspaceId: string; limit: number }, + tx: DatabaseClient = db, + ): Promise<{ id: string; bucket: number }[]> { + const result = await tx.execute<{ id: string; bucket: number }>(sql` + UPDATE "SequenceDispatch" + SET "status" = 'canceled', "updatedAt" = NOW() + WHERE ("id", "workspaceId") IN ( + SELECT "id", "workspaceId" + FROM "SequenceDispatch" + WHERE "workspaceId" = ${input.workspaceId} + AND "status" = 'pending' + LIMIT ${input.limit} + FOR UPDATE SKIP LOCKED + ) + RETURNING "id", "bucket" + `) + return result.rows + }, + /** `step-executor.service.ts` fetchStep. */ async findStepWithFlow( input: { id: string }, diff --git a/packages/database/src/repositories/sequence/repository.ts b/packages/database/src/repositories/sequence/repository.ts index b0e37e7369..3fde44e605 100644 --- a/packages/database/src/repositories/sequence/repository.ts +++ b/packages/database/src/repositories/sequence/repository.ts @@ -1,4 +1,10 @@ -import { type DatabaseClient, db, eq, relationsFilterToSQL } from "../../client" +import { + type DatabaseClient, + db, + eq, + relationsFilterToSQL, + sql, +} from "../../client" import { rootFolderId } from "../../partials" import { contactsOnSequenceModel, @@ -103,4 +109,29 @@ export const sequenceRepository = { }, }) }, + + async completeActiveEnrollmentBatch( + input: { workspaceId: string; limit: number }, + tx: DatabaseClient, + ): Promise { + const result = await tx.execute(sql` + UPDATE "ContactOnSequence" + SET + "status" = 'completed', + "completedAt" = NOW(), + "nextRunAt" = NULL, + "nextStepId" = NULL, + "updatedAt" = NOW() + WHERE "id" IN ( + SELECT "id" + FROM "ContactOnSequence" + WHERE "workspaceId" = ${input.workspaceId} + AND "status" = 'active' + LIMIT ${input.limit} + FOR UPDATE SKIP LOCKED + ) + RETURNING "id" + `) + return result.rowCount ?? 0 + }, } diff --git a/packages/database/src/repositories/workspace-purge/index.ts b/packages/database/src/repositories/workspace-purge/index.ts new file mode 100644 index 0000000000..bebeb538ba --- /dev/null +++ b/packages/database/src/repositories/workspace-purge/index.ts @@ -0,0 +1,214 @@ +export * from "./tables" + +import { + and, + type DatabaseClient, + db, + eq, + inArray, + liftDecompressionLimit, + sql, +} from "../../client" +import { attachmentModel, messageModel } from "../../schema" +import type { + HeavyWorkspaceTable, + PartitionedWorkspaceTable, + WorkspaceAnalyticsHypertable, + WorkspacePurgeTable, +} from "./tables" + +const quotedTable = (table: string) => sql.raw(`"${table}"`) +const quotedColumns = (columns: readonly string[]) => + sql.join( + columns.map((column) => sql.raw(`"${column}"`)), + sql`, `, + ) + +const deleteWorkspaceRowsBatch = async ( + table: + | HeavyWorkspaceTable + | "CoexistSyncRun" + | "FlowAnalyticsSession" + | "MessageCleanup", + workspaceId: string, + limit: number, + tx: DatabaseClient = db, +): Promise => { + const tableSql = quotedTable(table) + const result = await tx.execute(sql` + DELETE FROM ${tableSql} + WHERE "ctid" IN ( + SELECT "ctid" + FROM ${tableSql} + WHERE "workspaceId" = ${workspaceId} + LIMIT ${limit} + FOR UPDATE SKIP LOCKED + ) + `) + return result.rowCount ?? 0 +} + +const hasWorkspaceRows = async ( + table: WorkspacePurgeTable, + workspaceId: string, + tx: DatabaseClient = db, +): Promise => { + const result = await tx.execute(sql` + SELECT 1 + FROM ${quotedTable(table)} + WHERE "workspaceId" = ${workspaceId} + LIMIT 1 + `) + return result.rows.length > 0 +} + +const deletePartitionedBatch = async ( + spec: PartitionedWorkspaceTable, + workspaceId: string, + limit: number, + tx: DatabaseClient = db, +): Promise => { + const columns = quotedColumns(spec.primaryKey) + const table = quotedTable(spec.table) + const result = + spec.selector === "broadcastWorkspace" + ? await tx.execute(sql` + DELETE FROM ${table} + WHERE (${columns}) IN ( + SELECT ${sql.join( + spec.primaryKey.map( + (column) => sql`recipient.${sql.raw(`"${column}"`)}`, + ), + sql`, `, + )} + FROM "ContactOnBroadcast" AS recipient + INNER JOIN "Broadcast" AS broadcast + ON broadcast."id" = recipient."broadcastId" + WHERE broadcast."workspaceId" = ${workspaceId} + LIMIT ${limit} + FOR UPDATE OF recipient SKIP LOCKED + ) + `) + : await tx.execute(sql` + DELETE FROM ${table} + WHERE (${columns}) IN ( + SELECT ${columns} + FROM ${table} + WHERE "workspaceId" = ${workspaceId} + LIMIT ${limit} + FOR UPDATE SKIP LOCKED + ) + `) + return result.rowCount ?? 0 +} + +const hasPartitionedWorkspaceRows = async ( + spec: PartitionedWorkspaceTable, + workspaceId: string, + tx: DatabaseClient = db, +): Promise => { + const result = + spec.selector === "broadcastWorkspace" + ? await tx.execute(sql` + SELECT 1 + FROM "ContactOnBroadcast" AS recipient + INNER JOIN "Broadcast" AS broadcast + ON broadcast."id" = recipient."broadcastId" + WHERE broadcast."workspaceId" = ${workspaceId} + LIMIT 1 + `) + : await tx.execute(sql` + SELECT 1 + FROM ${quotedTable(spec.table)} + WHERE "workspaceId" = ${workspaceId} + LIMIT 1 + `) + return result.rows.length > 0 +} + +const findNextAnalyticsRowAt = async ( + table: WorkspaceAnalyticsHypertable, + workspaceId: string, + tx: DatabaseClient = db, +): Promise => { + const result = await tx.execute<{ occurredAt: string }>(sql` + SELECT "occurredAt" + FROM ${quotedTable(table)} + WHERE "workspaceId" = ${workspaceId} + ORDER BY "occurredAt" ASC + LIMIT 1 + `) + const occurredAt = result.rows[0]?.occurredAt + return occurredAt ? new Date(occurredAt) : null +} + +const deleteAnalyticsSlice = async ( + table: WorkspaceAnalyticsHypertable, + workspaceId: string, + from: Date, + to: Date, + tx: DatabaseClient = db, +): Promise => { + await liftDecompressionLimit(tx) + const result = await tx.execute(sql` + DELETE FROM ${quotedTable(table)} + WHERE "workspaceId" = ${workspaceId} + AND "occurredAt" >= ${from} + AND "occurredAt" < ${to} + `) + return result.rowCount ?? 0 +} + +const listMessageConversationPage = async ( + table: "Message" | "Attachment", + workspaceId: string, + limit: number, + tx: DatabaseClient = db, +): Promise => { + const result = await tx.execute<{ conversationId: string }>(sql` + SELECT DISTINCT "conversationId" + FROM ${quotedTable(table)} + WHERE "workspaceId" = ${workspaceId} + ORDER BY "conversationId" ASC + LIMIT ${limit} + `) + return result.rows.map((row) => row.conversationId) +} + +const deleteMessagesAndAttachments = async ( + workspaceId: string, + conversationIds: string[], + tx: DatabaseClient = db, +): Promise => { + await liftDecompressionLimit(tx) + const [messages, attachments] = await Promise.all([ + tx + .delete(messageModel) + .where( + and( + eq(messageModel.workspaceId, workspaceId), + inArray(messageModel.conversationId, conversationIds), + ), + ), + tx + .delete(attachmentModel) + .where( + and( + eq(attachmentModel.workspaceId, workspaceId), + inArray(attachmentModel.conversationId, conversationIds), + ), + ), + ]) + return (messages.rowCount ?? 0) + (attachments.rowCount ?? 0) +} + +export const workspacePurgeRepository = { + deleteAnalyticsSlice, + deleteMessagesAndAttachments, + deletePartitionedBatch, + deleteWorkspaceRowsBatch, + findNextAnalyticsRowAt, + hasPartitionedWorkspaceRows, + hasWorkspaceRows, + listMessageConversationPage, +} diff --git a/packages/database/src/repositories/workspace-purge/tables.ts b/packages/database/src/repositories/workspace-purge/tables.ts new file mode 100644 index 0000000000..1ad8f8cc5b --- /dev/null +++ b/packages/database/src/repositories/workspace-purge/tables.ts @@ -0,0 +1,100 @@ +export const HEAVY_WORKSPACE_TABLES = [ + "ErrorLog", + "AuditLog", + "InboundWebhookRequest", + "CommentAutomationEvent", + "CommentAutomationReply", + "TriggerStat", + "FlowNodeStat", + "MagicLinkStat", + "RefLinkStat", + "MetaCapiEvent", + "AdsConversionEvent", + "GoogleAdsConversionEvent", + "LeaderboardAuditLog", + "LeaderboardParticipant", + "AIConversationEmbedding", + "AIEmbedding", + "TriggerExecution", + "FlowRun", + "FlowVersion", + "ContactOnSmartDelay", + "Conversation", + "Contact", +] as const + +export const PARTITIONED_WORKSPACE_TABLES = [ + { + primaryKey: ["broadcastId", "contactId"], + selector: "broadcastWorkspace", + table: "ContactOnBroadcast", + }, + { + primaryKey: ["id", "workspaceId"], + selector: "workspace", + table: "SequenceDispatch", + }, + { + primaryKey: ["workspaceId", "hourBucket", "contactInboxId"], + selector: "workspace", + table: "ContactActiveHourly", + }, + { + primaryKey: ["workspaceId", "periodStart", "contactInboxId"], + selector: "workspace", + table: "ContactActiveMonthly", + }, +] as const + +export const WORKSPACE_ANALYTICS_HYPERTABLES = [ + "AnalyticsAgentResponseEvent", + "AnalyticsBotMessageEvent", + "AnalyticsBroadcastEvent", + "AnalyticsContactEvent", + "AnalyticsConversationEvent", + "AnalyticsFlowNodeEvent", + "AnalyticsMessageEvent", + "AnalyticsSequenceEvent", +] as const +export const NO_FK_WORKSPACE_TABLES = [ + { + stage: "ctid", + table: "CoexistSyncRun", + }, + { + stage: "ctid", + table: "FlowAnalyticsSession", + }, + { + stage: "partitioned", + table: "ContactActiveHourly", + }, + { + stage: "partitioned", + table: "ContactActiveMonthly", + }, + { + stage: "ctid", + table: "MessageCleanup", + }, + { stage: "contactInboxPost", table: "ContactInboxPost" }, + { + stage: "leaderboard", + table: "LeaderboardScoreEvent", + }, + { stage: "hypertable", table: "Message" }, + { stage: "hypertable", table: "Attachment" }, +] as const + +export type HeavyWorkspaceTable = (typeof HEAVY_WORKSPACE_TABLES)[number] +export type PartitionedWorkspaceTable = + (typeof PARTITIONED_WORKSPACE_TABLES)[number] +export type WorkspaceAnalyticsHypertable = + (typeof WORKSPACE_ANALYTICS_HYPERTABLES)[number] +export type NoFkWorkspaceTable = + (typeof NO_FK_WORKSPACE_TABLES)[number]["table"] +export type WorkspacePurgeTable = + | HeavyWorkspaceTable + | NoFkWorkspaceTable + | PartitionedWorkspaceTable["table"] + | WorkspaceAnalyticsHypertable diff --git a/packages/database/src/schema/ai-agent.ts b/packages/database/src/schema/ai-agent.ts index 8aa5499097..0c0dd72fa8 100644 --- a/packages/database/src/schema/ai-agent.ts +++ b/packages/database/src/schema/ai-agent.ts @@ -2,6 +2,7 @@ import { sql } from "drizzle-orm" import { boolean, doublePrecision, + index, integer, jsonb, pgTable, @@ -10,24 +11,28 @@ import { import { bigintAsString, sharedColumns } from "../partials/shared" import { workspaceModel } from "./workspace" -export const aiAgentModel = pgTable("AIAgent", { - ...sharedColumns, - workspaceId: bigintAsString() - .notNull() - .references(() => workspaceModel.id, { - onDelete: "cascade", - onUpdate: "cascade", - }), - name: text().notNull(), - prompt: text(), - actionPrompt: text(), - actionRules: jsonb().array().notNull().default(sql`ARRAY[]::jsonb[]`), - messages: jsonb().array().notNull().default(sql`[]`), - isDefault: boolean().default(false).notNull(), - isRichResponse: boolean().default(false).notNull(), - tools: text().array().notNull().default(sql`[]`), - webSearchAuthorizedDomains: text().array().notNull().default(sql`[]`), - models: jsonb().array().notNull().default(sql`[]`), - temperature: doublePrecision().notNull(), - maxOutputTokens: integer().notNull(), -}) +export const aiAgentModel = pgTable( + "AIAgent", + { + ...sharedColumns, + workspaceId: bigintAsString() + .notNull() + .references(() => workspaceModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + name: text().notNull(), + prompt: text(), + actionPrompt: text(), + actionRules: jsonb().array().notNull().default(sql`ARRAY[]::jsonb[]`), + messages: jsonb().array().notNull().default(sql`[]`), + isDefault: boolean().default(false).notNull(), + isRichResponse: boolean().default(false).notNull(), + tools: text().array().notNull().default(sql`[]`), + webSearchAuthorizedDomains: text().array().notNull().default(sql`[]`), + models: jsonb().array().notNull().default(sql`[]`), + temperature: doublePrecision().notNull(), + maxOutputTokens: integer().notNull(), + }, + (table) => [index("AIAgent_workspaceId_idx").on(table.workspaceId)], +) diff --git a/packages/database/src/schema/ai-file.ts b/packages/database/src/schema/ai-file.ts index 8eef6606a7..6630f721aa 100644 --- a/packages/database/src/schema/ai-file.ts +++ b/packages/database/src/schema/ai-file.ts @@ -1,17 +1,21 @@ -import { integer, pgTable, text } from "drizzle-orm/pg-core" +import { index, integer, pgTable, text } from "drizzle-orm/pg-core" import { bigintAsString, sharedColumns } from "../partials/shared" import { workspaceModel } from "./workspace" -export const aiFileModel = pgTable("AIFile", { - ...sharedColumns, - name: text().notNull(), - path: text().notNull(), - size: integer().notNull(), - mimeType: text().notNull(), - workspaceId: bigintAsString() - .notNull() - .references(() => workspaceModel.id, { - onDelete: "cascade", - onUpdate: "cascade", - }), -}) +export const aiFileModel = pgTable( + "AIFile", + { + ...sharedColumns, + name: text().notNull(), + path: text().notNull(), + size: integer().notNull(), + mimeType: text().notNull(), + workspaceId: bigintAsString() + .notNull() + .references(() => workspaceModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + }, + (table) => [index("AIFile_workspaceId_idx").on(table.workspaceId)], +) diff --git a/packages/database/src/schema/analytics-email-topic.ts b/packages/database/src/schema/analytics-email-topic.ts index 057959061a..96948d99b6 100644 --- a/packages/database/src/schema/analytics-email-topic.ts +++ b/packages/database/src/schema/analytics-email-topic.ts @@ -1,3 +1,4 @@ +import { sql } from "drizzle-orm" import { index, integer, @@ -73,5 +74,14 @@ export const analyticsEmailTopicModel = pgTable( table.workspaceId.asc().nullsLast(), table.topicId.asc().nullsLast(), ), + index("AnalyticsEmailTopic_contactId_idx") + .on(table.contactId) + .where(sql`${table.contactId} IS NOT NULL`), + index("AnalyticsEmailTopic_conversationId_idx") + .on(table.conversationId) + .where(sql`${table.conversationId} IS NOT NULL`), + index("AnalyticsEmailTopic_contactInboxId_idx") + .on(table.contactInboxId) + .where(sql`${table.contactInboxId} IS NOT NULL`), ], ) diff --git a/packages/database/src/schema/comment-automation-reply.ts b/packages/database/src/schema/comment-automation-reply.ts index dbb5d6d4ec..a62d4e5a2f 100644 --- a/packages/database/src/schema/comment-automation-reply.ts +++ b/packages/database/src/schema/comment-automation-reply.ts @@ -26,5 +26,6 @@ export const commentAutomationReplyModel = pgTable( t.postId, ), index("CommentAutomationReply_contactId_idx").on(t.contactId), + index("CommentAutomationReply_workspaceId_idx").on(t.workspaceId), ], ) diff --git a/packages/database/src/schema/facebook-lead-ads-lead.ts b/packages/database/src/schema/facebook-lead-ads-lead.ts index 409e303297..93343350da 100644 --- a/packages/database/src/schema/facebook-lead-ads-lead.ts +++ b/packages/database/src/schema/facebook-lead-ads-lead.ts @@ -1,3 +1,4 @@ +import { sql } from "drizzle-orm" import { index, pgTable, text, uniqueIndex } from "drizzle-orm/pg-core" import { bigintAsString, sharedColumns } from "../partials/shared" import { contactModel } from "./contact" @@ -28,5 +29,8 @@ export const facebookLeadAdsLeadModel = pgTable( table.leadgenId.asc().nullsLast(), ), index("FacebookLeadAdsLead_leadgenId_idx").on(table.leadgenId), + index("FacebookLeadAdsLead_contactId_idx") + .on(table.contactId) + .where(sql`${table.contactId} IS NOT NULL`), ], ) diff --git a/packages/database/src/schema/flow.ts b/packages/database/src/schema/flow.ts index 9199c5e1f4..9a962d76ed 100644 --- a/packages/database/src/schema/flow.ts +++ b/packages/database/src/schema/flow.ts @@ -1,23 +1,27 @@ -import { boolean, pgTable, text } from "drizzle-orm/pg-core" +import { boolean, index, pgTable, text } from "drizzle-orm/pg-core" import { bigintAsString, sharedColumns } from "../partials/shared" import { folderModel } from "./folder" import { workspaceModel } from "./workspace" -export const flowModel = pgTable("Flow", { - ...sharedColumns, - name: text().notNull(), - active: boolean().default(true).notNull(), - enableInInbox: boolean().default(true).notNull(), - currentVersionId: bigintAsString(), - draftVersionId: bigintAsString(), - workspaceId: bigintAsString() - .notNull() - .references(() => workspaceModel.id, { - onDelete: "cascade", +export const flowModel = pgTable( + "Flow", + { + ...sharedColumns, + name: text().notNull(), + active: boolean().default(true).notNull(), + enableInInbox: boolean().default(true).notNull(), + currentVersionId: bigintAsString(), + draftVersionId: bigintAsString(), + workspaceId: bigintAsString() + .notNull() + .references(() => workspaceModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + folderId: bigintAsString().references(() => folderModel.id, { + onDelete: "set null", onUpdate: "cascade", }), - folderId: bigintAsString().references(() => folderModel.id, { - onDelete: "set null", - onUpdate: "cascade", - }), -}) + }, + (table) => [index("Flow_workspaceId_idx").on(table.workspaceId)], +) diff --git a/packages/database/src/schema/inbox-team.ts b/packages/database/src/schema/inbox-team.ts index 0460174063..e5a4344987 100644 --- a/packages/database/src/schema/inbox-team.ts +++ b/packages/database/src/schema/inbox-team.ts @@ -1,14 +1,18 @@ -import { pgTable, text } from "drizzle-orm/pg-core" +import { index, pgTable, text } from "drizzle-orm/pg-core" import { bigintAsString, sharedColumns } from "../partials/shared" import { workspaceModel } from "./workspace" -export const inboxTeamModel = pgTable("InboxTeam", { - ...sharedColumns, - workspaceId: bigintAsString() - .notNull() - .references(() => workspaceModel.id, { - onDelete: "cascade", - onUpdate: "cascade", - }), - name: text().notNull(), -}) +export const inboxTeamModel = pgTable( + "InboxTeam", + { + ...sharedColumns, + workspaceId: bigintAsString() + .notNull() + .references(() => workspaceModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + name: text().notNull(), + }, + (table) => [index("InboxTeam_workspaceId_idx").on(table.workspaceId)], +) diff --git a/packages/database/src/schema/leaderboard-audit-log.ts b/packages/database/src/schema/leaderboard-audit-log.ts index a2540b865d..9e69acc25f 100644 --- a/packages/database/src/schema/leaderboard-audit-log.ts +++ b/packages/database/src/schema/leaderboard-audit-log.ts @@ -68,5 +68,9 @@ export const leaderboardAuditLogModel = pgTable( table.leaderboardId.asc().nullsLast(), table.createdAt.desc().nullsFirst(), ), + index("LeaderboardAuditLog_workspaceId_idx").using( + "btree", + table.workspaceId.asc().nullsLast(), + ), ], ) diff --git a/packages/database/src/schema/mini-app-upload.ts b/packages/database/src/schema/mini-app-upload.ts index da1c1582b8..09466bac20 100644 --- a/packages/database/src/schema/mini-app-upload.ts +++ b/packages/database/src/schema/mini-app-upload.ts @@ -1,3 +1,4 @@ +import { sql } from "drizzle-orm" import { index, integer, @@ -72,5 +73,8 @@ export const miniAppUploadModel = pgTable( "btree", table.submissionId.asc().nullsLast(), ), + index("MiniAppUpload_contactId_idx") + .on(table.contactId) + .where(sql`${table.contactId} IS NOT NULL`), ], ) diff --git a/packages/database/src/schema/minigame-contact.ts b/packages/database/src/schema/minigame-contact.ts index 509f9b69a5..d60aa921f6 100644 --- a/packages/database/src/schema/minigame-contact.ts +++ b/packages/database/src/schema/minigame-contact.ts @@ -1,3 +1,4 @@ +import { sql } from "drizzle-orm" import { index, integer, @@ -93,5 +94,11 @@ export const minigameContactModel = pgTable( table.minigameId.asc().nullsLast(), table.contactId.asc().nullsLast(), ), + index("MinigameContact_referrerContactId_idx") + .on(table.referrerContactId) + .where(sql`${table.referrerContactId} IS NOT NULL`), + index("MinigameContact_contactInboxId_idx") + .on(table.contactInboxId) + .where(sql`${table.contactInboxId} IS NOT NULL`), ], ) diff --git a/packages/database/src/schema/questionnaire.ts b/packages/database/src/schema/questionnaire.ts index cec0f9029a..5cb2faa5df 100644 --- a/packages/database/src/schema/questionnaire.ts +++ b/packages/database/src/schema/questionnaire.ts @@ -197,6 +197,13 @@ export const questionnaireSubmissionModel = pgTable( table.questionnaireId.asc().nullsLast(), table.contactId.asc().nullsLast(), ), + index("QuestionnaireSubmission_contactId_idx").on(table.contactId), + index("QuestionnaireSubmission_conversationId_idx") + .on(table.conversationId) + .where(sql`${table.conversationId} IS NOT NULL`), + index("QuestionnaireSubmission_currentQuestionId_idx") + .on(table.currentQuestionId) + .where(sql`${table.currentQuestionId} IS NOT NULL`), uniqueIndex("QuestionnaireSubmission_workspaceId_contactId_active_key") .on(table.workspaceId, table.contactId) .where(sql`${table.status} = 'inProgress'`), diff --git a/packages/database/src/schema/saved-reply-image.ts b/packages/database/src/schema/saved-reply-image.ts index 8ac26887c7..ced9d72b64 100644 --- a/packages/database/src/schema/saved-reply-image.ts +++ b/packages/database/src/schema/saved-reply-image.ts @@ -43,6 +43,10 @@ export const savedReplyImageModel = pgTable( "btree", table.mediaLibraryFileId.asc().nullsLast(), ), + index("SavedReplyImage_workspaceId_idx").using( + "btree", + table.workspaceId.asc().nullsLast(), + ), uniqueIndex("SavedReplyImage_savedReplyId_mediaLibraryFileId_key").on( table.savedReplyId, table.mediaLibraryFileId, diff --git a/packages/database/src/schema/saved-reply.ts b/packages/database/src/schema/saved-reply.ts index 3926d65b30..c260f07896 100644 --- a/packages/database/src/schema/saved-reply.ts +++ b/packages/database/src/schema/saved-reply.ts @@ -1,15 +1,19 @@ -import { pgTable, text } from "drizzle-orm/pg-core" +import { index, pgTable, text } from "drizzle-orm/pg-core" import { bigintAsString, sharedColumns } from "../partials/shared" import { workspaceModel } from "./workspace" -export const savedReplyModel = pgTable("SavedReply", { - ...sharedColumns, - shortcut: text().notNull(), - text: text().notNull(), - workspaceId: bigintAsString() - .notNull() - .references(() => workspaceModel.id, { - onDelete: "cascade", - onUpdate: "cascade", - }), -}) +export const savedReplyModel = pgTable( + "SavedReply", + { + ...sharedColumns, + shortcut: text().notNull(), + text: text().notNull(), + workspaceId: bigintAsString() + .notNull() + .references(() => workspaceModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + }, + (table) => [index("SavedReply_workspaceId_idx").on(table.workspaceId)], +) diff --git a/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts b/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts index f5dd703e08..6b4219f4ea 100644 --- a/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts +++ b/packages/sequence-scheduler/__tests__/dispatch-manager.test.ts @@ -350,27 +350,4 @@ describe("cancelPendingDispatches", () => { expect(customFindManyMock).toHaveBeenCalledTimes(1) expect(findManyMock).not.toHaveBeenCalled() }) - - test("cancels a workspace's pending dispatches in an atomic bounded batch", async () => { - const { cancelPendingDispatchesForWorkspace } = await import( - "../src/dispatch-cancel" - ) - const onCanceled = vi.fn().mockResolvedValue(undefined) - executeMock.mockResolvedValue({ - rows: [{ bucket: 9, id: "d-1" }], - }) - - const result = await cancelPendingDispatchesForWorkspace({ - onCanceled, - workspaceId: "ws-2", - }) - - expect(result).toBe(1) - expect(executeMock).toHaveBeenCalledOnce() - const statement = executeMock.mock.calls[0][0] - expect(statement.strings.join("")).toContain('UPDATE "SequenceDispatch"') - expect(statement.strings.join("")).toContain("FOR UPDATE SKIP LOCKED") - expect(statement.values).toEqual(["ws-2", 500]) - expect(onCanceled).toHaveBeenCalledWith([{ bucket: 9, id: "d-1" }]) - }) }) diff --git a/packages/sequence-scheduler/src/dispatch-cancel.ts b/packages/sequence-scheduler/src/dispatch-cancel.ts index 0eb813055a..9e4cc136cc 100644 --- a/packages/sequence-scheduler/src/dispatch-cancel.ts +++ b/packages/sequence-scheduler/src/dispatch-cancel.ts @@ -4,9 +4,9 @@ import { db, eq, inArray, - sql, type Transaction, } from "@chatbotx.io/database/client" +import { sequenceDispatchRepository } from "@chatbotx.io/database/repositories/sequence-dispatch" import { sequenceDispatchModel } from "@chatbotx.io/database/schema" import { sequenceConnections } from "@chatbotx.io/redis" import { SchedulerClient } from "@chatbotx.io/scheduler" @@ -48,7 +48,6 @@ const pendingDispatchColumns = { stepId: true, } as const export const WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE = 500 -export const MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES = 400 export interface CancelPendingDispatchesParams { client?: DatabaseClient | Transaction @@ -118,44 +117,13 @@ export async function cancelPendingDispatchBatch(params: { client?: DatabaseClient workspaceId: string }): Promise { - const result = await (params.client ?? db).execute(sql` - UPDATE "SequenceDispatch" - SET "status" = 'canceled', "updatedAt" = NOW() - WHERE ("id", "workspaceId") IN ( - SELECT "id", "workspaceId" - FROM "SequenceDispatch" - WHERE "workspaceId" = ${params.workspaceId} - AND "status" = 'pending' - LIMIT ${WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE} - FOR UPDATE SKIP LOCKED - ) - RETURNING "id", "bucket" - `) - return result.rows -} - -export async function cancelPendingDispatchesForWorkspace(params: { - client?: DatabaseClient - onCanceled?: (dispatches: ScheduledDispatch[]) => Promise - workspaceId: string -}): Promise { - const maxBatches = params.client ? 1 : MAX_WORKSPACE_DISPATCH_CANCEL_BATCHES - let canceled = 0 - - for (let batch = 0; batch < maxBatches; batch += 1) { - const dispatches = await cancelPendingDispatchBatch(params) - canceled += dispatches.length - if (dispatches.length === 0) { - break - } - - await params.onCanceled?.(dispatches) - if (dispatches.length < WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE) { - break - } - } - - return canceled + return await sequenceDispatchRepository.cancelPendingBatchForWorkspace( + { + limit: WORKSPACE_DISPATCH_CANCEL_BATCH_SIZE, + workspaceId: params.workspaceId, + }, + params.client, + ) } export async function removeDispatchesFromSchedule( From af0be70db0fa492006d442f056bc802e3e4faa29 Mon Sep 17 00:00:00 2001 From: Real Codesiman Date: Sat, 24 Oct 2026 21:35:48 +0700 Subject: [PATCH 3/7] fix(workspace): retain workspace billing usage --- .agents/skills/workspace-purge/SKILL.md | 1 + .devin/rules/chatbotx.md | 2 +- .github/copilot-instructions.md | 2 +- AGENTS.md | 2 +- .../__tests__/api-parity-manifest.json | 4 +- ...schedule-workspace-deletion-action.test.ts | 10 +- .../cancel-workspace-deletion-action.ts | 10 +- .../schedule-workspace-deletion-action.ts | 11 +- .../__tests__/message-analytics-quota.test.ts | 15 + .../sync-user-quota-reconcile.test.ts | 27 +- apps/worker/src/events/analytics/message.ts | 2 + .../src/schedule/handlers/sync-user-quota.ts | 45 +- docs/tenancy.md | 19 +- .../__tests__/mac-analytics.service.test.ts | 20 - .../__tests__/mac.repository.test.ts | 70 +- .../repositories/postgres/mac.repository.ts | 109 +- packages/analytics/src/schemas/mac.ts | 6 - .../src/services/mac-analytics.service.ts | 6 - .../user-quota-reconcile-self.test.ts | 29 +- packages/business/src/index.ts | 1 + packages/business/src/user-quota/service.ts | 98 +- .../src/workspace-bot-message-usage/index.ts | 1 + .../workspace-bot-message-usage/service.ts | 46 + .../src/workspace-lifecycle/service.ts | 19 +- .../src/workspace/__tests__/service.test.ts | 28 +- packages/business/src/workspace/service.ts | 53 +- .../workspace-purge-coverage.test.ts | 12 + .../migration.sql | 59 + .../snapshot.json | 63351 ++++++++++++++++ packages/database/package.json | 3 + .../scripts/backfill-workspace-mac-owner.mjs | 110 + packages/database/src/relations/index.ts | 4 + .../relations/workspace-bot-message-usage.ts | 15 + .../relations/workspace-deletion-record.ts | 9 + packages/database/src/repositories/index.ts | 1 + .../workspace-bot-message-usage/index.ts | 1 + .../workspace-bot-message-usage/repository.ts | 28 + .../workspace-deletion-record/index.ts | 1 + .../workspace-deletion-record/repository.ts | 181 + .../src/repositories/workspace-mac/index.ts | 1 + .../repositories/workspace-mac/repository.ts | 46 + .../repositories/workspace-purge/tables.ts | 21 + packages/database/src/schema/index.ts | 2 + .../src/schema/workspace-bot-message-usage.ts | 49 + .../src/schema/workspace-deletion-record.ts | 125 + packages/database/src/schema/workspace-mac.ts | 24 +- packages/database/src/schema/workspace.ts | 2 + packages/database/src/types.ts | 4 + 48 files changed, 64422 insertions(+), 263 deletions(-) create mode 100644 packages/business/src/workspace-bot-message-usage/index.ts create mode 100644 packages/business/src/workspace-bot-message-usage/service.ts create mode 100644 packages/database/drizzle/20261024120555_retain_workspace_mac_billing/migration.sql create mode 100644 packages/database/drizzle/20261024120555_retain_workspace_mac_billing/snapshot.json create mode 100644 packages/database/scripts/backfill-workspace-mac-owner.mjs create mode 100644 packages/database/src/relations/workspace-bot-message-usage.ts create mode 100644 packages/database/src/relations/workspace-deletion-record.ts create mode 100644 packages/database/src/repositories/workspace-bot-message-usage/index.ts create mode 100644 packages/database/src/repositories/workspace-bot-message-usage/repository.ts create mode 100644 packages/database/src/repositories/workspace-deletion-record/index.ts create mode 100644 packages/database/src/repositories/workspace-deletion-record/repository.ts create mode 100644 packages/database/src/repositories/workspace-mac/index.ts create mode 100644 packages/database/src/repositories/workspace-mac/repository.ts create mode 100644 packages/database/src/schema/workspace-bot-message-usage.ts create mode 100644 packages/database/src/schema/workspace-deletion-record.ts diff --git a/.agents/skills/workspace-purge/SKILL.md b/.agents/skills/workspace-purge/SKILL.md index 1ea6107bb2..33dbc9eb00 100644 --- a/.agents/skills/workspace-purge/SKILL.md +++ b/.agents/skills/workspace-purge/SKILL.md @@ -28,6 +28,7 @@ The scheduled worker may retry this path. Every step must be idempotent and leav 4. **Keep every purge/freeze statement bounded.** Use a `LIMIT` plus keyset or `FOR UPDATE SKIP LOCKED`, one short transaction per batch, and no `IN` built from every matching id. Never call HTTP while holding a database transaction. Use `withPurgeTimeouts`; stop before the cron deadline so its run stays below the distributed-lock TTL. 5. **Make teardown idempotent.** It runs again on each tick. Convert temporary lock/timeout failures into `WorkspacePurgeIncompleteError` so the next tick resumes safely. 6. **Reconcile the correct quota scope.** Call `userQuotaService.reconcileOwnerAfterTeardown(ownerId)`; never count all root-tenant resources as a reseller pool. +7. **Retain billing ledgers.** Owner-keyed billing consumption rollups such as `WorkspaceMac` are evidence of period usage and must be registered as `retainedBilling`, never deleted with their workspace. ## Before merge - Run `pnpm --filter @chatbotx.io/database test` and inspect the purge FK index tests. diff --git a/.devin/rules/chatbotx.md b/.devin/rules/chatbotx.md index 642ed14665..6b4eeac354 100644 --- a/.devin/rules/chatbotx.md +++ b/.devin/rules/chatbotx.md @@ -60,7 +60,7 @@ pnpm workspaces + Turborepo · TypeScript 5 · React 19 · Next.js 16 (builder) 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). -24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Billing consumption ledgers (`WorkspaceMac`) are owner-keyed and are never purged with the workspace. Read `.agents/skills/workspace-purge/SKILL.md`. ## Workflow diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 3bf113f45f..e8442981b9 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -64,7 +64,7 @@ These instructions apply repository-wide. Read the relevant detailed rule in `.a 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). -24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Billing consumption ledgers (`WorkspaceMac`) are owner-keyed and are never purged with the workspace. Read `.agents/skills/workspace-purge/SKILL.md`. ## Rule index diff --git a/AGENTS.md b/AGENTS.md index 6c68004ff9..e1da47ce30 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -197,7 +197,7 @@ These are the most common mistakes — read before writing any code: 23. **Agent-first: every feature ships a public API — including the ones that only return a result.** The CLI and MCP server derive their whole surface from `GET /api/public-spec.json` (`publicRouter`), so a capability without a public procedure does not exist for an AI agent, however well it works in the UI. A new feature — or a new operation on an existing one — must add a procedure to its `features//api/public.ts`, nested in `apps/builder/src/routers/public.ts`, behind `workspaceTokenAuthAPIForScope("")`. This covers **result-returning operations**, not just CRUD: anything a user clicks in the UI to *get something back* — a link (`botSimulator.getLink` is the reference), a preview or render, a test run/test send/connection test, stats and reports, an export, AI-generated content, a status check, a sync or scan. The rule of thumb: if a button in the UI produces a result, an agent must be able to call one operation and receive the same result. Build the public procedure **first** and the UI second; both call the same service method or `features//lib/` function, never two implementations. The response must be machine-usable data (ids, URLs, JSON) — never something that only renders on screen — and the procedure's `summary`/`description` must say which operation supplies each input id (e.g. "Get webchat ids from `webchats.list`"). Then run the `cli-mcp-docs` skill. **Exempt** (state the reason in the PR): sign-in/sign-up and personal account settings; platform administration (super admin, reseller, tenant, platform credentials); end-customer public pages (webviews, short links, booking pages); the browser-redirect step of a channel OAuth connect (the post-connect read/settings/disconnect still need an API); UI-only plumbing (device push tokens, realtime, help items); and operations a workspace token must never perform (minting/revoking API tokens). -24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Read `.agents/skills/workspace-purge/SKILL.md`. +24. **Workspace purge must stay bounded.** Every new FK must have a leading index; high-volume workspace purge paths need explicit audit coverage. `packages/database/__tests__/workspace-purge-coverage.test.ts` rejects a workspace-scoped table without a cascade path or registered purge strategy, and new unindexed FKs. Large workspace tables drain child-before-parent in bounded batches; partitioned tables delete by PK tuples and hypertables by workspace chunks; freeze/purge work uses short timeout-guarded transactions. Billing consumption ledgers (`WorkspaceMac`) are owner-keyed and are never purged with the workspace. Read `.agents/skills/workspace-purge/SKILL.md`. diff --git a/apps/builder/__tests__/api-parity-manifest.json b/apps/builder/__tests__/api-parity-manifest.json index 21455c1b71..505aaa17f8 100644 --- a/apps/builder/__tests__/api-parity-manifest.json +++ b/apps/builder/__tests__/api-parity-manifest.json @@ -463,11 +463,11 @@ "workspace-members/delete-workspace-member.action:deleteWorkspaceMemberAction": "covered:workspace-members", "workspace-members/invite-workspace-member.action:inviteWorkspaceMemberAction": "covered:workspace-members", "workspace-members/update-workspace-member.action:updateWorkspaceMemberAction": "covered:workspace-members", - "workspaces/cancel-workspace-deletion-action:cancelWorkspaceDeletionAction": "covered:workspaces", + "workspaces/cancel-workspace-deletion-action:cancelWorkspaceDeletionAction": "private:destructive account-auth operation; workspace tokens cannot schedule or cancel deletion", "workspaces/create-workspace-token-action:createWorkspaceTokenAction": "covered:workspaces", "workspaces/delete-workspace-token-action:deleteWorkspaceTokenAction": "covered:workspaces", "workspaces/refresh-all-channel-tokens.action:refreshAllChannelTokensAction": "covered:workspaces", - "workspaces/schedule-workspace-deletion-action:scheduleWorkspaceDeletionAction": "covered:workspaces", + "workspaces/schedule-workspace-deletion-action:scheduleWorkspaceDeletionAction": "private:destructive account-auth operation; workspace tokens cannot schedule or cancel deletion", "workspaces/toggle-support-access.action:toggleSupportAccessAction": "covered:workspaces", "workspaces/update-workspace-action:updateWorkspaceBasicAction": "covered:workspaces", "workspaces/update-workspace-action:updateWorkspaceAdvancedAction": "covered:workspaces", diff --git a/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts b/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts index ad3a1ae88f..f51d6ada9c 100644 --- a/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts +++ b/apps/builder/__tests__/schedule-workspace-deletion-action.test.ts @@ -29,6 +29,10 @@ vi.mock("@chatbotx.io/business", () => ({ }, })) +vi.mock("next-intl/server", () => ({ + getTranslations: vi.fn(async () => (key: string) => key), +})) + const { scheduleWorkspaceDeletionAction } = await import( "../src/features/workspaces/actions/schedule-workspace-deletion-action" ) @@ -39,6 +43,7 @@ beforeEach(() => { targetWorkspaceMember: { permissions: { superAdmin: true }, }, + user: { id: "user-1" }, }) mockHasWorkspacePermission.mockReturnValue(true) mockScheduleDeletion.mockResolvedValue(undefined) @@ -51,5 +56,8 @@ test("schedules a reversible workspace deletion grace period", async () => { bindArgsParsedInputs: ["workspace-1"], }) - expect(mockScheduleDeletion).toHaveBeenCalledWith({ id: "workspace-1" }) + expect(mockScheduleDeletion).toHaveBeenCalledWith({ + actorId: "user-1", + id: "workspace-1", + }) }) diff --git a/apps/builder/src/features/workspaces/actions/cancel-workspace-deletion-action.ts b/apps/builder/src/features/workspaces/actions/cancel-workspace-deletion-action.ts index d0fca1a8b5..74d32fd05a 100644 --- a/apps/builder/src/features/workspaces/actions/cancel-workspace-deletion-action.ts +++ b/apps/builder/src/features/workspaces/actions/cancel-workspace-deletion-action.ts @@ -19,20 +19,17 @@ export const cancelWorkspaceDeletionAction = workspaceActionClientAllowExpired }: { bindArgsParsedInputs: WorkspaceIdRequestParams }) => { + const t = await getTranslations() const currentUserAndTargetWorkspace = await getCurrentUserAndTargetWorkspace(workspaceId) if (!currentUserAndTargetWorkspace) { - throw new ChatbotXException( - "You are not authorized to restore this workspace", - ) + throw new ChatbotXException(t("errors.superAdminRequired")) } const { permissions } = currentUserAndTargetWorkspace.targetWorkspaceMember if (!hasWorkspacePermission(permissions, "superAdmin")) { - throw new ChatbotXException( - "You need to be a super admin to restore this workspace", - ) + throw new ChatbotXException(t("errors.superAdminRequired")) } try { @@ -44,7 +41,6 @@ export const cancelWorkspaceDeletionAction = workspaceActionClientAllowExpired err instanceof ChatbotXException && err.code === "workspaceDeletionStarted" ) { - const t = await getTranslations() throw new ChatbotXException( t("workspace.deletion.alreadyStarted"), err.code, diff --git a/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts b/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts index 0eb1c20509..3b3b72433a 100644 --- a/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts +++ b/apps/builder/src/features/workspaces/actions/schedule-workspace-deletion-action.ts @@ -2,6 +2,7 @@ import { workspaceService } from "@chatbotx.io/business" import { ChatbotXException } from "@chatbotx.io/business/errors" +import { getTranslations } from "next-intl/server" import { type WorkspaceIdRequestParams, workspaceIdrequestParams, @@ -18,23 +19,21 @@ export const scheduleWorkspaceDeletionAction = workspaceActionClientAllowExpired }: { bindArgsParsedInputs: WorkspaceIdRequestParams }) => { + const t = await getTranslations() const currentUserAndTargetWorkspace = await getCurrentUserAndTargetWorkspace(workspaceId) if (!currentUserAndTargetWorkspace) { - throw new ChatbotXException( - "You are not authorized to delete this workspace", - ) + throw new ChatbotXException(t("errors.superAdminRequired")) } const { permissions } = currentUserAndTargetWorkspace.targetWorkspaceMember if (!hasWorkspacePermission(permissions, "superAdmin")) { - throw new ChatbotXException( - "You need to be a super admin to delete this workspace", - ) + throw new ChatbotXException(t("errors.superAdminRequired")) } await workspaceService.scheduleDeletion({ + actorId: currentUserAndTargetWorkspace.user.id, id: workspaceId, }) }, diff --git a/apps/worker/__tests__/message-analytics-quota.test.ts b/apps/worker/__tests__/message-analytics-quota.test.ts index 78363091e8..c83c035aa1 100644 --- a/apps/worker/__tests__/message-analytics-quota.test.ts +++ b/apps/worker/__tests__/message-analytics-quota.test.ts @@ -1,6 +1,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest" const mocks = vi.hoisted(() => ({ + incrementBotUsage: vi.fn(), incrementBy: vi.fn(), incrementUsage: vi.fn(), recordEvents: vi.fn(), @@ -12,6 +13,7 @@ vi.mock("@chatbotx.io/analytics", () => ({ })) vi.mock("@chatbotx.io/business", () => ({ quotaEnforcementService: { incrementBy: mocks.incrementBy }, + workspaceBotMessageUsageService: { increment: mocks.incrementBotUsage }, workspaceService: { findById: mocks.findById }, workspaceUsageService: { increment: mocks.incrementUsage }, })) @@ -33,6 +35,7 @@ describe("handleBotMessageSent quota accounting", () => { vi.clearAllMocks() mocks.recordEvents.mockResolvedValue(undefined) mocks.incrementBy.mockResolvedValue(undefined) + mocks.incrementBotUsage.mockResolvedValue(undefined) mocks.incrementUsage.mockResolvedValue(undefined) mocks.findById.mockImplementation(({ id }: { id: string }) => Promise.resolve({ ownerId: `owner-${id}` }), @@ -67,6 +70,14 @@ describe("handleBotMessageSent quota accounting", () => { metric: "monthlyBotMessages", count: 1, }) + expect(mocks.incrementBotUsage).toHaveBeenCalledWith({ + count: 2, + workspaceId: "workspace-1", + }) + expect(mocks.incrementBotUsage).toHaveBeenCalledWith({ + count: 1, + workspaceId: "workspace-2", + }) expect(mocks.incrementUsage).toHaveBeenCalledTimes(2) expect(mocks.incrementUsage).toHaveBeenCalledWith( "workspace-1", @@ -87,6 +98,10 @@ describe("handleBotMessageSent quota accounting", () => { undefined, ) expect(mocks.recordEvents).toHaveBeenCalledOnce() + expect(mocks.incrementBotUsage).toHaveBeenCalledWith({ + count: 1, + workspaceId: "workspace-1", + }) }) it("isolates a failing workspace so others still get incremented", async () => { diff --git a/apps/worker/__tests__/sync-user-quota-reconcile.test.ts b/apps/worker/__tests__/sync-user-quota-reconcile.test.ts index 34bc0cef4d..8b9e8111df 100644 --- a/apps/worker/__tests__/sync-user-quota-reconcile.test.ts +++ b/apps/worker/__tests__/sync-user-quota-reconcile.test.ts @@ -81,7 +81,7 @@ vi.mock("@chatbotx.io/business", () => ({ | undefined) ?? null, }) }), - persistMacUsed: vi.fn((_userId: string, value: number) => { + raiseMacUsed: vi.fn(({ value }: { value: number }) => { state.persistedMac.push(value) return Promise.resolve() }), @@ -127,9 +127,9 @@ vi.mock("@chatbotx.io/redis", () => ({ distributedStore: { delete: vi.fn(async () => undefined) }, })) -const countActiveContactsForOwner = vi.fn(async () => state.ledgerMac) +const sumBillingMacForOwner = vi.fn(async () => state.ledgerMac) vi.mock("@chatbotx.io/analytics", () => ({ - macRepository: { countActiveContactsForOwner }, + macRepository: { sumBillingMacForOwner }, })) vi.mock("../src/lib/logger", () => ({ @@ -151,7 +151,7 @@ const { tenantService, userQuotaService } = (await import( userQuotaService: { reconcileOwnerPoolUsage: ReturnType reconcileUserSelfUsage: ReturnType - persistMacUsed: ReturnType + raiseMacUsed: ReturnType clearLiveCounters: ReturnType } } @@ -169,7 +169,7 @@ describe("reconcileUser — the non-reseller path delegates the self-count", () state.hmgetResult = [null, null] state.ledgerMac = 0 redisClient.hset.mockClear() - countActiveContactsForOwner.mockClear() + sumBillingMacForOwner.mockClear() }) // The authoritative COUNT(*) reads, the direct-assignment (never GREATEST) @@ -203,7 +203,7 @@ describe("reconcileUser — macUsed is derived from the ContactActiveMonthly led state.selfReconciledUsers = [] state.hsetCalls = [] redisClient.hset.mockClear() - countActiveContactsForOwner.mockClear() + sumBillingMacForOwner.mockClear() state.ledgerMac = 0 }) @@ -220,18 +220,14 @@ describe("reconcileUser — macUsed is derived from the ContactActiveMonthly led await reconcileUser("user-1") - expect(countActiveContactsForOwner).toHaveBeenCalledWith( + expect(sumBillingMacForOwner).toHaveBeenCalledWith( expect.objectContaining({ ownerId: "user-1", cumulative: false }), ) - // The live counter is re-grounded on the ledger truth. expect(state.hsetCalls).toContainEqual([ "user-quota-live:user-1", "mac", "7", - "macPeriodStart", - PERIOD, ]) - // macUsed is persisted to the ledger count (self-heals the drift). expect(state.persistedMac).toContain(7) }) @@ -247,9 +243,12 @@ describe("reconcileUser — macUsed is derived from the ContactActiveMonthly led await reconcileUser("user-1") - expect(countActiveContactsForOwner).not.toHaveBeenCalled() - // No mac drift to persist (live === DB within the stable lifetime period). - expect(state.persistedMac).toHaveLength(0) + expect(sumBillingMacForOwner).toHaveBeenCalledWith( + expect.objectContaining({ cumulative: true }), + ) + // The service applies GREATEST, so this lower ledger observation cannot + // reduce the durable lifetime total. + expect(state.persistedMac).toEqual([4]) }) }) diff --git a/apps/worker/src/events/analytics/message.ts b/apps/worker/src/events/analytics/message.ts index 4d7f603751..3725fb421c 100644 --- a/apps/worker/src/events/analytics/message.ts +++ b/apps/worker/src/events/analytics/message.ts @@ -1,6 +1,7 @@ import { messageAnalyticsService } from "@chatbotx.io/analytics" import { quotaEnforcementService, + workspaceBotMessageUsageService, workspaceService, workspaceUsageService, } from "@chatbotx.io/business" @@ -37,6 +38,7 @@ export async function handleBotMessageSent( await Promise.all( [...countsByWorkspace].map(async ([workspaceId, count]) => { try { + await workspaceBotMessageUsageService.increment({ count, workspaceId }) const workspace = await workspaceService.findById({ id: workspaceId }) await quotaEnforcementService.incrementBy({ userId: workspace.ownerId, diff --git a/apps/worker/src/schedule/handlers/sync-user-quota.ts b/apps/worker/src/schedule/handlers/sync-user-quota.ts index 2e05e8f532..5a7ba89005 100644 --- a/apps/worker/src/schedule/handlers/sync-user-quota.ts +++ b/apps/worker/src/schedule/handlers/sync-user-quota.ts @@ -246,34 +246,27 @@ const reconcileMac = async ( const rolledOver = livePeriod !== null && livePeriod !== dbPeriodIso - // Resetting plan settled in its current period → the `ContactActiveMonthly` - // ledger is the durable source of truth (every MAC increment writes a - // presence row in the same transaction as the live-counter bump). Re-ground - // both the live counter and `macUsed` on the ledger count so a lost Redis - // increment self-heals. Excluded — handled by the stamp logic below: - // - period-less owners (no anchor, not MAC-tracked); - // - lifetime plans (accumulate across months, never reset); - // - a just-detected cycle rollover (defer to the private quota-worker's - // reset, then ledger-reconcile on the next run once stamped). - if (dbPeriodIso && !isLifetime && !rolledOver) { - const ledgerMac = await macRepository.countActiveContactsForOwner({ + // The retained owner-keyed rollup is durable billing evidence. Its value may + // repair a lost increment, but never lowers usage in an active period. + if (dbPeriodIso && !rolledOver) { + const ledgerMac = await macRepository.sumBillingMacForOwner({ ownerId: userId, billingPeriodStart: new Date(dbPeriodIso), - cumulative: false, + cumulative: isLifetime, }) + const liveMac = parseLiveCount(liveMacRaw) ?? 0 - if (liveMacRaw !== String(ledgerMac) || livePeriod !== dbPeriodIso) { - await client.hset( - liveKey, - MAC_FIELD, - String(ledgerMac), - MAC_PERIOD_FIELD, - dbPeriodIso, - ) + if (ledgerMac > liveMac) { + await client.hset(liveKey, MAC_FIELD, String(ledgerMac)) } - if (ledgerMac !== dbMacUsed) { - await userQuotaService.persistMacUsed(userId, ledgerMac) + if (livePeriod !== dbPeriodIso) { + await client.hset(liveKey, MAC_PERIOD_FIELD, dbPeriodIso) } + await userQuotaService.raiseMacUsed({ + userId, + value: ledgerMac, + periodStart: new Date(dbPeriodIso), + }) return } @@ -296,8 +289,12 @@ const reconcileMac = async ( await client.hset(liveKey, MAC_PERIOD_FIELD, dbPeriodIso) } - if (action.persistMacUsed !== null) { - await userQuotaService.persistMacUsed(userId, action.persistMacUsed) + if (action.persistMacUsed !== null && dbPeriodIso) { + await userQuotaService.raiseMacUsed({ + userId, + value: action.persistMacUsed, + periodStart: new Date(dbPeriodIso), + }) } } diff --git a/docs/tenancy.md b/docs/tenancy.md index 0308c00e61..735267d2a1 100644 --- a/docs/tenancy.md +++ b/docs/tenancy.md @@ -324,17 +324,22 @@ Every `consume` and `incrementBy` call on `UserQuotaService` is write-through: i - **Reseller owner with active tenant** → calls `userQuotaService.reconcileOwnerPoolUsage(ownerId, tenantId)`: runs five parallel `COUNT(*)`/`SUM` queries scoped to `workspaceModel.tenantId` and writes the authoritative current counts to both the `UserQuota` row and the Redis live hash. - **Everyone else** → runs per-owner self-count queries scoped to `workspaceModel.ownerId` and writes the same columns. -Counts are written directly (not `GREATEST`), so a reconcile tick always self-heals any drift. +Capacity counts are written directly (not `GREATEST`), so a reconcile tick self-heals drift and resource deletion frees capacity. -Reconcile is a **backstop**, not the only place counts shrink. `contacts`/`mac` release synchronously -when `contactService.delete()` removes a contact, and `channels` releases synchronously when +### MAC billing ledger + +MAC is different: `WorkspaceMac` is an owner-keyed, period-scoped billing ledger. MAC is incremented with the monthly-contact presence insert and retained after a workspace is deleted; reconciliation sums that retained rollup and raises `UserQuota.macUsed` with `GREATEST`. Deleting contacts or a workspace therefore never reduces billed MAC during a period. Only the private `quota-worker` resets MAC when it advances the billing period. + +Workspace deletion records retain the workspace name, owner/requester email, membership and channel summaries, and billing rollups for billing-dispute and legal-claims evidence. They are retained outside Workspace cascades and are not exposed through workspace API tokens. + +Reconcile remains a **backstop** for capacity counters. `contacts` release synchronously +when `contactService.delete()` removes a contact, and `channels` release synchronously when `inboxService.disconnect()` disconnects a channel — both call the existing `quotaEnforcementService.release`/`releaseBy` (pool-aware, floor-at-zero) right at the delete/disconnect call site, best-effort (`.catch()` + log, never blocking the delete). A workspace hard-delete -(`workspaceService.purgeDueScheduled`) instead calls `userQuotaService.reconcileOwnerPoolUsage` for the -affected owner immediately after the batch delete — a full absolute recount, since a workspace teardown -cascades away its contacts/channels/MAC too. The scheduled reconcile above remains the authority for -races, failures in the synchronous release, and any other drift. +(`workspaceService.purgeDueScheduled`) reconciles capacity for the affected owner immediately after the +batch delete. The scheduled reconcile remains the authority for races, failures in the synchronous +release, and other drift. The private `quota-worker` remains the authority for plan limits and period resets; this repository also owns the runtime trial-expiry lifecycle: an expired cloud trial enters a blocked, read/delete-only diff --git a/packages/analytics/__tests__/mac-analytics.service.test.ts b/packages/analytics/__tests__/mac-analytics.service.test.ts index bbe63daaa0..876bbf4580 100644 --- a/packages/analytics/__tests__/mac-analytics.service.test.ts +++ b/packages/analytics/__tests__/mac-analytics.service.test.ts @@ -3,7 +3,6 @@ import { beforeEach, describe, expect, test, vi } from "vitest" const macRepository = { getActiveContactCountByWorkspaceId: vi.fn(async () => ({ macCount: 0 })), countActiveContactsByWorkspace: vi.fn(async () => 0), - reconcilePeriod: vi.fn(async () => undefined), } vi.mock("../src/repositories/postgres/mac.repository", () => ({ macRepository, @@ -15,12 +14,6 @@ const distributedStore = { } vi.mock("@chatbotx.io/redis", () => ({ distributedStore })) -const txClient = { tx: true } -const db = { - transaction: vi.fn(async (cb: (tx: unknown) => unknown) => cb(txClient)), -} -vi.mock("@chatbotx.io/database/client", () => ({ db })) - const logger = { warn: vi.fn(), error: vi.fn(), info: vi.fn() } vi.mock("../src/lib/logger", () => ({ logger })) @@ -31,18 +24,15 @@ const { MacAnalyticsService } = await import( beforeEach(() => { distributedStore.getNumber.mockClear() distributedStore.setNumberIfNotExists.mockClear() - db.transaction.mockClear() logger.error.mockClear() macRepository.getActiveContactCountByWorkspaceId.mockClear() macRepository.countActiveContactsByWorkspace.mockClear() - macRepository.reconcilePeriod.mockClear() distributedStore.getNumber.mockResolvedValue(null) distributedStore.setNumberIfNotExists.mockResolvedValue(undefined) macRepository.getActiveContactCountByWorkspaceId.mockResolvedValue({ macCount: 0, }) macRepository.countActiveContactsByWorkspace.mockResolvedValue(0) - macRepository.reconcilePeriod.mockResolvedValue(undefined) }) describe("MacAnalyticsService.getActiveContactCountByWorkspaceId", () => { @@ -133,14 +123,4 @@ describe("MacAnalyticsService — repository delegation", () => { ) expect(distributedStore.getNumber).not.toHaveBeenCalled() }) - - test("reconcilePeriod runs the repository call inside a transaction", async () => { - const input = { - workspaceId: "ws-1", - periodStart: "2026-05-01T00:00:00.000Z", - } - await new MacAnalyticsService().reconcilePeriod(input) - expect(db.transaction).toHaveBeenCalledTimes(1) - expect(macRepository.reconcilePeriod).toHaveBeenCalledWith(input, txClient) - }) }) diff --git a/packages/analytics/__tests__/mac.repository.test.ts b/packages/analytics/__tests__/mac.repository.test.ts index 4e774f037f..dfc778fa4f 100644 --- a/packages/analytics/__tests__/mac.repository.test.ts +++ b/packages/analytics/__tests__/mac.repository.test.ts @@ -9,6 +9,7 @@ import type { const sql = (strings: TemplateStringsArray, ...values: unknown[]) => ({ strings, values, + as: (alias: string) => ({ alias, strings, values }), }) const resultQueue: unknown[][] = [] @@ -21,6 +22,7 @@ function nextResult(): unknown[] { const CHAIN_METHODS = [ "values", + "select", "onConflictDoUpdate", "onConflictDoNothing", "returning", @@ -60,6 +62,9 @@ const gte = vi.fn((...args: unknown[]) => ({ op: "gte", args })) const gt = vi.fn((...args: unknown[]) => ({ op: "gt", args })) const inArray = vi.fn((...args: unknown[]) => ({ op: "inArray", args })) const lte = vi.fn((...args: unknown[]) => ({ op: "lte", args })) +const isNull = vi.fn((column: unknown) => ({ op: "isNull", args: [column] })) +const or = vi.fn((...args: unknown[]) => args) +const sum = vi.fn((column: unknown) => ({ __sum: true, column })) vi.mock("@chatbotx.io/database/client", () => ({ db: { @@ -68,7 +73,6 @@ vi.mock("@chatbotx.io/database/client", () => ({ update: dbUpdate, select: dbSelect, }, - sql, and, count: () => ({ __count: true }), countDistinct, @@ -77,15 +81,22 @@ vi.mock("@chatbotx.io/database/client", () => ({ gt, gte, inArray, + isNull, lt: (...args: unknown[]) => args, lte, + or, + sql, + sum, })) - vi.mock("@chatbotx.io/database/schema", () => ({ workspaceMacModel: { id: "wm.id", + macCount: "wm.macCount", + ownerId: "wm.ownerId", periodEnd: "wm.periodEnd", periodStart: "wm.periodStart", + tenantId: "wm.tenantId", + workspaceId: "wm.workspaceId", }, contactActiveMonthlyModel: { contactId: "cam.contactId", @@ -109,9 +120,12 @@ vi.mock("@chatbotx.io/database/schema", () => ({ channel: "inbox.channel", workspaceId: "inbox.workspaceId", }, - workspaceModel: { id: "ws.id", ownerId: "ws.ownerId" }, + workspaceModel: { + id: "ws.id", + ownerId: "ws.ownerId", + tenantId: "ws.tenantId", + }, })) - const { MacRepository } = await import( "../src/repositories/postgres/mac.repository" ) @@ -119,10 +133,10 @@ const { MacRepository } = await import( function makeClient(): DatabaseClient { return { insert: vi.fn(makeChain), + select: vi.fn(makeChain), update: vi.fn(makeChain), } as unknown as DatabaseClient } - function incrementCounts(builder: ReturnType): unknown[] { return builder.mock.results.flatMap((result) => { const chain = result.value as QueryChain @@ -168,7 +182,10 @@ beforeEach(() => { gte.mockClear() gt.mockClear() inArray.mockClear() + isNull.mockClear() lte.mockClear() + or.mockClear() + sum.mockClear() }) describe("MacRepository — empty-input guards", () => { @@ -210,6 +227,20 @@ describe("MacRepository — ensureWorkspaceMac", () => { expect(map.size).toBe(1) }) + test("stamps ownership from the workspace row", async () => { + const client = makeClient() + queueResult([{ id: "wm-99", workspaceId: "ws-1", periodStart, periodEnd }]) + + await repo.ensureWorkspaceMac( + [{ workspaceId: "ws-1", periodStart, periodEnd }], + client, + ) + + const chain = (client.insert as ReturnType).mock.results[0] + ?.value as QueryChain + expect(chain.select).toHaveBeenCalledTimes(1) + }) + test("distinct entries issue one insert each and map every key", async () => { const client = makeClient() queueResult([{ id: "wm-1", workspaceId: "ws-1", periodStart, periodEnd }]) @@ -416,19 +447,6 @@ describe("MacRepository — addWorkspaceMacCount", () => { }) }) -describe("MacRepository — reconcilePeriod", () => { - test("rebuilds WorkspaceMac count from ContactActiveMonthly", async () => { - queueResult([]) - - await repo.reconcilePeriod({ - workspaceId: "ws-1", - periodStart: "2026-05-01T00:00:00.000Z", - }) - - expect(dbUpdate).toHaveBeenCalledTimes(1) - }) -}) - describe("MacRepository — getActiveContactCountByWorkspaceId", () => { test("returns macCount and ISO period bounds from the row", async () => { queueResult([ @@ -461,12 +479,12 @@ describe("MacRepository — getActiveContactCountByWorkspaceId", () => { }) }) -describe("countActiveContactsForOwner", () => { - test("counts only the current anchored period for a resetting plan", async () => { - queueResult([{ value: 7 }]) +describe("sumBillingMacForOwner", () => { + test("sums only the current anchored period for a resetting plan", async () => { + queueResult([{ total: 7 }]) const repo = new MacRepository() - const result = await repo.countActiveContactsForOwner({ + const result = await repo.sumBillingMacForOwner({ ownerId: "owner-1", billingPeriodStart: new Date("2026-06-01T00:00:00.000Z"), cumulative: false, @@ -478,7 +496,7 @@ describe("countActiveContactsForOwner", () => { test("returns 0 for a period-less owner without querying", async () => { const repo = new MacRepository() - const result = await repo.countActiveContactsForOwner({ + const result = await repo.sumBillingMacForOwner({ ownerId: "owner-1", billingPeriodStart: null, cumulative: false, @@ -487,11 +505,11 @@ describe("countActiveContactsForOwner", () => { expect(result).toBe(0) }) - test("counts every period for a lifetime (cumulative) plan", async () => { - queueResult([{ value: 25 }]) + test("sums every period for a lifetime (cumulative) plan", async () => { + queueResult([{ total: 25 }]) const repo = new MacRepository() - const result = await repo.countActiveContactsForOwner({ + const result = await repo.sumBillingMacForOwner({ ownerId: "owner-1", billingPeriodStart: new Date("2026-06-01T00:00:00.000Z"), cumulative: true, diff --git a/packages/analytics/src/repositories/postgres/mac.repository.ts b/packages/analytics/src/repositories/postgres/mac.repository.ts index 670bae7e9d..8bf29b7df3 100644 --- a/packages/analytics/src/repositories/postgres/mac.repository.ts +++ b/packages/analytics/src/repositories/postgres/mac.repository.ts @@ -1,6 +1,5 @@ import { and, - count, countDistinct, type DatabaseClient, db, @@ -9,8 +8,11 @@ import { gt, gte, inArray, + isNull, lte, + or, sql, + sum, } from "@chatbotx.io/database/client" import type { MacEventType } from "@chatbotx.io/database/partials" import { @@ -94,18 +96,29 @@ export class MacRepository { for (const entry of entries) { const [row] = await client .insert(workspaceMacModel) - .values({ - workspaceId: entry.workspaceId, - periodStart: entry.periodStart, - periodEnd: entry.periodEnd, - }) + .select( + client + .select({ + workspaceId: workspaceModel.id, + ownerId: workspaceModel.ownerId, + tenantId: workspaceModel.tenantId, + periodStart: sql`${entry.periodStart}`.as("periodStart"), + periodEnd: sql`${entry.periodEnd}`.as("periodEnd"), + }) + .from(workspaceModel) + .where(eq(workspaceModel.id, entry.workspaceId)), + ) .onConflictDoUpdate({ target: [ workspaceMacModel.workspaceId, workspaceMacModel.periodStart, workspaceMacModel.periodEnd, ], - set: { updatedAt: sql`now()` }, + set: { + ownerId: sql`COALESCE(${workspaceMacModel.ownerId}, EXCLUDED."ownerId")`, + tenantId: sql`COALESCE(${workspaceMacModel.tenantId}, EXCLUDED."tenantId")`, + updatedAt: sql`now()`, + }, }) .returning({ id: workspaceMacModel.id, @@ -295,21 +308,10 @@ export class MacRepository { } /** - * The owner's monthly-active-contacts count, read from the durable - * `ContactActiveMonthly` ledger across every workspace they own. This is the - * authoritative source for `UserQuota.macUsed`: every MAC increment (webchat, - * worker, import, message tracking) writes a presence row in the same - * transaction as the live-counter bump, so the ledger never under-counts. - * - * - `cumulative: false` (resetting plans) counts only the period containing - * now, anchored to `billingPeriodStart` — the standard "this month" MAC. - * - `cumulative: true` (lifetime plans, which never reset) counts every - * period, matching the live counter that lifetime plans accumulate. - * - * Returns 0 when there is no billing anchor (period-less owners are not - * MAC-tracked). + * Sums the owner's retained WorkspaceMac billing ledger. A transitional + * fallback reaches pre-backfill rows through their still-live workspace. */ - async countActiveContactsForOwner( + async sumBillingMacForOwner( input: { ownerId: string billingPeriodStart: Date | null @@ -317,26 +319,35 @@ export class MacRepository { }, client: DatabaseClient = db, ): Promise { - const conditions = [eq(workspaceModel.ownerId, input.ownerId)] + if (!(input.cumulative || input.billingPeriodStart)) { + return 0 + } - if (!input.cumulative) { - if (!input.billingPeriodStart) { - return 0 - } + const ownedWorkspaces = client + .select({ id: workspaceModel.id }) + .from(workspaceModel) + .where(eq(workspaceModel.ownerId, input.ownerId)) + const conditions = [ + or( + eq(workspaceMacModel.ownerId, input.ownerId), + and( + isNull(workspaceMacModel.ownerId), + inArray(workspaceMacModel.workspaceId, ownedWorkspaces), + ), + ), + ] + + if (!input.cumulative && input.billingPeriodStart) { const { start } = anchoredPeriod(new Date(), input.billingPeriodStart) - conditions.push(eq(contactActiveMonthlyModel.periodStart, start)) + conditions.push(eq(workspaceMacModel.periodStart, start)) } const [row] = await client - .select({ value: count() }) - .from(contactActiveMonthlyModel) - .innerJoin( - workspaceModel, - eq(contactActiveMonthlyModel.workspaceId, workspaceModel.id), - ) + .select({ total: sum(workspaceMacModel.macCount) }) + .from(workspaceMacModel) .where(and(...conditions)) - return row ? Number(row.value) : 0 + return Number(row?.total ?? 0) } async countActiveContactsByWorkspace( @@ -377,36 +388,6 @@ export class MacRepository { return row ? Number(row.value) : 0 } - async reconcilePeriod( - input: { workspaceId: string; periodStart: string }, - client: DatabaseClient = db, - ): Promise { - const periodStart = new Date(input.periodStart) - - const activeContactCount = client - .select({ count: sql`count(*)::int` }) - .from(contactActiveMonthlyModel) - .where( - and( - eq(contactActiveMonthlyModel.workspaceId, input.workspaceId), - eq(contactActiveMonthlyModel.periodStart, periodStart), - ), - ) - - await client - .update(workspaceMacModel) - .set({ - macCount: sql`(${activeContactCount})`, - updatedAt: sql`now()`, - }) - .where( - and( - eq(workspaceMacModel.workspaceId, input.workspaceId), - eq(workspaceMacModel.periodStart, periodStart), - ), - ) - } - /** * Which of `contactInboxIds` have a `ContactActiveMonthly` presence row for * `periodStart` — i.e. are MAC-active this billing period. Used to decide diff --git a/packages/analytics/src/schemas/mac.ts b/packages/analytics/src/schemas/mac.ts index eea90265e3..25b95dd319 100644 --- a/packages/analytics/src/schemas/mac.ts +++ b/packages/analytics/src/schemas/mac.ts @@ -54,9 +54,3 @@ export const macMessageInPayloadSchema = z.object({ sourceId: z.string().nullish(), }) export type MacMessageInPayload = z.infer - -export const reconcilePeriodInputSchema = z.object({ - workspaceId: z.string(), - periodStart: z.string(), -}) -export type ReconcilePeriodInput = z.infer diff --git a/packages/analytics/src/services/mac-analytics.service.ts b/packages/analytics/src/services/mac-analytics.service.ts index a27b8999e3..da490ee8ce 100644 --- a/packages/analytics/src/services/mac-analytics.service.ts +++ b/packages/analytics/src/services/mac-analytics.service.ts @@ -1,10 +1,8 @@ -import { db } from "@chatbotx.io/database/client" import { distributedStore } from "@chatbotx.io/redis" import { logger } from "../lib/logger" import { calcEndOfDayTtl, workspaceMacCacheKey } from "../lib/mac-period" import { macRepository } from "../repositories/postgres/mac.repository" import type { AnalyticsFilter } from "../schemas/common" -import type { ReconcilePeriodInput } from "../schemas/mac" async function readOrPopulate( cacheKey: string, @@ -66,10 +64,6 @@ export class MacAnalyticsService { }): Promise> { return macRepository.getActiveContactInboxIds(input) } - - reconcilePeriod(input: ReconcilePeriodInput): Promise { - return db.transaction((tx) => macRepository.reconcilePeriod(input, tx)) - } } export const macAnalyticsService = new MacAnalyticsService() diff --git a/packages/business/__tests__/user-quota-reconcile-self.test.ts b/packages/business/__tests__/user-quota-reconcile-self.test.ts index e1ae57d34f..fedd00ec91 100644 --- a/packages/business/__tests__/user-quota-reconcile-self.test.ts +++ b/packages/business/__tests__/user-quota-reconcile-self.test.ts @@ -166,12 +166,16 @@ describe("reconcileOwnerAfterTeardown", () => { const ownerPool = vi .spyOn(userQuotaService, "reconcileOwnerPoolUsage") .mockResolvedValue(undefined) - findFirstTenant.mockResolvedValueOnce({ id: "tenant-1", status: "active" }) + findFirstTenant.mockResolvedValueOnce({ + id: "tenant-1", + ownerId: "owner-1", + status: "active", + }) await userQuotaService.reconcileOwnerAfterTeardown("owner-1") expect(ownerPool).toHaveBeenCalledWith("owner-1", "tenant-1") - expect(selfUsage).not.toHaveBeenCalled() + expect(selfUsage).toHaveBeenCalledWith("owner-1") }) }) @@ -309,22 +313,29 @@ describe("reconcileUserSelfUsage", () => { }) }) -describe("persistMacUsed", () => { - test("upserts macUsed to the given absolute value via onConflictDoUpdate", async () => { - await userQuotaService.persistMacUsed("user-1", 42) +describe("raiseMacUsed", () => { + test("upserts a period-pinned monotonic MAC value", async () => { + const periodStart = new Date("2026-01-01T00:00:00Z") + await userQuotaService.raiseMacUsed({ + userId: "user-1", + value: 42, + periodStart, + }) const call = dbInsert.mock.results.at(-1)?.value as { values: ReturnType onConflictDoUpdate: ReturnType } expect(call.values).toHaveBeenCalledWith( - expect.objectContaining({ userId: "user-1", macUsed: 42 }), - ) - expect(call.onConflictDoUpdate).toHaveBeenCalledWith( expect.objectContaining({ - set: expect.objectContaining({ macUsed: 42 }), + macUsed: 42, + periodStart, + userId: "user-1", }), ) + expect(call.onConflictDoUpdate).toHaveBeenCalledWith( + expect.objectContaining({ setWhere: expect.anything() }), + ) }) }) diff --git a/packages/business/src/index.ts b/packages/business/src/index.ts index 549f9a3ec4..1b054611f8 100644 --- a/packages/business/src/index.ts +++ b/packages/business/src/index.ts @@ -171,6 +171,7 @@ export * from "./whatsapp-message-template" export * from "./working-hours" export * from "./workspace" export * from "./workspace-api-token" +export * from "./workspace-bot-message-usage" export * from "./workspace-lifecycle" export * from "./workspace-lifecycle/with-blocked-owner-guard" export * from "./workspace-member" diff --git a/packages/business/src/user-quota/service.ts b/packages/business/src/user-quota/service.ts index 553508e9dc..797de3ed26 100644 --- a/packages/business/src/user-quota/service.ts +++ b/packages/business/src/user-quota/service.ts @@ -4,23 +4,20 @@ import { countDistinct, db, eq, - gt, inArray, - lte, type SQL, sql, - sum, } from "@chatbotx.io/database/client" import { ACTIVE_CONNECTION_STATUSES, planStatuses, } from "@chatbotx.io/database/partials" +import { workspaceMacRepository } from "@chatbotx.io/database/repositories/workspace-mac" import { connectionModel, contactModel, ROOT_TENANT_ID, userQuotaModel, - workspaceMacModel, workspaceMemberModel, workspaceModel, } from "@chatbotx.io/database/schema" @@ -841,31 +838,13 @@ class UserQuotaService extends BaseService { const [ { contactsUsed, workspacesUsed, channelsUsed }, teamMembersUsed, - [macResult], + macUsed, ] = await Promise.all([ this.countWorkspaceScopedUsage(eq(workspaceModel.tenantId, tenantId)), - this.countDistinctTeamMembers({ tenantId }), - - db - .select({ total: sum(workspaceMacModel.macCount) }) - .from(workspaceMacModel) - .innerJoin( - workspaceModel, - eq(workspaceMacModel.workspaceId, workspaceModel.id), - ) - .where( - and( - eq(workspaceModel.tenantId, tenantId), - lte(workspaceMacModel.periodStart, sql`now()`), - gt(workspaceMacModel.periodEnd, sql`now()`), - ), - ), + workspaceMacRepository.sumBillingMacForTenant(tenantId), ]) - // `sum()` returns a numeric string (or null when no rows match). - const macUsed = Number(macResult?.total ?? 0) - await db .insert(userQuotaModel) .values({ @@ -880,27 +859,23 @@ class UserQuotaService extends BaseService { .onConflictDoUpdate({ target: userQuotaModel.userId, set: { - // Authoritative current counts — assigned directly, NOT GREATEST — so - // deletions across the pool free quota. Only `*Used` is touched; the - // owner's limits / plan identity are written by the billing layer. + // Capacity metrics are authoritative current counts. Billing MAC is + // monotonic for the current quota row and resets only at rollover. contactsUsed, teamMembersUsed, workspacesUsed, channelsUsed, - macUsed, + macUsed: sql`GREATEST(${userQuotaModel.macUsed}, ${macUsed})`, syncedAt: new Date(), updatedAt: sql`CURRENT_TIMESTAMP`, }, }) - // Mirror the live counters to the same authoritative current counts. - // `macPeriodStart` is intentionally not written here: the DB query already - // filters for the current billing period (`periodStart ≤ now() < periodEnd`), - // so `macUsed` is period-correct without the stamp. Period resets are owned - // by the private quota-worker, which advances `periodStart` and zeroes - // `macUsed`; the next reconcile will pick up the new value from DB. + // Capacity metrics are current counts. MAC is billing consumption and must + // never be lowered by a same-period reconcile. + const liveKey = this.store.liveKey(ownerId) await client.hset( - this.store.liveKey(ownerId), + liveKey, "contacts", String(contactsUsed), "teamMembers", @@ -909,9 +884,11 @@ class UserQuotaService extends BaseService { String(workspacesUsed), "channels", String(channelsUsed), - "mac", - String(macUsed), ) + const liveMac = Number(await client.hget(liveKey, "mac")) + if (!Number.isFinite(liveMac) || macUsed > liveMac) { + await client.hset(liveKey, "mac", String(macUsed)) + } await this.store.invalidate(ownerId) } @@ -920,15 +897,25 @@ class UserQuotaService extends BaseService { * tenants pool usage on their owner; platform users reconcile only their own * workspaces. */ - async reconcileOwnerAfterTeardown(ownerId: string): Promise { - const tenant = await db.query.tenantModel.findFirst({ - where: { ownerId }, - }) - if (tenant?.status === "active") { - await this.reconcileOwnerPoolUsage(ownerId, tenant.id) - return - } + async reconcileOwnerAfterTeardown( + ownerId: string, + tenantId?: string, + ): Promise { await this.reconcileUserSelfUsage(ownerId) + + const tenant = + tenantId && tenantId !== ROOT_TENANT_ID + ? await db.query.tenantModel.findFirst({ + where: { id: tenantId }, + columns: { id: true, ownerId: true, status: true }, + }) + : await db.query.tenantModel.findFirst({ + where: { ownerId }, + columns: { id: true, ownerId: true, status: true }, + }) + if (tenant?.status === "active" && tenant.ownerId) { + await this.reconcileOwnerPoolUsage(tenant.ownerId, tenantId ?? tenant.id) + } } /** @@ -1060,15 +1047,28 @@ class UserQuotaService extends BaseService { } } - /** `sync-user-quota.ts` persistMacUsed: upsert `UserQuota.macUsed` to an absolute value. */ - async persistMacUsed(userId: string, value: number): Promise { + /** + * Raises `macUsed` without ever overwriting a concurrent billing rollover. + * The conflict predicate pins the update to the caller's billing period. + */ + async raiseMacUsed(input: { + userId: string + value: number + periodStart: Date + }): Promise { await db .insert(userQuotaModel) - .values({ userId, macUsed: value, syncedAt: new Date() }) + .values({ + userId: input.userId, + macUsed: input.value, + periodStart: input.periodStart, + syncedAt: new Date(), + }) .onConflictDoUpdate({ target: userQuotaModel.userId, + setWhere: sql`${userQuotaModel.periodStart} IS NOT DISTINCT FROM ${input.periodStart}`, set: { - macUsed: value, + macUsed: sql`GREATEST(${userQuotaModel.macUsed}, ${input.value})`, updatedAt: sql`CURRENT_TIMESTAMP`, }, }) diff --git a/packages/business/src/workspace-bot-message-usage/index.ts b/packages/business/src/workspace-bot-message-usage/index.ts new file mode 100644 index 0000000000..9376fea807 --- /dev/null +++ b/packages/business/src/workspace-bot-message-usage/index.ts @@ -0,0 +1 @@ +export * from "./service" diff --git a/packages/business/src/workspace-bot-message-usage/service.ts b/packages/business/src/workspace-bot-message-usage/service.ts new file mode 100644 index 0000000000..97c58b723e --- /dev/null +++ b/packages/business/src/workspace-bot-message-usage/service.ts @@ -0,0 +1,46 @@ +import { anchoredPeriod } from "@chatbotx.io/analytics" +import { db } from "@chatbotx.io/database/client" +import { upsertWorkspaceBotMessageUsage } from "@chatbotx.io/database/repositories/workspace-bot-message-usage" +import { BaseService } from "../base.service" + +const calendarPeriod = (now: Date) => { + const start = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1)) + const end = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth() + 1, 1)) + return { start, end } +} + +class WorkspaceBotMessageUsageService extends BaseService { + async increment(input: { + count: number + workspaceId: string + }): Promise { + const workspace = await db.query.workspaceModel.findFirst({ + where: { id: input.workspaceId }, + columns: { ownerId: true, tenantId: true }, + }) + if (!workspace) { + return + } + + const quota = await db.query.userQuotaModel.findFirst({ + where: { userId: workspace.ownerId }, + columns: { periodStart: true }, + }) + const now = new Date() + const period = quota?.periodStart + ? anchoredPeriod(now, quota.periodStart) + : calendarPeriod(now) + + await upsertWorkspaceBotMessageUsage({ + count: input.count, + ownerId: workspace.ownerId, + periodEnd: period.end, + periodStart: period.start, + tenantId: workspace.tenantId, + workspaceId: input.workspaceId, + }) + } +} + +export const workspaceBotMessageUsageService = + new WorkspaceBotMessageUsageService() diff --git a/packages/business/src/workspace-lifecycle/service.ts b/packages/business/src/workspace-lifecycle/service.ts index 18018ffe2b..aebba07010 100644 --- a/packages/business/src/workspace-lifecycle/service.ts +++ b/packages/business/src/workspace-lifecycle/service.ts @@ -372,8 +372,23 @@ class WorkspaceLifecycleService extends BaseService { } for (const entry of NO_FK_WORKSPACE_TABLES) { - if (entry.stage !== "ctid") { - continue + switch (entry.stage) { + case "retainedBilling": + // Billing evidence and deletion records intentionally outlive Workspace. + continue + case "contactActivity": + case "partitioned": + case "contactInboxPost": + case "leaderboard": + case "hypertable": + // These stages are drained by their specialized purge handlers. + continue + case "ctid": + break + default: { + const exhaustive: never = entry + return exhaustive + } } const { table } = entry totalDeleted += await drainInBatches({ diff --git a/packages/business/src/workspace/__tests__/service.test.ts b/packages/business/src/workspace/__tests__/service.test.ts index c606dfd4c2..2737eca090 100644 --- a/packages/business/src/workspace/__tests__/service.test.ts +++ b/packages/business/src/workspace/__tests__/service.test.ts @@ -6,6 +6,7 @@ const mocks = vi.hoisted(() => ({ workspaceInsert: vi.fn(), workspaceInsertValues: vi.fn(), workspaceDelete: vi.fn(), + workspaceUpdate: vi.fn(), workspaceQuotaRelease: vi.fn(), tryConsume: vi.fn(), createMember: vi.fn(), @@ -32,9 +33,19 @@ vi.mock("../../workspace-usage/service", () => ({ }, })) +vi.mock("@chatbotx.io/database/repositories/workspace-deletion-record", () => ({ + workspaceDeletionRecordRepository: { + createForWorkspace: vi.fn(async () => undefined), + markPurged: vi.fn(async () => undefined), + }, +})) + vi.mock("@chatbotx.io/database/client", () => ({ db: { - query: { userModel: { findFirst: vi.fn(async () => undefined) } }, + query: { + userModel: { findFirst: vi.fn(async () => undefined) }, + workspaceModel: { findFirst: vi.fn(async () => undefined) }, + }, insert: mocks.workspaceInsert, delete: mocks.workspaceDelete, transaction: mocks.dbTransaction, @@ -81,6 +92,7 @@ vi.mock("@chatbotx.io/database/partials", async (importOriginal) => { vi.mock("@chatbotx.io/database/schema", () => ({ ROOT_TENANT_ID: "1", + workspaceDeletionRecordModel: { workspaceId: {} }, workspaceMemberModel: {}, workspaceModel: {}, })) @@ -145,8 +157,15 @@ vi.mock("../../workspace-lifecycle/purge-batch", () => ({ async ({ fn, }: { - fn: (tx: { delete: typeof mocks.workspaceDelete }) => Promise - }) => await fn({ delete: mocks.workspaceDelete }), + fn: (tx: { + delete: typeof mocks.workspaceDelete + update: typeof mocks.workspaceUpdate + }) => Promise + }) => + await fn({ + delete: mocks.workspaceDelete, + update: mocks.workspaceUpdate, + }), ), })) @@ -230,6 +249,9 @@ beforeEach(() => { returning: vi.fn().mockResolvedValue([{ id: "workspace-1" }]), })), }) + mocks.workspaceUpdate.mockReturnValue({ + set: vi.fn(() => ({ where: vi.fn().mockResolvedValue(undefined) })), + }) }) describe("WorkspaceService.create", () => { diff --git a/packages/business/src/workspace/service.ts b/packages/business/src/workspace/service.ts index 10096b4bd2..3645196977 100644 --- a/packages/business/src/workspace/service.ts +++ b/packages/business/src/workspace/service.ts @@ -13,6 +13,7 @@ import { type WorkspaceMemberPermissions, workspaceMemberRoles, } from "@chatbotx.io/database/partials" +import { workspaceDeletionRecordRepository } from "@chatbotx.io/database/repositories/workspace-deletion-record" import { ROOT_TENANT_ID, workspaceMemberModel, @@ -286,9 +287,15 @@ class WorkspaceService extends BaseService { // here while nested in an open db.transaction(...) would enqueue an audit // row for a write that might still roll back. const changedKeys = Object.keys(data) - const onlyScheduledDeletionChanged = - changedKeys.length === 1 && changedKeys[0] === "scheduledDeletionAt" - if (!props.tx && changedKeys.length > 0 && !onlyScheduledDeletionChanged) { + const deletionMetadataKeys = new Set([ + "deletionRequestedAt", + "deletionRequestedById", + "scheduledDeletionAt", + ]) + const onlyDeletionMetadataChanged = + changedKeys.length > 0 && + changedKeys.every((key) => deletionMetadataKeys.has(key)) + if (!props.tx && changedKeys.length > 0 && !onlyDeletionMetadataChanged) { const nameChanged = data.name !== undefined && data.name !== previousName await this.audit( "update", @@ -357,6 +364,7 @@ class WorkspaceService extends BaseService { } async scheduleDeletion(props: { + actorId: string id: string tx?: DatabaseClient }): Promise { @@ -365,6 +373,8 @@ class WorkspaceService extends BaseService { id: props.id, tx, data: { + deletionRequestedAt: new Date(), + deletionRequestedById: props.actorId, scheduledDeletionAt: nextScheduledDeletionAt(), }, }) @@ -386,6 +396,8 @@ class WorkspaceService extends BaseService { id: props.id, tx, data: { + deletionRequestedAt: null, + deletionRequestedById: null, scheduledDeletionAt: null, }, }) @@ -525,7 +537,7 @@ class WorkspaceService extends BaseService { await Promise.allSettled( [...reconciles.values()].map(async ({ ownerId, tenantId }) => { try { - await userQuotaService.reconcileOwnerAfterTeardown(ownerId) + await userQuotaService.reconcileOwnerAfterTeardown(ownerId, tenantId) } catch (err) { logger.error( { err, ownerId, tenantId }, @@ -538,6 +550,24 @@ class WorkspaceService extends BaseService { return totalDeleted } + private async writeDeletionRecord(workspace: DueWorkspace): Promise { + const record = await workspaceDeletionRecordRepository.createForWorkspace({ + ownerId: workspace.ownerId, + tenantId: workspace.tenantId, + workspaceId: workspace.id, + }) + if (record?.created) { + logger.info( + { + ownerId: workspace.ownerId, + usageSnapshot: record.usageSnapshot, + workspaceId: workspace.id, + }, + "workspace-purge: deletion record written", + ) + } + } + private async teardownDueWorkspace( workspace: DueWorkspace, integrations: WorkspaceTeardownIntegrations | undefined, @@ -581,6 +611,7 @@ class WorkspaceService extends BaseService { for (const pendingRelease of pendingReleases) { await connectionStateService.releasePendingQuota(pendingRelease) } + await this.writeDeletionRecord(fencedWorkspace) // Drain high-volume child tables in small self-committing batches before // the FK cascade, so no single statement deletes millions of rows under lock. @@ -619,11 +650,19 @@ class WorkspaceService extends BaseService { const deletedWorkspace = await withPurgeTimeouts({ table: "Workspace", workspaceId: fencedWorkspace.id, - fn: async (tx) => - await tx + fn: async (tx) => { + const deleted = await tx .delete(workspaceModel) .where(eq(workspaceModel.id, fencedWorkspace.id)) - .returning({ id: workspaceModel.id }), + .returning({ id: workspaceModel.id }) + if (deleted[0]) { + await workspaceDeletionRecordRepository.markPurged( + fencedWorkspace.id, + tx, + ) + } + return deleted + }, }) if (!deletedWorkspace[0]) { throw new WorkspacePurgeIncompleteError(fencedWorkspace.id, "Workspace") diff --git a/packages/database/__tests__/workspace-purge-coverage.test.ts b/packages/database/__tests__/workspace-purge-coverage.test.ts index ab8d460458..faddafc74d 100644 --- a/packages/database/__tests__/workspace-purge-coverage.test.ts +++ b/packages/database/__tests__/workspace-purge-coverage.test.ts @@ -173,6 +173,18 @@ describe("workspace purge coverage", () => { ).toEqual([]) }) + test("retains billing and deletion records outside workspace cascades", () => { + const retained = NO_FK_WORKSPACE_TABLES.filter( + ({ stage }) => stage === "retainedBilling", + ).map(({ table }) => table) + + expect(retained).toEqual([ + "WorkspaceMac", + "WorkspaceBotMessageUsage", + "WorkspaceDeletionRecord", + ]) + }) + test("does not add an unindexed foreign key or retain a fixed baseline entry", () => { const support = [ ...entriesByType("indexes"), diff --git a/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/migration.sql b/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/migration.sql new file mode 100644 index 0000000000..18b0005ed2 --- /dev/null +++ b/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/migration.sql @@ -0,0 +1,59 @@ +CREATE TABLE "WorkspaceBotMessageUsage" ( + "id" bigint PRIMARY KEY, + "createdAt" timestamp(6) with time zone DEFAULT now() NOT NULL, + "updatedAt" timestamp(6) with time zone DEFAULT now() NOT NULL, + "workspaceId" bigint NOT NULL, + "ownerId" bigint NOT NULL, + "tenantId" bigint NOT NULL, + "periodStart" timestamp(6) with time zone NOT NULL, + "periodEnd" timestamp(6) with time zone NOT NULL, + "count" integer DEFAULT 0 NOT NULL, + CONSTRAINT "WorkspaceBotMessageUsage_workspaceId_periodStart_key" UNIQUE("workspaceId","periodStart") +); +--> statement-breakpoint +CREATE TABLE "WorkspaceDeletionRecord" ( + "id" bigint PRIMARY KEY, + "createdAt" timestamp(6) with time zone DEFAULT now() NOT NULL, + "updatedAt" timestamp(6) with time zone DEFAULT now() NOT NULL, + "workspaceId" bigint NOT NULL CONSTRAINT "WorkspaceDeletionRecord_workspaceId_key" UNIQUE, + "workspaceName" text NOT NULL, + "ownerId" bigint NOT NULL, + "ownerEmail" text, + "tenantId" bigint NOT NULL, + "deletionRequestedById" bigint, + "deletionRequestedByEmail" text, + "deletionRequestedAt" timestamp(6) with time zone, + "scheduledDeletionAt" timestamp(6) with time zone, + "purgedAt" timestamp(6) with time zone, + "usageSnapshot" jsonb NOT NULL, + "details" jsonb NOT NULL +); +--> statement-breakpoint +ALTER TABLE "Workspace" ADD COLUMN "deletionRequestedById" bigint;--> statement-breakpoint +ALTER TABLE "Workspace" ADD COLUMN "deletionRequestedAt" timestamp(6) with time zone;--> statement-breakpoint +ALTER TABLE "WorkspaceMac" ADD COLUMN "ownerId" bigint;--> statement-breakpoint +ALTER TABLE "WorkspaceMac" ADD COLUMN "tenantId" bigint;--> statement-breakpoint +UPDATE "WorkspaceMac" AS mac +SET + "ownerId" = COALESCE(mac."ownerId", workspace."ownerId"), + "tenantId" = COALESCE(mac."tenantId", workspace."tenantId") +FROM "Workspace" AS workspace +WHERE mac."workspaceId" = workspace."id" + AND (mac."ownerId" IS NULL OR mac."tenantId" IS NULL);--> statement-breakpoint +ALTER TABLE "WorkspaceMac" DROP CONSTRAINT IF EXISTS "WorkspaceMac_workspaceId_Workspace_id_fkey";--> statement-breakpoint +CREATE INDEX "WorkspaceBotMessageUsage_ownerId_periodStart_idx" ON "WorkspaceBotMessageUsage" ("ownerId","periodStart");--> statement-breakpoint +CREATE INDEX "WorkspaceBotMessageUsage_tenantId_periodStart_idx" ON "WorkspaceBotMessageUsage" ("tenantId","periodStart");--> statement-breakpoint +CREATE INDEX "WorkspaceDeletionRecord_workspaceName_idx" ON "WorkspaceDeletionRecord" ("workspaceName");--> statement-breakpoint +CREATE INDEX "WorkspaceDeletionRecord_ownerEmail_idx" ON "WorkspaceDeletionRecord" ("ownerEmail");--> statement-breakpoint +CREATE INDEX "WorkspaceDeletionRecord_deletionRequestedByEmail_idx" ON "WorkspaceDeletionRecord" ("deletionRequestedByEmail");--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"WorkspaceMac_ownerId_periodStart_idx"') AND NOT indisvalid) THEN DROP INDEX "WorkspaceMac_ownerId_periodStart_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkspaceMac_ownerId_periodStart_idx" ON "WorkspaceMac" ("ownerId","periodStart");--> statement-breakpoint +DO $$ BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"WorkspaceMac_tenantId_periodStart_idx"') AND NOT indisvalid) THEN DROP INDEX "WorkspaceMac_tenantId_periodStart_idx"; END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkspaceMac_tenantId_periodStart_idx" ON "WorkspaceMac" ("tenantId","periodStart");--> statement-breakpoint +ALTER TABLE "WorkspaceBotMessageUsage" ADD CONSTRAINT "WorkspaceBotMessageUsage_ownerId_User_id_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;--> statement-breakpoint +ALTER TABLE "WorkspaceMac" ADD CONSTRAINT "WorkspaceMac_ownerId_User_id_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE NOT VALID;--> statement-breakpoint +ALTER TABLE "WorkspaceMac" VALIDATE CONSTRAINT "WorkspaceMac_ownerId_User_id_fkey"; \ No newline at end of file diff --git a/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/snapshot.json b/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/snapshot.json new file mode 100644 index 0000000000..b85b5f464f --- /dev/null +++ b/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/snapshot.json @@ -0,0 +1,63351 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "60d41c7f-6c73-46dc-9ce5-35859d6955cd", + "prevIds": [ + "335fec36-c7cc-45ef-ab96-7b8d7cea12d9", + "8866cec4-c4d7-446e-9a68-8e762c47b77c" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "flowNode", + "automatedResponse", + "whatsappFlow", + "emailTopic" + ], + "name": "contactActivityReferenceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowExecuted", + "flowNodeExecuted", + "automatedResponseMatched", + "formCompleted", + "messageSent", + "messageDelivered", + "messageOpened", + "messageClicked" + ], + "name": "contactActivityType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActivity", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactKeywordMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactState", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceBotMessageUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceDeletionRecord", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicReferenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "contactActivityType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activityType", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "contactActivityReferenceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceType", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentReferenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstOccurredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automatedResponseId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "normalizedText", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactState" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactState" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastDeliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactState" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedById", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "count", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceName", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerEmail", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedById", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedByEmail", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageSnapshot", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "details", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIAgent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_aiFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "activityType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentReferenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactActivity_reference_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactActivity" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "ContactKeywordMessage_text_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "text_pattern_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactKeywordMessage_text_prefix_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastDeliveredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"lastDeliveredAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactState_lastDeliveredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactState" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTag_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Flow_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowVersionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowVersionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboxTeam_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "currentQuestionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"currentQuestionId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_currentQuestionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceBotMessageUsage_ownerId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceBotMessageUsage_tenantId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceDeletionRecord_workspaceName_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerEmail", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceDeletionRecord_ownerEmail_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletionRequestedByEmail", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceDeletionRecord_deletionRequestedByEmail_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMac_ownerId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMac_tenantId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceBotMessageUsage_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactId", + "activityType", + "referenceType", + "parentReferenceId", + "referenceId" + ], + "nameExplicit": true, + "name": "ContactActivity_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActivity" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "workspaceId", + "contactId", + "messageId" + ], + "nameExplicit": true, + "name": "ContactKeywordMessage_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "workspaceId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactState_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactState" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceBotMessageUsage_pkey", + "schema": "public", + "table": "WorkspaceBotMessageUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceDeletionRecord_pkey", + "schema": "public", + "table": "WorkspaceDeletionRecord", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart" + ], + "nullsNotDistinct": false, + "name": "WorkspaceBotMessageUsage_workspaceId_periodStart_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceDeletionRecord_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"activityType\" = 'flowExecuted' AND \"referenceType\" = 'flow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'flowNodeExecuted' AND \"referenceType\" = 'flowNode' AND \"parentReferenceId\" <> 0) OR (\"activityType\" = 'automatedResponseMatched' AND \"referenceType\" = 'automatedResponse' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'formCompleted' AND \"referenceType\" = 'whatsappFlow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageSent' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageDelivered' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageOpened' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageClicked' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0)", + "name": "ContactActivity_allowed_pair_check", + "entityType": "checks", + "schema": "public", + "table": "ContactActivity" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/package.json b/packages/database/package.json index e4e236dae9..2717a9d87f 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -67,6 +67,9 @@ "./repositories/contact-activity": "./src/repositories/contact-activity/index.ts", "./repositories/contact-inbox-post": "./src/repositories/contact-inbox-post/index.ts", "./repositories/workspace": "./src/repositories/workspace/index.ts", + "./repositories/workspace-mac": "./src/repositories/workspace-mac/index.ts", + "./repositories/workspace-bot-message-usage": "./src/repositories/workspace-bot-message-usage/index.ts", + "./repositories/workspace-deletion-record": "./src/repositories/workspace-deletion-record/index.ts", "./repositories/sequence": "./src/repositories/sequence/index.ts", "./repositories/sequence-dispatch": "./src/repositories/sequence-dispatch/index.ts", "./schema": "./src/schema/index.ts", diff --git a/packages/database/scripts/backfill-workspace-mac-owner.mjs b/packages/database/scripts/backfill-workspace-mac-owner.mjs new file mode 100644 index 0000000000..56f66299c8 --- /dev/null +++ b/packages/database/scripts/backfill-workspace-mac-owner.mjs @@ -0,0 +1,110 @@ +/** + * Backfill owner and tenant attribution for retained WorkspaceMac billing rows. + * + * Rows are processed in small, id-keyed transactions. The old workspace FK means + * every pre-migration row still has a live Workspace to supply its ownership. + * + * Usage: + * DATABASE_URL=postgres://... node ./scripts/backfill-workspace-mac-owner.mjs + * DATABASE_URL=... DRY_RUN=1 node ./scripts/backfill-workspace-mac-owner.mjs + * DATABASE_URL=... BATCH_SIZE=1000 node ./scripts/backfill-workspace-mac-owner.mjs + */ +import { pathToFileURL } from "node:url" +import { Pool } from "pg" + +const LOCK_TIMEOUT_MS = 5000 +const DEFAULT_BATCH_SIZE = 1000 +const PAUSE_BETWEEN_BATCHES_MS = 50 + +const FILLABLE_PREDICATE = '"ownerId" IS NULL OR "tenantId" IS NULL' + +export const COUNT_SQL = ` + SELECT count(*)::bigint AS remaining + FROM "WorkspaceMac" + WHERE ${FILLABLE_PREDICATE} +` + +export const BATCH_SQL = ` + WITH batch AS ( + SELECT "id" + FROM "WorkspaceMac" + WHERE ${FILLABLE_PREDICATE} + AND "id" > $1::bigint + ORDER BY "id" + LIMIT $2 + ) + UPDATE "WorkspaceMac" AS target + SET + "ownerId" = COALESCE(target."ownerId", workspace."ownerId"), + "tenantId" = COALESCE(target."tenantId", workspace."tenantId") + FROM batch, "Workspace" AS workspace + WHERE target."id" = batch."id" + AND workspace."id" = target."workspaceId" + RETURNING target."id" +` + +const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) + +/** @returns {Promise<{ remaining: number, updated: number }>} */ +export async function backfillWorkspaceMacOwner( + pool, + { batchSize = DEFAULT_BATCH_SIZE, dryRun = false } = {}, +) { + if (dryRun) { + const { rows } = await pool.query(COUNT_SQL) + return { remaining: Number(rows[0].remaining), updated: 0 } + } + + let updated = 0 + let lastId = "0" + for (;;) { + const client = await pool.connect() + let ids + try { + await client.query("BEGIN") + await client.query(`SET LOCAL lock_timeout = '${LOCK_TIMEOUT_MS}ms'`) + const result = await client.query(BATCH_SQL, [lastId, batchSize]) + await client.query("COMMIT") + ids = result.rows.map((row) => BigInt(row.id)) + } catch (error) { + await client.query("ROLLBACK").catch(() => undefined) + throw error + } finally { + client.release() + } + + if (ids.length === 0) { + break + } + + updated += ids.length + lastId = ids.reduce((max, id) => (id > max ? id : max), 0n).toString() + await sleep(PAUSE_BETWEEN_BATCHES_MS) + } + + const { rows } = await pool.query(COUNT_SQL) + return { remaining: Number(rows[0].remaining), updated } +} + +const isMain = process.argv[1] + ? import.meta.url === pathToFileURL(process.argv[1]).href + : false + +if (isMain) { + const databaseUrl = process.env.DATABASE_URL + if (!databaseUrl) { + console.error("DATABASE_URL is required.") + process.exit(1) + } + + const pool = new Pool({ connectionString: databaseUrl }) + try { + const result = await backfillWorkspaceMacOwner(pool, { + batchSize: Number(process.env.BATCH_SIZE) || DEFAULT_BATCH_SIZE, + dryRun: Boolean(process.env.DRY_RUN), + }) + console.log(JSON.stringify(result)) + } finally { + await pool.end() + } +} diff --git a/packages/database/src/relations/index.ts b/packages/database/src/relations/index.ts index 73ccb08dd9..2f989676b7 100644 --- a/packages/database/src/relations/index.ts +++ b/packages/database/src/relations/index.ts @@ -170,6 +170,8 @@ import { whatsappSignupSessionRelations } from "./whatsapp-signup-session" import { workingHoursRelations } from "./working-hours" import { workspaceRelations } from "./workspace" import { workspaceApiTokenRelations } from "./workspace-api-token" +import { workspaceBotMessageUsageRelations } from "./workspace-bot-message-usage" +import { workspaceDeletionRecordRelations } from "./workspace-deletion-record" import { workspaceMemberRelations } from "./workspace-member" export const relations = { @@ -193,6 +195,8 @@ export const relations = { ...userRelations, ...workspaceRelations, ...workspaceApiTokenRelations, + ...workspaceBotMessageUsageRelations, + ...workspaceDeletionRecordRelations, ...aiAgentRelations, ...aiConversationSourceRelations, ...aiFileRelations, diff --git a/packages/database/src/relations/workspace-bot-message-usage.ts b/packages/database/src/relations/workspace-bot-message-usage.ts new file mode 100644 index 0000000000..f659b81de7 --- /dev/null +++ b/packages/database/src/relations/workspace-bot-message-usage.ts @@ -0,0 +1,15 @@ +import { defineRelationsPart } from "drizzle-orm" +// biome-ignore lint/performance/noNamespaceImport: drizzle schema +import * as schema from "../schema" + +export const workspaceBotMessageUsageRelations = defineRelationsPart( + schema, + (r) => ({ + workspaceBotMessageUsageModel: { + owner: r.one.userModel({ + from: r.workspaceBotMessageUsageModel.ownerId, + to: r.userModel.id, + }), + }, + }), +) diff --git a/packages/database/src/relations/workspace-deletion-record.ts b/packages/database/src/relations/workspace-deletion-record.ts new file mode 100644 index 0000000000..784d8e93d8 --- /dev/null +++ b/packages/database/src/relations/workspace-deletion-record.ts @@ -0,0 +1,9 @@ +import { defineRelationsPart } from "drizzle-orm" +// biome-ignore lint/performance/noNamespaceImport: drizzle schema +import * as schema from "../schema" + +// This retained evidence table deliberately has no foreign keys. +export const workspaceDeletionRecordRelations = defineRelationsPart( + schema, + () => ({ workspaceDeletionRecordModel: {} }), +) diff --git a/packages/database/src/repositories/index.ts b/packages/database/src/repositories/index.ts index 1d86c693be..8da456ecd3 100644 --- a/packages/database/src/repositories/index.ts +++ b/packages/database/src/repositories/index.ts @@ -89,5 +89,6 @@ export * from "./whatsapp-message-template" export * from "./working-hours" export * from "./workspace" export * from "./workspace-api-token" +export * from "./workspace-mac" export * from "./workspace-member" export * from "./workspace-purge" diff --git a/packages/database/src/repositories/workspace-bot-message-usage/index.ts b/packages/database/src/repositories/workspace-bot-message-usage/index.ts new file mode 100644 index 0000000000..b1d08c5baf --- /dev/null +++ b/packages/database/src/repositories/workspace-bot-message-usage/index.ts @@ -0,0 +1 @@ +export * from "./repository" diff --git a/packages/database/src/repositories/workspace-bot-message-usage/repository.ts b/packages/database/src/repositories/workspace-bot-message-usage/repository.ts new file mode 100644 index 0000000000..55108b867f --- /dev/null +++ b/packages/database/src/repositories/workspace-bot-message-usage/repository.ts @@ -0,0 +1,28 @@ +import { type DatabaseClient, db, sql } from "../../client" +import { workspaceBotMessageUsageModel } from "../../schema" + +export const upsertWorkspaceBotMessageUsage = async ( + input: { + count: number + ownerId: string + periodEnd: Date + periodStart: Date + tenantId: string + workspaceId: string + }, + client: DatabaseClient = db, +): Promise => { + await client + .insert(workspaceBotMessageUsageModel) + .values(input) + .onConflictDoUpdate({ + target: [ + workspaceBotMessageUsageModel.workspaceId, + workspaceBotMessageUsageModel.periodStart, + ], + set: { + count: sql`${workspaceBotMessageUsageModel.count} + ${input.count}`, + updatedAt: sql`now()`, + }, + }) +} diff --git a/packages/database/src/repositories/workspace-deletion-record/index.ts b/packages/database/src/repositories/workspace-deletion-record/index.ts new file mode 100644 index 0000000000..b1d08c5baf --- /dev/null +++ b/packages/database/src/repositories/workspace-deletion-record/index.ts @@ -0,0 +1 @@ +export * from "./repository" diff --git a/packages/database/src/repositories/workspace-deletion-record/repository.ts b/packages/database/src/repositories/workspace-deletion-record/repository.ts new file mode 100644 index 0000000000..36c915f738 --- /dev/null +++ b/packages/database/src/repositories/workspace-deletion-record/repository.ts @@ -0,0 +1,181 @@ +import { type DatabaseClient, db, eq } from "../../client" +import { + contactModel, + inboxModel, + userModel, + workspaceBotMessageUsageModel, + workspaceDeletionRecordModel, + workspaceMacModel, + workspaceMemberModel, +} from "../../schema" +import { + type WorkspaceDeletionRecordDetails, + type WorkspaceDeletionRecordUsageSnapshot, + workspaceDeletionRecordDetailsSchema, + workspaceDeletionRecordUsageSnapshotSchema, +} from "../../schema/workspace-deletion-record" + +class WorkspaceDeletionRecordRepository { + async createForWorkspace( + input: { ownerId: string; tenantId: string; workspaceId: string }, + client: DatabaseClient = db, + ): Promise< + | { + created: boolean + usageSnapshot: WorkspaceDeletionRecordUsageSnapshot + } + | undefined + > { + const workspace = await client.query.workspaceModel.findFirst({ + where: { id: input.workspaceId }, + }) + if (!workspace) { + return + } + + const [ + owner, + requestedBy, + members, + inboxes, + mac, + botMessages, + contacts, + channels, + quota, + ] = await Promise.all([ + client.query.userModel.findFirst({ + where: { id: input.ownerId }, + columns: { email: true, name: true, tenantId: true }, + }), + workspace.deletionRequestedById + ? client.query.userModel.findFirst({ + where: { id: workspace.deletionRequestedById }, + columns: { email: true, name: true }, + }) + : undefined, + client + .select({ + email: userModel.email, + name: userModel.name, + role: workspaceMemberModel.role, + userId: workspaceMemberModel.userId, + }) + .from(workspaceMemberModel) + .innerJoin(userModel, eq(workspaceMemberModel.userId, userModel.id)) + .where(eq(workspaceMemberModel.workspaceId, input.workspaceId)), + client + .select({ + channel: inboxModel.channel, + id: inboxModel.id, + name: inboxModel.name, + status: inboxModel.status, + }) + .from(inboxModel) + .where(eq(inboxModel.workspaceId, input.workspaceId)), + client + .select({ + count: workspaceMacModel.macCount, + periodEnd: workspaceMacModel.periodEnd, + periodStart: workspaceMacModel.periodStart, + }) + .from(workspaceMacModel) + .where(eq(workspaceMacModel.workspaceId, input.workspaceId)), + client + .select({ + count: workspaceBotMessageUsageModel.count, + periodEnd: workspaceBotMessageUsageModel.periodEnd, + periodStart: workspaceBotMessageUsageModel.periodStart, + }) + .from(workspaceBotMessageUsageModel) + .where( + eq(workspaceBotMessageUsageModel.workspaceId, input.workspaceId), + ), + client.$count( + contactModel, + eq(contactModel.workspaceId, input.workspaceId), + ), + client.$count(inboxModel, eq(inboxModel.workspaceId, input.workspaceId)), + client.query.userQuotaModel.findFirst({ + where: { userId: input.ownerId }, + columns: { + botMessagesUsed: true, + macUsed: true, + monthlyBotMessagesUsed: true, + periodEnd: true, + periodStart: true, + planName: true, + planStatus: true, + }, + }), + ]) + const usageSnapshot: WorkspaceDeletionRecordUsageSnapshot = { + botMessages, + channels, + contacts, + mac, + ownerQuota: quota ?? null, + teamMembers: members.length, + } + const details: WorkspaceDeletionRecordDetails = { + channels: inboxes, + members, + owner: owner + ? { ...owner, id: input.ownerId } + : { email: null, id: input.ownerId, name: null, tenantId: null }, + plan: quota + ? { + periodEnd: quota.periodEnd, + periodStart: quota.periodStart, + planName: quota.planName, + planStatus: quota.planStatus, + } + : null, + requestedBy: requestedBy + ? { ...requestedBy, id: workspace.deletionRequestedById, via: "ui" } + : null, + workspace: { + createdAt: workspace.createdAt, + id: workspace.id, + language: workspace.language, + logo: workspace.logo, + name: workspace.name, + timezone: workspace.timezone, + }, + } + const validatedUsageSnapshot = + workspaceDeletionRecordUsageSnapshotSchema.parse(usageSnapshot) + const validatedDetails = workspaceDeletionRecordDetailsSchema.parse(details) + const [record] = await client + .insert(workspaceDeletionRecordModel) + .values({ + deletionRequestedAt: workspace.deletionRequestedAt, + deletionRequestedByEmail: requestedBy?.email, + deletionRequestedById: workspace.deletionRequestedById, + details: validatedDetails, + ownerEmail: owner?.email, + ownerId: input.ownerId, + scheduledDeletionAt: workspace.scheduledDeletionAt, + tenantId: input.tenantId, + usageSnapshot: validatedUsageSnapshot, + workspaceId: input.workspaceId, + workspaceName: workspace.name, + }) + .onConflictDoNothing() + .returning({ id: workspaceDeletionRecordModel.id }) + return { created: Boolean(record), usageSnapshot: validatedUsageSnapshot } + } + + async markPurged( + workspaceId: string, + client: DatabaseClient = db, + ): Promise { + await client + .update(workspaceDeletionRecordModel) + .set({ purgedAt: new Date() }) + .where(eq(workspaceDeletionRecordModel.workspaceId, workspaceId)) + } +} + +export const workspaceDeletionRecordRepository = + new WorkspaceDeletionRecordRepository() diff --git a/packages/database/src/repositories/workspace-mac/index.ts b/packages/database/src/repositories/workspace-mac/index.ts new file mode 100644 index 0000000000..b1d08c5baf --- /dev/null +++ b/packages/database/src/repositories/workspace-mac/index.ts @@ -0,0 +1 @@ +export * from "./repository" diff --git a/packages/database/src/repositories/workspace-mac/repository.ts b/packages/database/src/repositories/workspace-mac/repository.ts new file mode 100644 index 0000000000..fd42889580 --- /dev/null +++ b/packages/database/src/repositories/workspace-mac/repository.ts @@ -0,0 +1,46 @@ +import { + and, + type DatabaseClient, + db, + eq, + gt, + inArray, + isNull, + lte, + or, + sql, + sum, +} from "../../client" +import { workspaceMacModel, workspaceModel } from "../../schema" + +class WorkspaceMacRepository { + async sumBillingMacForTenant( + tenantId: string, + client: DatabaseClient = db, + ): Promise { + const tenantWorkspaces = client + .select({ id: workspaceModel.id }) + .from(workspaceModel) + .where(eq(workspaceModel.tenantId, tenantId)) + const [row] = await client + .select({ total: sum(workspaceMacModel.macCount) }) + .from(workspaceMacModel) + .where( + and( + or( + eq(workspaceMacModel.tenantId, tenantId), + and( + isNull(workspaceMacModel.tenantId), + inArray(workspaceMacModel.workspaceId, tenantWorkspaces), + ), + ), + lte(workspaceMacModel.periodStart, sql`now()`), + gt(workspaceMacModel.periodEnd, sql`now()`), + ), + ) + + return Number(row?.total ?? 0) + } +} + +export const workspaceMacRepository = new WorkspaceMacRepository() diff --git a/packages/database/src/repositories/workspace-purge/tables.ts b/packages/database/src/repositories/workspace-purge/tables.ts index 1ad8f8cc5b..d33e82d53e 100644 --- a/packages/database/src/repositories/workspace-purge/tables.ts +++ b/packages/database/src/repositories/workspace-purge/tables.ts @@ -61,6 +61,18 @@ export const NO_FK_WORKSPACE_TABLES = [ stage: "ctid", table: "CoexistSyncRun", }, + { + stage: "contactActivity", + table: "ContactActivity", + }, + { + stage: "contactActivity", + table: "ContactKeywordMessage", + }, + { + stage: "contactActivity", + table: "ContactState", + }, { stage: "ctid", table: "FlowAnalyticsSession", @@ -84,6 +96,15 @@ export const NO_FK_WORKSPACE_TABLES = [ }, { stage: "hypertable", table: "Message" }, { stage: "hypertable", table: "Attachment" }, + { stage: "retainedBilling", table: "WorkspaceMac" }, + { + stage: "retainedBilling", + table: "WorkspaceBotMessageUsage", + }, + { + stage: "retainedBilling", + table: "WorkspaceDeletionRecord", + }, ] as const export type HeavyWorkspaceTable = (typeof HEAVY_WORKSPACE_TABLES)[number] diff --git a/packages/database/src/schema/index.ts b/packages/database/src/schema/index.ts index acf43d0392..79bc1d9edd 100644 --- a/packages/database/src/schema/index.ts +++ b/packages/database/src/schema/index.ts @@ -202,5 +202,7 @@ export * from "./working-hours-interval" export * from "./working-hours-member" export * from "./workspace" export * from "./workspace-api-token" +export * from "./workspace-bot-message-usage" +export * from "./workspace-deletion-record" export * from "./workspace-mac" export * from "./workspace-member" diff --git a/packages/database/src/schema/workspace-bot-message-usage.ts b/packages/database/src/schema/workspace-bot-message-usage.ts new file mode 100644 index 0000000000..5805d3680b --- /dev/null +++ b/packages/database/src/schema/workspace-bot-message-usage.ts @@ -0,0 +1,49 @@ +import { + index, + integer, + type PgTimestampConfig, + pgTable, + timestamp, + unique, +} from "drizzle-orm/pg-core" +import { bigintAsString, sharedColumns } from "../partials/shared" +import { userModel } from "./auth-user" + +const periodTimestampConfig: PgTimestampConfig<"date"> = { + mode: "date", + precision: 6, + withTimezone: true, +} + +/** Retained per-workspace billing evidence; it outlives Workspace. */ +export const workspaceBotMessageUsageModel = pgTable( + "WorkspaceBotMessageUsage", + { + ...sharedColumns, + workspaceId: bigintAsString().notNull(), + ownerId: bigintAsString() + .notNull() + .references(() => userModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + tenantId: bigintAsString().notNull(), + periodStart: timestamp(periodTimestampConfig).notNull(), + periodEnd: timestamp(periodTimestampConfig).notNull(), + count: integer().notNull().default(0), + }, + (table) => [ + index("WorkspaceBotMessageUsage_ownerId_periodStart_idx").on( + table.ownerId, + table.periodStart, + ), + index("WorkspaceBotMessageUsage_tenantId_periodStart_idx").on( + table.tenantId, + table.periodStart, + ), + unique("WorkspaceBotMessageUsage_workspaceId_periodStart_key").on( + table.workspaceId, + table.periodStart, + ), + ], +) diff --git a/packages/database/src/schema/workspace-deletion-record.ts b/packages/database/src/schema/workspace-deletion-record.ts new file mode 100644 index 0000000000..c1241ee5c1 --- /dev/null +++ b/packages/database/src/schema/workspace-deletion-record.ts @@ -0,0 +1,125 @@ +import { + index, + jsonb, + pgTable, + text, + timestamp, + unique, +} from "drizzle-orm/pg-core" +import { z } from "zod" +import { + bigintAsString, + sharedColumns, + timestampConfig, +} from "../partials/shared" + +const periodUsageSchema = z.object({ + count: z.number().int(), + periodEnd: z.date(), + periodStart: z.date(), +}) +const quotaSnapshotSchema = z.object({ + botMessagesUsed: z.number().int(), + macUsed: z.number().int(), + monthlyBotMessagesUsed: z.number().int(), + periodEnd: z.date().nullable(), + periodStart: z.date().nullable(), + planName: z.string().nullable(), + planStatus: z.string().nullable(), +}) + +export const workspaceDeletionRecordUsageSnapshotSchema = z.object({ + botMessages: z.array(periodUsageSchema), + channels: z.number().int().nonnegative(), + contacts: z.number().int().nonnegative(), + mac: z.array(periodUsageSchema), + ownerQuota: quotaSnapshotSchema.nullable(), + teamMembers: z.number().int().nonnegative(), +}) +export type WorkspaceDeletionRecordUsageSnapshot = z.infer< + typeof workspaceDeletionRecordUsageSnapshotSchema +> + +export const workspaceDeletionRecordDetailsSchema = z.object({ + channels: z.array( + z.object({ + channel: z.string(), + id: z.string(), + name: z.string(), + status: z.string(), + }), + ), + members: z.array( + z.object({ + email: z.string().nullable(), + name: z.string().nullable(), + role: z.string(), + userId: z.string(), + }), + ), + owner: z.object({ + email: z.string().nullable(), + id: z.string(), + name: z.string().nullable(), + tenantId: z.string().nullable(), + }), + plan: z + .object({ + periodEnd: z.date().nullable(), + periodStart: z.date().nullable(), + planName: z.string().nullable(), + planStatus: z.string().nullable(), + }) + .nullable(), + requestedBy: z + .object({ + email: z.string().nullable(), + id: z.string().nullable(), + name: z.string().nullable(), + via: z.literal("ui"), + }) + .nullable(), + workspace: z.object({ + createdAt: z.date(), + id: z.string(), + language: z.string(), + logo: z.string().nullable(), + name: z.string(), + timezone: z.string(), + }), +}) +export type WorkspaceDeletionRecordDetails = z.infer< + typeof workspaceDeletionRecordDetailsSchema +> +/** + * Immutable purge-time evidence. Deliberately has no foreign keys: it must + * survive deletion of both the workspace and any referenced user. + */ +export const workspaceDeletionRecordModel = pgTable( + "WorkspaceDeletionRecord", + { + ...sharedColumns, + workspaceId: bigintAsString().notNull(), + workspaceName: text().notNull(), + ownerId: bigintAsString().notNull(), + ownerEmail: text(), + tenantId: bigintAsString().notNull(), + deletionRequestedById: bigintAsString(), + deletionRequestedByEmail: text(), + deletionRequestedAt: timestamp(timestampConfig), + scheduledDeletionAt: timestamp(timestampConfig), + purgedAt: timestamp(timestampConfig), + usageSnapshot: jsonb() + .$type() + .notNull(), + details: jsonb().$type().notNull(), + }, + (table) => [ + unique("WorkspaceDeletionRecord_workspaceId_key").on(table.workspaceId), + index("WorkspaceDeletionRecord_workspaceName_idx").on(table.workspaceName), + index("WorkspaceDeletionRecord_ownerEmail_idx").on(table.ownerEmail), + index("WorkspaceDeletionRecord_deletionRequestedByEmail_idx").on( + table.deletionRequestedByEmail, + ), + ], +) diff --git a/packages/database/src/schema/workspace-mac.ts b/packages/database/src/schema/workspace-mac.ts index 8a07d11847..898a08aecc 100644 --- a/packages/database/src/schema/workspace-mac.ts +++ b/packages/database/src/schema/workspace-mac.ts @@ -1,4 +1,5 @@ import { + index, integer, type PgTimestampConfig, pgTable, @@ -6,7 +7,7 @@ import { unique, } from "drizzle-orm/pg-core" import { bigintAsString, sharedColumns } from "../partials/shared" -import { workspaceModel } from "./workspace" +import { userModel } from "./auth-user" const periodTimestampConfig: PgTimestampConfig<"date"> = { mode: "date", @@ -18,17 +19,26 @@ export const workspaceMacModel = pgTable( "WorkspaceMac", { ...sharedColumns, - workspaceId: bigintAsString() - .notNull() - .references(() => workspaceModel.id, { - onDelete: "cascade", - onUpdate: "cascade", - }), + // Retained billing rollups stay after their workspace is purged. + workspaceId: bigintAsString().notNull(), + ownerId: bigintAsString().references(() => userModel.id, { + onDelete: "cascade", + onUpdate: "cascade", + }), + tenantId: bigintAsString(), periodStart: timestamp(periodTimestampConfig).notNull(), periodEnd: timestamp(periodTimestampConfig).notNull(), macCount: integer().notNull().default(0), }, (table) => [ + index("WorkspaceMac_ownerId_periodStart_idx").on( + table.ownerId, + table.periodStart, + ), + index("WorkspaceMac_tenantId_periodStart_idx").on( + table.tenantId, + table.periodStart, + ), unique("WorkspaceMac_workspaceId_periodStart_periodEnd_unique").on( table.workspaceId, table.periodStart, diff --git a/packages/database/src/schema/workspace.ts b/packages/database/src/schema/workspace.ts index 69b564a2fc..4a8b72cc61 100644 --- a/packages/database/src/schema/workspace.ts +++ b/packages/database/src/schema/workspace.ts @@ -51,6 +51,8 @@ export const workspaceModel = pgTable( endTime: text(), logo: text(), scheduledDeletionAt: timestamp(timestampConfig), + deletionRequestedById: bigintAsString(), + deletionRequestedAt: timestamp(timestampConfig), purgeStartedAt: timestamp(timestampConfig), // Owner opt-in for platform support access. Non-null and in the future // means the owner has consented to the super admin opening this diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts index 4f302b040b..85ff89c3ed 100644 --- a/packages/database/src/types.ts +++ b/packages/database/src/types.ts @@ -331,6 +331,10 @@ export type QuestionnaireSubmissionModel = export type QuestionnaireAnswerModel = typeof schema.questionnaireAnswerModel.$inferSelect export type WorkspaceMacModel = typeof schema.workspaceMacModel.$inferSelect +export type WorkspaceBotMessageUsageModel = + typeof schema.workspaceBotMessageUsageModel.$inferSelect +export type WorkspaceDeletionRecordModel = + typeof schema.workspaceDeletionRecordModel.$inferSelect export type ContactActiveHourlyModel = typeof schema.contactActiveHourlyModel.$inferSelect export type AutomationThrottleModel = From 17d97d5ffb8de95dc356b0a251b63d1986255fde Mon Sep 17 00:00:00 2001 From: Real Codesiman Date: Sat, 24 Oct 2026 22:29:23 +0700 Subject: [PATCH 4/7] fix(workspace): preserve deletion records and quota usage --- .../src/app/admin/workspaces/deleted/page.tsx | 29 +++ apps/builder/src/app/page.tsx | 2 + .../deleted-workspaces-table.tsx | 60 +++++++ .../src/features/workspaces/api/private.ts | 34 +++- .../components/deleted-workspaces.tsx | 36 ++++ .../workspaces/schema/deletion-record.ts | 27 +++ .../__tests__/message-analytics-quota.test.ts | 29 ++- .../__tests__/sync-user-quota-mac.test.ts | 14 +- .../sync-user-quota-reconcile.test.ts | 64 +++++-- apps/worker/src/events/analytics/message.ts | 47 +++-- .../src/schedule/handlers/sync-user-quota.ts | 41 ++--- .../__tests__/mac.repository.test.ts | 40 ----- .../repositories/postgres/mac.repository.ts | 47 ----- .../user-quota-reconcile-self.test.ts | 88 +++++++-- .../workspace-bot-message-usage.test.ts | 52 ++++++ .../workspace-deletion-record.test.ts | 39 ++++ packages/business/src/index.ts | 1 + packages/business/src/user-quota/service.ts | 85 ++++++--- .../workspace-bot-message-usage/service.ts | 25 +-- .../src/workspace-deletion-record/index.ts | 1 + .../src/workspace-deletion-record/service.ts | 165 +++++++++++++++++ .../src/workspace/__tests__/service.test.ts | 6 +- packages/business/src/workspace/service.ts | 16 +- packages/database/package.json | 1 + packages/database/src/repositories/index.ts | 1 + .../database/src/repositories/tenant/index.ts | 1 + .../src/repositories/tenant/repository.ts | 19 ++ .../workspace-bot-message-usage/repository.ts | 53 +++--- .../workspace-deletion-record/repository.ts | 169 +++++++++++------- .../repositories/workspace-mac/repository.ts | 39 +++- .../src/schema/workspace-deletion-record.ts | 16 +- 31 files changed, 949 insertions(+), 298 deletions(-) create mode 100644 apps/builder/src/app/admin/workspaces/deleted/page.tsx create mode 100644 apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx create mode 100644 apps/builder/src/features/workspaces/components/deleted-workspaces.tsx create mode 100644 apps/builder/src/features/workspaces/schema/deletion-record.ts create mode 100644 packages/business/__tests__/workspace-bot-message-usage.test.ts create mode 100644 packages/business/__tests__/workspace-deletion-record.test.ts create mode 100644 packages/business/src/workspace-deletion-record/index.ts create mode 100644 packages/business/src/workspace-deletion-record/service.ts create mode 100644 packages/database/src/repositories/tenant/index.ts create mode 100644 packages/database/src/repositories/tenant/repository.ts diff --git a/apps/builder/src/app/admin/workspaces/deleted/page.tsx b/apps/builder/src/app/admin/workspaces/deleted/page.tsx new file mode 100644 index 0000000000..63618b30f2 --- /dev/null +++ b/apps/builder/src/app/admin/workspaces/deleted/page.tsx @@ -0,0 +1,29 @@ +import { + isSuperAdmin, + workspaceDeletionRecordService, +} from "@chatbotx.io/business" +import { notFound } from "next/navigation" +import { getTranslations } from "next-intl/server" +import { DeletedWorkspacesTable } from "@/features/admin-workspaces/deleted-workspaces-table" +import { getCurrentUser } from "@/lib/auth/utils" + +export default async function DeletedWorkspacesPage() { + const user = await getCurrentUser() + if (!(user && (await isSuperAdmin(user)))) { + return notFound() + } + + const [t, records] = await Promise.all([ + getTranslations(), + workspaceDeletionRecordService.listForAdmin({ page: 1, perPage: 50 }), + ]) + + return ( +
+

+ {t("platformAdmin.workspaces.title")} +

+ +
+ ) +} diff --git a/apps/builder/src/app/page.tsx b/apps/builder/src/app/page.tsx index 8559d0bb4b..7f76f71cd5 100644 --- a/apps/builder/src/app/page.tsx +++ b/apps/builder/src/app/page.tsx @@ -11,6 +11,7 @@ import { ExpiredBanner } from "@/components/expired-banner" import { WorkspaceDeletionPendingToast } from "@/components/workspace-deletion-pending-toast" import { isCloud } from "@/env" import { AccountRail } from "@/features/workspaces/components/account-rail" +import { DeletedWorkspaces } from "@/features/workspaces/components/deleted-workspaces" import WorkspacesList from "@/features/workspaces/components/workspaces-list" import { hasWorkspacePermission } from "@/lib/auth/permission-routes" import { enforcePasswordCurrent } from "@/lib/auth/require-password-current" @@ -96,6 +97,7 @@ export default async function MainPage() { user={userInfo} workspaces={allWorkspaces} /> + ) diff --git a/apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx b/apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx new file mode 100644 index 0000000000..597d90e3bc --- /dev/null +++ b/apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx @@ -0,0 +1,60 @@ +import { format } from "date-fns" +import { getTranslations } from "next-intl/server" +import type { WorkspaceDeletionRecordResource } from "@/features/workspaces/schema/deletion-record" + +type DeletedWorkspacesTableProps = { + records: WorkspaceDeletionRecordResource[] +} + +export const DeletedWorkspacesTable = async ({ + records, +}: DeletedWorkspacesTableProps) => { + const t = await getTranslations() + + return ( +
+ + + + + + + + + + {records.map((record) => ( + + + + + + ))} + +
+ {t("fields.name.label")} + + {t("platformAdmin.workspaces.owner")} + + {t("fields.createdAt.label")} +
+
+ + {record.workspaceName} + +
+                    {JSON.stringify(
+                      {
+                        details: record.details,
+                        usageSnapshot: record.usageSnapshot,
+                      },
+                      null,
+                      2,
+                    )}
+                  
+
+
{record.ownerEmail ?? "—"} + {record.purgedAt ? format(record.purgedAt, "PPp") : "—"} +
+
+ ) +} diff --git a/apps/builder/src/features/workspaces/api/private.ts b/apps/builder/src/features/workspaces/api/private.ts index 01642dec72..5f6a1a620c 100644 --- a/apps/builder/src/features/workspaces/api/private.ts +++ b/apps/builder/src/features/workspaces/api/private.ts @@ -1,6 +1,10 @@ -import { workspaceMemberService } from "@chatbotx.io/business" +import { + workspaceDeletionRecordService, + workspaceMemberService, +} from "@chatbotx.io/business" import z from "zod" import { authorizedAPI } from "@/orpc" +import { workspaceDeletionRecordResource } from "../schema/deletion-record" import { workspaceResource } from "../schema/resource" export const workspacesAuthenticatedAPI = { @@ -19,4 +23,32 @@ export const workspacesAuthenticatedAPI = { }) return { workspaces: members.map((member) => member.workspace) } }), + + listDeletedWorkspacesAPI: authorizedAPI + .route({ + method: "GET", + path: "/users/me/workspaces/deleted", + summary: "List the current user's deleted workspace evidence", + tags: ["Workspaces"], + }) + .input( + z.object({ + page: z.number().int().positive().default(1), + perPage: z.number().int().positive().max(100).default(20), + }), + ) + .output( + z.object({ + data: z.array(workspaceDeletionRecordResource), + pageCount: z.number().int().nonnegative(), + }), + ) + .handler( + async ({ context, input }) => + await workspaceDeletionRecordService.listForOwner({ + ownerId: context.user.id, + page: input.page, + perPage: input.perPage, + }), + ), } diff --git a/apps/builder/src/features/workspaces/components/deleted-workspaces.tsx b/apps/builder/src/features/workspaces/components/deleted-workspaces.tsx new file mode 100644 index 0000000000..fcc42e0fdd --- /dev/null +++ b/apps/builder/src/features/workspaces/components/deleted-workspaces.tsx @@ -0,0 +1,36 @@ +import { workspaceDeletionRecordService } from "@chatbotx.io/business" +import { format } from "date-fns" +import { getTranslations } from "next-intl/server" + +export const DeletedWorkspaces = async ({ ownerId }: { ownerId: string }) => { + const [t, records] = await Promise.all([ + getTranslations(), + workspaceDeletionRecordService.listForOwner({ + ownerId, + page: 1, + perPage: 20, + }), + ]) + if (records.data.length === 0) { + return null + } + + return ( +
+

{t("fields.workspace.label")}

+
    + {records.data.map((record) => ( +
  • +
    {record.workspaceName}
    +
    + {record.purgedAt ? format(record.purgedAt, "PPp") : "—"} +
    +
    +              {JSON.stringify(record.usageSnapshot, null, 2)}
    +            
    +
  • + ))} +
+
+ ) +} diff --git a/apps/builder/src/features/workspaces/schema/deletion-record.ts b/apps/builder/src/features/workspaces/schema/deletion-record.ts new file mode 100644 index 0000000000..cdb779852b --- /dev/null +++ b/apps/builder/src/features/workspaces/schema/deletion-record.ts @@ -0,0 +1,27 @@ +import { + workspaceDeletionRecordDetailsSchema, + workspaceDeletionRecordUsageSnapshotSchema, +} from "@chatbotx.io/database/schema" +import z from "zod" + +export const workspaceDeletionRecordResource = z.object({ + id: z.string(), + workspaceId: z.string(), + workspaceName: z.string(), + ownerId: z.string(), + ownerEmail: z.string().nullable(), + tenantId: z.string(), + deletionRequestedById: z.string().nullable(), + deletionRequestedByEmail: z.string().nullable(), + deletionRequestedAt: z.date().nullable(), + scheduledDeletionAt: z.date().nullable(), + purgedAt: z.date().nullable(), + details: workspaceDeletionRecordDetailsSchema, + usageSnapshot: workspaceDeletionRecordUsageSnapshotSchema, + createdAt: z.date(), + updatedAt: z.date(), +}) + +export type WorkspaceDeletionRecordResource = z.infer< + typeof workspaceDeletionRecordResource +> diff --git a/apps/worker/__tests__/message-analytics-quota.test.ts b/apps/worker/__tests__/message-analytics-quota.test.ts index c83c035aa1..2507ca9016 100644 --- a/apps/worker/__tests__/message-analytics-quota.test.ts +++ b/apps/worker/__tests__/message-analytics-quota.test.ts @@ -38,7 +38,10 @@ describe("handleBotMessageSent quota accounting", () => { mocks.incrementBotUsage.mockResolvedValue(undefined) mocks.incrementUsage.mockResolvedValue(undefined) mocks.findById.mockImplementation(({ id }: { id: string }) => - Promise.resolve({ ownerId: `owner-${id}` }), + Promise.resolve({ + ownerId: `owner-${id}`, + tenantId: `tenant-${id}`, + }), ) }) @@ -72,10 +75,14 @@ describe("handleBotMessageSent quota accounting", () => { }) expect(mocks.incrementBotUsage).toHaveBeenCalledWith({ count: 2, + ownerId: "owner-workspace-1", + tenantId: "tenant-workspace-1", workspaceId: "workspace-1", }) expect(mocks.incrementBotUsage).toHaveBeenCalledWith({ count: 1, + ownerId: "owner-workspace-2", + tenantId: "tenant-workspace-2", workspaceId: "workspace-2", }) expect(mocks.incrementUsage).toHaveBeenCalledTimes(2) @@ -91,19 +98,37 @@ describe("handleBotMessageSent quota accounting", () => { ) }) - it("swallows quota failures after recording analytics", async () => { + it("writes the ledger when quota accounting fails", async () => { mocks.incrementBy.mockRejectedValue(new Error("quota unavailable")) await expect(handleBotMessageSent([payload("workspace-1")])).resolves.toBe( undefined, ) + expect(mocks.recordEvents).toHaveBeenCalledOnce() expect(mocks.incrementBotUsage).toHaveBeenCalledWith({ count: 1, + ownerId: "owner-workspace-1", + tenantId: "tenant-workspace-1", workspaceId: "workspace-1", }) }) + it("increments quota when the ledger write fails", async () => { + mocks.incrementBotUsage.mockRejectedValue(new Error("ledger unavailable")) + + await expect(handleBotMessageSent([payload("workspace-1")])).resolves.toBe( + undefined, + ) + + expect(mocks.incrementBy).toHaveBeenCalledTimes(2) + expect(mocks.incrementUsage).toHaveBeenCalledWith( + "workspace-1", + "botMessages", + 1, + ) + }) + it("isolates a failing workspace so others still get incremented", async () => { mocks.findById.mockImplementation(({ id }: { id: string }) => { if (id === "workspace-1") { diff --git a/apps/worker/__tests__/sync-user-quota-mac.test.ts b/apps/worker/__tests__/sync-user-quota-mac.test.ts index 2f86bd8198..1e8180fe2c 100644 --- a/apps/worker/__tests__/sync-user-quota-mac.test.ts +++ b/apps/worker/__tests__/sync-user-quota-mac.test.ts @@ -7,60 +7,60 @@ const P2 = "2026-07-01T00:00:00.000Z" describe("resolveMacReconcileAction", () => { test("is a no-op when nothing is tracked or stored", () => { expect(resolveMacReconcileAction(null, null, 0, P1)).toEqual({ + raiseMacUsed: null, setLiveMac: null, stampPeriod: false, - persistMacUsed: null, }) }) test("resets the live counter when the billing cycle rolled over", () => { // Private quota-worker advanced periodStart and zeroed macUsed (recurring). expect(resolveMacReconcileAction("40", P1, 0, P2)).toEqual({ + raiseMacUsed: null, setLiveMac: 0, stampPeriod: true, - persistMacUsed: null, }) }) test("does not reset a lifetime plan (period stamp never changes)", () => { // Lifetime: periodStart is stable, so the stamp always equals the DB period. expect(resolveMacReconcileAction("40", P1, 40, P1)).toEqual({ + raiseMacUsed: null, setLiveMac: null, stampPeriod: false, - persistMacUsed: null, }) }) test("treats an empty period (no plan period) as stable — never resets", () => { expect(resolveMacReconcileAction("40", "", 40, "")).toEqual({ + raiseMacUsed: null, setLiveMac: null, stampPeriod: false, - persistMacUsed: null, }) }) test("snapshots the live count into the DB within the same period", () => { expect(resolveMacReconcileAction("55", P1, 40, P1)).toEqual({ + raiseMacUsed: 55, setLiveMac: null, stampPeriod: false, - persistMacUsed: 55, }) }) test("adopts and stamps an unstamped live counter without wiping it", () => { // HINCRBY from mac-tracking creates `mac` without a period stamp. expect(resolveMacReconcileAction("12", null, 0, P1)).toEqual({ + raiseMacUsed: 12, setLiveMac: null, stampPeriod: true, - persistMacUsed: 12, }) }) test("seeds the DB value when the live counter is absent but DB has usage", () => { expect(resolveMacReconcileAction(null, P1, 30, P1)).toEqual({ + raiseMacUsed: null, setLiveMac: null, stampPeriod: false, - persistMacUsed: null, }) }) }) diff --git a/apps/worker/__tests__/sync-user-quota-reconcile.test.ts b/apps/worker/__tests__/sync-user-quota-reconcile.test.ts index 8b9e8111df..b65313aa63 100644 --- a/apps/worker/__tests__/sync-user-quota-reconcile.test.ts +++ b/apps/worker/__tests__/sync-user-quota-reconcile.test.ts @@ -17,6 +17,7 @@ const state = { stored: null as Record | null, // Every macUsed value the handler persisted, in order. persistedMac: [] as number[], + liveMacRaises: [] as { periodIso: string; value: number }[], // Truthy once reconcileUserSelfUsage ran for a user (the self-count path). selfReconciledUsers: [] as string[], hsetCalls: [] as unknown[][], @@ -85,6 +86,12 @@ vi.mock("@chatbotx.io/business", () => ({ state.persistedMac.push(value) return Promise.resolve() }), + raiseLiveMac: vi.fn( + ({ periodIso, value }: { periodIso: string; value: number }) => { + state.liveMacRaises.push({ periodIso, value }) + return Promise.resolve() + }, + ), applyMonthlyBotMessagesReset: vi.fn(async () => undefined), }, // The ghost-id existence filter lives on the service, not a raw `db.select` @@ -127,9 +134,15 @@ vi.mock("@chatbotx.io/redis", () => ({ distributedStore: { delete: vi.fn(async () => undefined) }, })) -const sumBillingMacForOwner = vi.fn(async () => state.ledgerMac) vi.mock("@chatbotx.io/analytics", () => ({ - macRepository: { sumBillingMacForOwner }, + anchoredPeriod: (_now: Date, periodStart: Date) => ({ + start: periodStart, + }), +})) + +const sumForOwner = vi.fn(async () => state.ledgerMac) +vi.mock("@chatbotx.io/database/repositories/workspace-mac", () => ({ + workspaceMacRepository: { sumForOwner }, })) vi.mock("../src/lib/logger", () => ({ @@ -169,7 +182,7 @@ describe("reconcileUser — the non-reseller path delegates the self-count", () state.hmgetResult = [null, null] state.ledgerMac = 0 redisClient.hset.mockClear() - sumBillingMacForOwner.mockClear() + sumForOwner.mockClear() }) // The authoritative COUNT(*) reads, the direct-assignment (never GREATEST) @@ -200,10 +213,11 @@ describe("reconcileUser — macUsed is derived from the ContactActiveMonthly led beforeEach(() => { state.persistedMac = [] + state.liveMacRaises = [] state.selfReconciledUsers = [] state.hsetCalls = [] redisClient.hset.mockClear() - sumBillingMacForOwner.mockClear() + sumForOwner.mockClear() state.ledgerMac = 0 }) @@ -220,15 +234,37 @@ describe("reconcileUser — macUsed is derived from the ContactActiveMonthly led await reconcileUser("user-1") - expect(sumBillingMacForOwner).toHaveBeenCalledWith( - expect.objectContaining({ ownerId: "user-1", cumulative: false }), - ) + expect(sumForOwner).toHaveBeenCalledWith({ + ownerId: "user-1", + periodStart: new Date(PERIOD), + cumulative: false, + }) + expect(state.liveMacRaises).toContainEqual({ + periodIso: PERIOD, + value: 7, + }) + expect(state.persistedMac).toContain(7) + }) + + test("adopts an unstamped live counter before attempting ledger repair", async () => { + state.hmgetResult = ["12", null] + state.ledgerMac = 7 + state.stored = { + macUsed: 5, + periodStart: new Date(PERIOD), + periodEnd: new Date("2026-07-01T00:00:00.000Z"), + monthlyBotMessagesPeriodStart: null, + } + + await reconcileUser("user-1") + + expect(sumForOwner).not.toHaveBeenCalled() expect(state.hsetCalls).toContainEqual([ "user-quota-live:user-1", - "mac", - "7", + "macPeriodStart", + PERIOD, ]) - expect(state.persistedMac).toContain(7) + expect(state.persistedMac).toContain(12) }) test("lifetime plan (no periodEnd) keeps the accumulate path, not the ledger", async () => { @@ -243,9 +279,11 @@ describe("reconcileUser — macUsed is derived from the ContactActiveMonthly led await reconcileUser("user-1") - expect(sumBillingMacForOwner).toHaveBeenCalledWith( - expect.objectContaining({ cumulative: true }), - ) + expect(sumForOwner).toHaveBeenCalledWith({ + ownerId: "user-1", + periodStart: null, + cumulative: true, + }) // The service applies GREATEST, so this lower ledger observation cannot // reduce the durable lifetime total. expect(state.persistedMac).toEqual([4]) diff --git a/apps/worker/src/events/analytics/message.ts b/apps/worker/src/events/analytics/message.ts index 3725fb421c..46f6f4dd71 100644 --- a/apps/worker/src/events/analytics/message.ts +++ b/apps/worker/src/events/analytics/message.ts @@ -38,23 +38,44 @@ export async function handleBotMessageSent( await Promise.all( [...countsByWorkspace].map(async ([workspaceId, count]) => { try { - await workspaceBotMessageUsageService.increment({ count, workspaceId }) const workspace = await workspaceService.findById({ id: workspaceId }) - await quotaEnforcementService.incrementBy({ - userId: workspace.ownerId, - metric: "botMessages", - count, - }) - await quotaEnforcementService.incrementBy({ - userId: workspace.ownerId, - metric: "monthlyBotMessages", - count, - }) - await workspaceUsageService.increment(workspaceId, "botMessages", count) + const [quotaResult, ledgerResult] = await Promise.allSettled([ + Promise.all([ + quotaEnforcementService.incrementBy({ + userId: workspace.ownerId, + metric: "botMessages", + count, + }), + quotaEnforcementService.incrementBy({ + userId: workspace.ownerId, + metric: "monthlyBotMessages", + count, + }), + workspaceUsageService.increment(workspaceId, "botMessages", count), + ]), + workspaceBotMessageUsageService.increment({ + count, + ownerId: workspace.ownerId, + tenantId: workspace.tenantId, + workspaceId, + }), + ]) + if (quotaResult.status === "rejected") { + logger.error( + { err: quotaResult.reason, workspaceId, count }, + "[analytics] bot message quota increment failed", + ) + } + if (ledgerResult.status === "rejected") { + logger.error( + { err: ledgerResult.reason, workspaceId, count }, + "[analytics] bot message usage ledger write failed", + ) + } } catch (err) { logger.error( { err, workspaceId, count }, - "[analytics] bot message quota increment failed", + "[analytics] bot message workspace lookup failed", ) } }), diff --git a/apps/worker/src/schedule/handlers/sync-user-quota.ts b/apps/worker/src/schedule/handlers/sync-user-quota.ts index 5a7ba89005..a025afca2f 100644 --- a/apps/worker/src/schedule/handlers/sync-user-quota.ts +++ b/apps/worker/src/schedule/handlers/sync-user-quota.ts @@ -1,4 +1,4 @@ -import { macRepository } from "@chatbotx.io/analytics" +import { anchoredPeriod, macRepository } from "@chatbotx.io/analytics" import { parseLiveCount, tenantService, @@ -8,6 +8,7 @@ import { workspaceUsageService, } from "@chatbotx.io/business" import { isForeignKeyViolationError } from "@chatbotx.io/database/client" +import { workspaceMacRepository } from "@chatbotx.io/database/repositories/workspace-mac" import { cacheConnections } from "@chatbotx.io/redis" import { liveKeyFor, USER_QUOTA_LABEL } from "@chatbotx.io/utils" import { logger } from "../../lib/logger" @@ -244,24 +245,24 @@ const reconcileMac = async ( MAC_PERIOD_FIELD, ) - const rolledOver = livePeriod !== null && livePeriod !== dbPeriodIso + const _rolledOver = livePeriod !== null && livePeriod !== dbPeriodIso // The retained owner-keyed rollup is durable billing evidence. Its value may // repair a lost increment, but never lowers usage in an active period. - if (dbPeriodIso && !rolledOver) { - const ledgerMac = await macRepository.sumBillingMacForOwner({ + if (dbPeriodIso && livePeriod === dbPeriodIso) { + const periodStart = isLifetime + ? null + : anchoredPeriod(new Date(), new Date(dbPeriodIso)).start + const ledgerMac = await workspaceMacRepository.sumForOwner({ ownerId: userId, - billingPeriodStart: new Date(dbPeriodIso), + periodStart, cumulative: isLifetime, }) - const liveMac = parseLiveCount(liveMacRaw) ?? 0 - - if (ledgerMac > liveMac) { - await client.hset(liveKey, MAC_FIELD, String(ledgerMac)) - } - if (livePeriod !== dbPeriodIso) { - await client.hset(liveKey, MAC_PERIOD_FIELD, dbPeriodIso) - } + await userQuotaService.raiseLiveMac({ + userId, + value: ledgerMac, + periodIso: dbPeriodIso, + }) await userQuotaService.raiseMacUsed({ userId, value: ledgerMac, @@ -289,10 +290,10 @@ const reconcileMac = async ( await client.hset(liveKey, MAC_PERIOD_FIELD, dbPeriodIso) } - if (action.persistMacUsed !== null && dbPeriodIso) { + if (action.raiseMacUsed !== null && dbPeriodIso) { await userQuotaService.raiseMacUsed({ userId, - value: action.persistMacUsed, + value: action.raiseMacUsed, periodStart: new Date(dbPeriodIso), }) } @@ -398,8 +399,8 @@ const reconcileMonthlyBotMessages = async ( /** What `reconcileMac` should write, derived purely from the current state. */ export interface MacReconcileAction { - /** Persist this value to `UserQuota.macUsed` (null = no DB write). */ - persistMacUsed: number | null + /** Raise `UserQuota.macUsed` to this value (null = no DB write). */ + raiseMacUsed: number | null /** Overwrite the live `mac` field with this value (null = leave it). */ setLiveMac: number | null /** (Re)stamp the live period field to the DB period. */ @@ -407,9 +408,9 @@ export interface MacReconcileAction { } const NO_OP: MacReconcileAction = { + raiseMacUsed: null, setLiveMac: null, stampPeriod: false, - persistMacUsed: null, } /** @@ -433,7 +434,7 @@ export function resolveMacReconcileAction( } if (livePeriod !== null && livePeriod !== dbPeriodIso) { - return { setLiveMac: dbMacUsed, stampPeriod: true, persistMacUsed: null } + return { raiseMacUsed: null, setLiveMac: dbMacUsed, stampPeriod: true } } // Fail closed on a corrupt (non-numeric) live field: fall back to the DB value @@ -441,8 +442,8 @@ export function resolveMacReconcileAction( // integer `macUsed` column and corrupt the durable count. const liveMac = parseLiveCount(liveMacRaw) ?? dbMacUsed return { + raiseMacUsed: liveMac === dbMacUsed ? null : liveMac, setLiveMac: null, stampPeriod: livePeriod === null, - persistMacUsed: liveMac === dbMacUsed ? null : liveMac, } } diff --git a/packages/analytics/__tests__/mac.repository.test.ts b/packages/analytics/__tests__/mac.repository.test.ts index dfc778fa4f..e03d3f195b 100644 --- a/packages/analytics/__tests__/mac.repository.test.ts +++ b/packages/analytics/__tests__/mac.repository.test.ts @@ -479,46 +479,6 @@ describe("MacRepository — getActiveContactCountByWorkspaceId", () => { }) }) -describe("sumBillingMacForOwner", () => { - test("sums only the current anchored period for a resetting plan", async () => { - queueResult([{ total: 7 }]) - const repo = new MacRepository() - - const result = await repo.sumBillingMacForOwner({ - ownerId: "owner-1", - billingPeriodStart: new Date("2026-06-01T00:00:00.000Z"), - cumulative: false, - }) - - expect(result).toBe(7) - }) - - test("returns 0 for a period-less owner without querying", async () => { - const repo = new MacRepository() - - const result = await repo.sumBillingMacForOwner({ - ownerId: "owner-1", - billingPeriodStart: null, - cumulative: false, - }) - - expect(result).toBe(0) - }) - - test("sums every period for a lifetime (cumulative) plan", async () => { - queueResult([{ total: 25 }]) - const repo = new MacRepository() - - const result = await repo.sumBillingMacForOwner({ - ownerId: "owner-1", - billingPeriodStart: new Date("2026-06-01T00:00:00.000Z"), - cumulative: true, - }) - - expect(result).toBe(25) - }) -}) - describe("MacRepository — countActiveContactsByWorkspace", () => { test("counts distinct hourly contacts in the requested range", async () => { const from = new Date("2026-05-10T00:00:00.000Z") diff --git a/packages/analytics/src/repositories/postgres/mac.repository.ts b/packages/analytics/src/repositories/postgres/mac.repository.ts index 8bf29b7df3..833e0df384 100644 --- a/packages/analytics/src/repositories/postgres/mac.repository.ts +++ b/packages/analytics/src/repositories/postgres/mac.repository.ts @@ -8,11 +8,8 @@ import { gt, gte, inArray, - isNull, lte, - or, sql, - sum, } from "@chatbotx.io/database/client" import type { MacEventType } from "@chatbotx.io/database/partials" import { @@ -24,7 +21,6 @@ import { workspaceModel, } from "@chatbotx.io/database/schema" import { logger } from "../../lib/logger" -import { anchoredPeriod } from "../../lib/mac-period" import { type AnalyticsFilter, normalizeAnalyticsFilters, @@ -307,49 +303,6 @@ export class MacRepository { return new Map(rows.map((row) => [row.workspaceId, Number(row.macCount)])) } - /** - * Sums the owner's retained WorkspaceMac billing ledger. A transitional - * fallback reaches pre-backfill rows through their still-live workspace. - */ - async sumBillingMacForOwner( - input: { - ownerId: string - billingPeriodStart: Date | null - cumulative: boolean - }, - client: DatabaseClient = db, - ): Promise { - if (!(input.cumulative || input.billingPeriodStart)) { - return 0 - } - - const ownedWorkspaces = client - .select({ id: workspaceModel.id }) - .from(workspaceModel) - .where(eq(workspaceModel.ownerId, input.ownerId)) - const conditions = [ - or( - eq(workspaceMacModel.ownerId, input.ownerId), - and( - isNull(workspaceMacModel.ownerId), - inArray(workspaceMacModel.workspaceId, ownedWorkspaces), - ), - ), - ] - - if (!input.cumulative && input.billingPeriodStart) { - const { start } = anchoredPeriod(new Date(), input.billingPeriodStart) - conditions.push(eq(workspaceMacModel.periodStart, start)) - } - - const [row] = await client - .select({ total: sum(workspaceMacModel.macCount) }) - .from(workspaceMacModel) - .where(and(...conditions)) - - return Number(row?.total ?? 0) - } - async countActiveContactsByWorkspace( input: { workspaceId: string; from: Date; to: Date } & AnalyticsFilter, client: DatabaseClient = db, diff --git a/packages/business/__tests__/user-quota-reconcile-self.test.ts b/packages/business/__tests__/user-quota-reconcile-self.test.ts index fedd00ec91..9bfc61272f 100644 --- a/packages/business/__tests__/user-quota-reconcile-self.test.ts +++ b/packages/business/__tests__/user-quota-reconcile-self.test.ts @@ -2,7 +2,7 @@ import { beforeEach, describe, expect, test, vi } from "vitest" // --------------------------------------------------------------------------- // userQuotaService — the non-reseller self-reconcile surface moved from -// sync-user-quota.ts: reconcileUserSelfUsage, persistMacUsed, +// sync-user-quota.ts: reconcileUserSelfUsage, raiseMacUsed, // applyMonthlyBotMessagesReset. AGENTS.md invariants 11/12: counts are // assigned directly (never GREATEST); onConflictDoUpdate upserts must never // become plain inserts. Mirrors the mock scaffolding in @@ -13,11 +13,14 @@ const { dbInsert, dbSelect, countDistinctTeamMembersForOwner, - findFirstTenant, findFirstUserQuota, hset, + eval: redisEval, + tenantFindById, + tenantFindByOwner, userQuotaModel, countResults, + sumForTenant, } = vi.hoisted(() => { const userQuotaModel = { userId: "userId-column", @@ -52,7 +55,6 @@ const { dbInsert: vi.fn(() => insertBuilder), dbSelect: vi.fn(() => selectBuilder), countDistinctTeamMembersForOwner: vi.fn(async () => 2), - findFirstTenant: vi.fn(async () => undefined), findFirstUserQuota: vi.fn(async () => ({ macUsed: 10, periodStart: new Date("2026-01-01T00:00:00Z"), @@ -60,8 +62,12 @@ const { monthlyBotMessagesPeriodStart: new Date("2026-01-01T00:00:00Z"), })), hset: vi.fn(async () => undefined), + eval: vi.fn(async () => 1), + tenantFindById: vi.fn(async () => undefined), + tenantFindByOwner: vi.fn(async () => undefined), userQuotaModel, countResults, + sumForTenant: vi.fn(async () => 0), } }) @@ -70,7 +76,6 @@ vi.mock("@chatbotx.io/database/client", () => ({ insert: dbInsert, select: dbSelect, query: { - tenantModel: { findFirst: findFirstTenant }, userQuotaModel: { findFirst: findFirstUserQuota }, }, }, @@ -106,12 +111,16 @@ vi.mock("@chatbotx.io/database/schema", () => ({ userQuotaModel, workspaceMacModel: {}, workspaceMemberModel: {}, - workspaceModel: { id: "workspace.id", ownerId: "workspace.ownerId" }, + workspaceModel: { + id: "workspace.id", + ownerId: "workspace.ownerId", + tenantId: "workspace.tenantId", + }, })) vi.mock("@chatbotx.io/redis", () => ({ cacheConnections: { - useExisting: vi.fn(async () => ({ hset })), + useExisting: vi.fn(async () => ({ eval: redisEval, hset })), }, distributedStore: { get: vi.fn(async () => null), @@ -123,19 +132,30 @@ vi.mock("@chatbotx.io/redis", () => ({ vi.mock("../src/keys", () => ({ isCloud: vi.fn(() => true) })) vi.mock("../src/logger", () => ({ logger: { warn: vi.fn(), error: vi.fn() } })) +vi.mock("@chatbotx.io/database/repositories/tenant", () => ({ + tenantRepository: { + findById: tenantFindById, + findByOwner: tenantFindByOwner, + }, +})) + +vi.mock("@chatbotx.io/database/repositories/workspace-mac", () => ({ + workspaceMacRepository: { sumForTenant }, +})) const { userQuotaService } = await import("../src/user-quota/service") beforeEach(() => { vi.clearAllMocks() - countResults.length = 0 - countDistinctTeamMembersForOwner.mockResolvedValue(2) findFirstUserQuota.mockResolvedValue({ macUsed: 10, periodStart: new Date("2026-01-01T00:00:00Z"), periodEnd: new Date("2026-02-01T00:00:00Z"), monthlyBotMessagesPeriodStart: new Date("2026-01-01T00:00:00Z"), }) + tenantFindById.mockResolvedValue(undefined) + tenantFindByOwner.mockResolvedValue(undefined) + sumForTenant.mockResolvedValue(0) vi.spyOn( userQuotaService, "countDistinctTeamMembersForOwner", @@ -152,8 +172,8 @@ describe("reconcileOwnerAfterTeardown", () => { teamMembersUsed: 0, workspacesUsed: 0, }) + tenantFindByOwner.mockResolvedValueOnce(undefined) const ownerPool = vi.spyOn(userQuotaService, "reconcileOwnerPoolUsage") - findFirstTenant.mockResolvedValueOnce(undefined) await userQuotaService.reconcileOwnerAfterTeardown("owner-1") @@ -166,7 +186,7 @@ describe("reconcileOwnerAfterTeardown", () => { const ownerPool = vi .spyOn(userQuotaService, "reconcileOwnerPoolUsage") .mockResolvedValue(undefined) - findFirstTenant.mockResolvedValueOnce({ + tenantFindByOwner.mockResolvedValueOnce({ id: "tenant-1", ownerId: "owner-1", status: "active", @@ -177,6 +197,54 @@ describe("reconcileOwnerAfterTeardown", () => { expect(ownerPool).toHaveBeenCalledWith("owner-1", "tenant-1") expect(selfUsage).toHaveBeenCalledWith("owner-1") }) + + test("uses the reseller tenant rather than the root tenant for root-owned workspaces", async () => { + const ownerPool = vi + .spyOn(userQuotaService, "reconcileOwnerPoolUsage") + .mockResolvedValue(undefined) + tenantFindByOwner.mockResolvedValueOnce({ + id: "reseller-tenant", + ownerId: "reseller-owner", + status: "active", + }) + + await userQuotaService.reconcileOwnerAfterTeardown("reseller-owner", "1") + + expect(ownerPool).toHaveBeenCalledWith("reseller-owner", "reseller-tenant") + }) +}) + +describe("reconcileOwnerPoolUsage", () => { + test("does not restore MAC after a quota rollover races the reconcile", async () => { + await userQuotaService.reconcileOwnerPoolUsage("owner-1", "tenant-1") + + const builder = dbInsert.mock.results.at(-1)?.value + const conflict = builder?.onConflictDoUpdate.mock.calls[0]?.[0] as { + set: { macUsed: { sql: string } } + } + expect(conflict.set.macUsed.sql).toContain("WHEN ? IS NOT DISTINCT FROM ?") + expect(conflict.set.macUsed.sql).toContain("ELSE ?") + }) + + test("delegates a period-mismatched live MAC raise to the atomic Redis guard", async () => { + redisEval.mockResolvedValueOnce(0) + + await userQuotaService.raiseLiveMac({ + userId: "owner-1", + value: 17, + periodIso: "2026-02-01T00:00:00.000Z", + }) + + expect(redisEval).toHaveBeenCalledWith( + expect.any(String), + 1, + expect.any(String), + "macPeriodStart", + "2026-02-01T00:00:00.000Z", + "mac", + "17", + ) + }) }) describe("reconcileUserSelfUsage", () => { diff --git a/packages/business/__tests__/workspace-bot-message-usage.test.ts b/packages/business/__tests__/workspace-bot-message-usage.test.ts new file mode 100644 index 0000000000..2931892975 --- /dev/null +++ b/packages/business/__tests__/workspace-bot-message-usage.test.ts @@ -0,0 +1,52 @@ +import { beforeEach, describe, expect, test, vi } from "vitest" + +const mocks = vi.hoisted(() => ({ + getForUser: vi.fn(), + increment: vi.fn(), +})) + +vi.mock( + "@chatbotx.io/database/repositories/workspace-bot-message-usage", + () => ({ + workspaceBotMessageUsageRepository: { increment: mocks.increment }, + }), +) + +vi.mock("../src/user-quota/service", () => ({ + userQuotaService: { getForUser: mocks.getForUser }, +})) + +const { workspaceBotMessageUsageService } = await import( + "../src/workspace-bot-message-usage/service" +) + +describe("WorkspaceBotMessageUsageService.increment", () => { + beforeEach(() => { + vi.clearAllMocks() + mocks.getForUser.mockResolvedValue({ + periodStart: new Date("2026-07-01T00:00:00.000Z"), + }) + mocks.increment.mockResolvedValue(undefined) + }) + + test("uses the worker-resolved workspace ownership without querying workspace again", async () => { + await workspaceBotMessageUsageService.increment({ + count: 3, + ownerId: "owner-1", + tenantId: "tenant-1", + workspaceId: "workspace-1", + }) + + expect(mocks.getForUser).toHaveBeenCalledWith("owner-1") + expect(mocks.increment).toHaveBeenCalledWith( + expect.objectContaining({ + count: 3, + ownerId: "owner-1", + periodEnd: expect.any(Date), + periodStart: expect.any(Date), + tenantId: "tenant-1", + workspaceId: "workspace-1", + }), + ) + }) +}) diff --git a/packages/business/__tests__/workspace-deletion-record.test.ts b/packages/business/__tests__/workspace-deletion-record.test.ts new file mode 100644 index 0000000000..6b38653817 --- /dev/null +++ b/packages/business/__tests__/workspace-deletion-record.test.ts @@ -0,0 +1,39 @@ +import { + workspaceDeletionRecordDetailsSchema, + workspaceDeletionRecordUsageSnapshotSchema, +} from "@chatbotx.io/database/schema" +import { describe, expect, test } from "vitest" + +describe("workspace deletion record schemas", () => { + test("round-trips ISO timestamps stored in JSON evidence", () => { + const periodStart = "2026-10-01T00:00:00.000Z" + const periodEnd = "2026-11-01T00:00:00.000Z" + expect( + workspaceDeletionRecordUsageSnapshotSchema.parse({ + botMessages: [], + channels: 0, + contacts: 0, + mac: [{ count: 1, periodStart, periodEnd }], + ownerQuota: null, + teamMembers: 0, + }).mac[0]?.periodStart, + ).toBe(periodStart) + expect( + workspaceDeletionRecordDetailsSchema.parse({ + channels: [], + members: [], + owner: { email: null, id: "1", name: null, tenantId: null }, + plan: null, + requestedBy: null, + workspace: { + createdAt: periodStart, + id: "1", + language: "en", + logo: null, + name: "A", + timezone: "UTC", + }, + }).workspace.createdAt, + ).toBe(periodStart) + }) +}) diff --git a/packages/business/src/index.ts b/packages/business/src/index.ts index 1b054611f8..4d7a6287e5 100644 --- a/packages/business/src/index.ts +++ b/packages/business/src/index.ts @@ -172,6 +172,7 @@ export * from "./working-hours" export * from "./workspace" export * from "./workspace-api-token" export * from "./workspace-bot-message-usage" +export * from "./workspace-deletion-record" export * from "./workspace-lifecycle" export * from "./workspace-lifecycle/with-blocked-owner-guard" export * from "./workspace-member" diff --git a/packages/business/src/user-quota/service.ts b/packages/business/src/user-quota/service.ts index 797de3ed26..988be586ab 100644 --- a/packages/business/src/user-quota/service.ts +++ b/packages/business/src/user-quota/service.ts @@ -12,6 +12,7 @@ import { ACTIVE_CONNECTION_STATUSES, planStatuses, } from "@chatbotx.io/database/partials" +import { tenantRepository } from "@chatbotx.io/database/repositories/tenant" import { workspaceMacRepository } from "@chatbotx.io/database/repositories/workspace-mac" import { connectionModel, @@ -61,6 +62,22 @@ const BOOTSTRAP_TRIAL_FALLBACK = { monthlyBotMessagesLimit: 0, } as const +const RAISE_LIVE_MAC_LUA = ` +local storedPeriod = redis.call("HGET", KEYS[1], ARGV[1]) +if storedPeriod ~= ARGV[2] then + return 0 +end + +local currentValue = tonumber(redis.call("HGET", KEYS[1], ARGV[3])) +local nextValue = tonumber(ARGV[4]) +if not currentValue or nextValue > currentValue then + redis.call("HSET", KEYS[1], ARGV[3], ARGV[4]) + return 1 +end + +return 0 +` + interface DefaultPlanSnapshot { botMessagesLimit: number | null channelsLimit: number | null @@ -834,6 +851,13 @@ class UserQuotaService extends BaseService { tenantId: string, ): Promise { const client = await cacheConnections.useExisting() + // Read before calculating the ledger sum. The guarded upsert below then + // leaves a row the quota worker rolled over unchanged. + const ownerQuota = await db.query.userQuotaModel.findFirst({ + where: { userId: ownerId }, + columns: { periodStart: true }, + }) + const periodStart = ownerQuota?.periodStart ?? null const [ { contactsUsed, workspacesUsed, channelsUsed }, @@ -842,7 +866,7 @@ class UserQuotaService extends BaseService { ] = await Promise.all([ this.countWorkspaceScopedUsage(eq(workspaceModel.tenantId, tenantId)), this.countDistinctTeamMembers({ tenantId }), - workspaceMacRepository.sumBillingMacForTenant(tenantId), + workspaceMacRepository.sumForTenant(tenantId), ]) await db @@ -854,28 +878,28 @@ class UserQuotaService extends BaseService { workspacesUsed, channelsUsed, macUsed, + periodStart, syncedAt: new Date(), }) .onConflictDoUpdate({ target: userQuotaModel.userId, set: { - // Capacity metrics are authoritative current counts. Billing MAC is - // monotonic for the current quota row and resets only at rollover. contactsUsed, teamMembersUsed, workspacesUsed, channelsUsed, - macUsed: sql`GREATEST(${userQuotaModel.macUsed}, ${macUsed})`, + macUsed: sql`CASE + WHEN ${userQuotaModel.periodStart} IS NOT DISTINCT FROM ${periodStart} + THEN GREATEST(${userQuotaModel.macUsed}, ${macUsed}) + ELSE ${userQuotaModel.macUsed} + END`, syncedAt: new Date(), updatedAt: sql`CURRENT_TIMESTAMP`, }, }) - // Capacity metrics are current counts. MAC is billing consumption and must - // never be lowered by a same-period reconcile. - const liveKey = this.store.liveKey(ownerId) await client.hset( - liveKey, + this.store.liveKey(ownerId), "contacts", String(contactsUsed), "teamMembers", @@ -885,9 +909,12 @@ class UserQuotaService extends BaseService { "channels", String(channelsUsed), ) - const liveMac = Number(await client.hget(liveKey, "mac")) - if (!Number.isFinite(liveMac) || macUsed > liveMac) { - await client.hset(liveKey, "mac", String(macUsed)) + if (periodStart) { + await this.raiseLiveMac({ + userId: ownerId, + value: macUsed, + periodIso: periodStart.toISOString(), + }) } await this.store.invalidate(ownerId) @@ -905,16 +932,10 @@ class UserQuotaService extends BaseService { const tenant = tenantId && tenantId !== ROOT_TENANT_ID - ? await db.query.tenantModel.findFirst({ - where: { id: tenantId }, - columns: { id: true, ownerId: true, status: true }, - }) - : await db.query.tenantModel.findFirst({ - where: { ownerId }, - columns: { id: true, ownerId: true, status: true }, - }) + ? await tenantRepository.findById(tenantId) + : await tenantRepository.findByOwner(ownerId) if (tenant?.status === "active" && tenant.ownerId) { - await this.reconcileOwnerPoolUsage(tenant.ownerId, tenantId ?? tenant.id) + await this.reconcileOwnerPoolUsage(tenant.ownerId, tenant.id) } } @@ -970,7 +991,7 @@ class UserQuotaService extends BaseService { * shape, same "assigned directly, NOT GREATEST" semantics so deletions * free quota). Unlike the pool path, the live-counter `hset` here has NO * `mac` field — mac is reconciled separately by the caller via - * `persistMacUsed`/the ledger reconcile, using the markers this method + * `raiseMacUsed`/the ledger reconcile, using the markers this method * returns from one round-trip (`macUsed`, `periodStart`, `periodEnd`, * `monthlyBotMessagesPeriodStart`). */ @@ -1074,6 +1095,28 @@ class UserQuotaService extends BaseService { }) } + /** + * Raises the live MAC counter only when it still belongs to the quota period + * read by the caller. Lua keeps the period check and monotonic write atomic, + * so an increment cannot be lost between a separate HGET and HSET. + */ + async raiseLiveMac(input: { + userId: string + value: number + periodIso: string + }): Promise { + const client = await cacheConnections.useExisting() + await client.eval( + RAISE_LIVE_MAC_LUA, + 1, + this.store.liveKey(input.userId), + "macPeriodStart", + input.periodIso, + "mac", + String(input.value), + ) + } + /** * `sync-user-quota.ts` reconcileMonthlyBotMessages: applies the resolved * reset/stamp decision. The `reset` branch zeroes `monthlyBotMessagesUsed` diff --git a/packages/business/src/workspace-bot-message-usage/service.ts b/packages/business/src/workspace-bot-message-usage/service.ts index 97c58b723e..be3e721860 100644 --- a/packages/business/src/workspace-bot-message-usage/service.ts +++ b/packages/business/src/workspace-bot-message-usage/service.ts @@ -1,7 +1,7 @@ import { anchoredPeriod } from "@chatbotx.io/analytics" -import { db } from "@chatbotx.io/database/client" -import { upsertWorkspaceBotMessageUsage } from "@chatbotx.io/database/repositories/workspace-bot-message-usage" +import { workspaceBotMessageUsageRepository } from "@chatbotx.io/database/repositories/workspace-bot-message-usage" import { BaseService } from "../base.service" +import { userQuotaService } from "../user-quota/service" const calendarPeriod = (now: Date) => { const start = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1)) @@ -12,31 +12,22 @@ const calendarPeriod = (now: Date) => { class WorkspaceBotMessageUsageService extends BaseService { async increment(input: { count: number + ownerId: string + tenantId: string workspaceId: string }): Promise { - const workspace = await db.query.workspaceModel.findFirst({ - where: { id: input.workspaceId }, - columns: { ownerId: true, tenantId: true }, - }) - if (!workspace) { - return - } - - const quota = await db.query.userQuotaModel.findFirst({ - where: { userId: workspace.ownerId }, - columns: { periodStart: true }, - }) + const quota = await userQuotaService.getForUser(input.ownerId) const now = new Date() const period = quota?.periodStart ? anchoredPeriod(now, quota.periodStart) : calendarPeriod(now) - await upsertWorkspaceBotMessageUsage({ + await workspaceBotMessageUsageRepository.increment({ count: input.count, - ownerId: workspace.ownerId, + ownerId: input.ownerId, periodEnd: period.end, periodStart: period.start, - tenantId: workspace.tenantId, + tenantId: input.tenantId, workspaceId: input.workspaceId, }) } diff --git a/packages/business/src/workspace-deletion-record/index.ts b/packages/business/src/workspace-deletion-record/index.ts new file mode 100644 index 0000000000..9376fea807 --- /dev/null +++ b/packages/business/src/workspace-deletion-record/index.ts @@ -0,0 +1 @@ +export * from "./service" diff --git a/packages/business/src/workspace-deletion-record/service.ts b/packages/business/src/workspace-deletion-record/service.ts new file mode 100644 index 0000000000..f4aea12433 --- /dev/null +++ b/packages/business/src/workspace-deletion-record/service.ts @@ -0,0 +1,165 @@ +import type { DatabaseClient } from "@chatbotx.io/database/client" +import { workspaceDeletionRecordRepository } from "@chatbotx.io/database/repositories/workspace-deletion-record" +import { + type WorkspaceDeletionRecordUsageSnapshot, + workspaceDeletionRecordDetailsSchema, + workspaceDeletionRecordUsageSnapshotSchema, +} from "@chatbotx.io/database/schema" +import { BaseService } from "../base.service" + +const toIso = (value: Date): string => value.toISOString() + +class WorkspaceDeletionRecordService extends BaseService { + async recordForWorkspace(input: { + workspace: { id: string; ownerId: string; tenantId: string } + tx?: DatabaseClient + }): Promise< + | { created: boolean; usageSnapshot: WorkspaceDeletionRecordUsageSnapshot } + | undefined + > { + const sources = await workspaceDeletionRecordRepository.readSnapshotSources( + { + ownerId: input.workspace.ownerId, + workspaceId: input.workspace.id, + }, + input.tx, + ) + if (!sources) { + return + } + + const usageSnapshot = workspaceDeletionRecordUsageSnapshotSchema.parse({ + botMessages: sources.botMessages.map((usage) => ({ + count: usage.count, + periodEnd: toIso(usage.periodEnd), + periodStart: toIso(usage.periodStart), + })), + channels: sources.inboxes.length, + contacts: sources.contacts, + mac: sources.mac.map((usage) => ({ + count: usage.count, + periodEnd: toIso(usage.periodEnd), + periodStart: toIso(usage.periodStart), + })), + ownerQuota: sources.quota + ? { + botMessagesUsed: sources.quota.botMessagesUsed, + macUsed: sources.quota.macUsed, + monthlyBotMessagesUsed: sources.quota.monthlyBotMessagesUsed, + periodEnd: sources.quota.periodEnd + ? toIso(sources.quota.periodEnd) + : null, + periodStart: sources.quota.periodStart + ? toIso(sources.quota.periodStart) + : null, + planName: sources.quota.planName, + planStatus: sources.quota.planStatus, + } + : null, + teamMembers: sources.members.length, + }) + const details = workspaceDeletionRecordDetailsSchema.parse({ + channels: sources.inboxes, + members: sources.members, + owner: sources.owner + ? { ...sources.owner, id: input.workspace.ownerId } + : { + email: null, + id: input.workspace.ownerId, + name: null, + tenantId: null, + }, + plan: sources.quota + ? { + periodEnd: sources.quota.periodEnd + ? toIso(sources.quota.periodEnd) + : null, + periodStart: sources.quota.periodStart + ? toIso(sources.quota.periodStart) + : null, + planName: sources.quota.planName, + planStatus: sources.quota.planStatus, + } + : null, + requestedBy: sources.requestedBy + ? { + ...sources.requestedBy, + id: sources.workspace.deletionRequestedById, + via: "ui" as const, + } + : null, + workspace: { + createdAt: toIso(sources.workspace.createdAt), + id: sources.workspace.id, + language: sources.workspace.language, + logo: sources.workspace.logo, + name: sources.workspace.name, + timezone: sources.workspace.timezone, + }, + }) + const created = await workspaceDeletionRecordRepository.insertIfAbsent( + { + deletionRequestedAt: sources.workspace.deletionRequestedAt, + deletionRequestedByEmail: sources.requestedBy?.email ?? null, + deletionRequestedById: sources.workspace.deletionRequestedById, + details, + ownerEmail: sources.owner?.email ?? null, + ownerId: input.workspace.ownerId, + scheduledDeletionAt: sources.workspace.scheduledDeletionAt, + tenantId: input.workspace.tenantId, + usageSnapshot, + workspaceId: input.workspace.id, + workspaceName: sources.workspace.name, + }, + input.tx, + ) + return { created, usageSnapshot } + } + + async markPurged(input: { + workspaceId: string + tx?: DatabaseClient + }): Promise { + await workspaceDeletionRecordRepository.markPurged( + input.workspaceId, + input.tx, + ) + } + + async listForOwner(input: { + ownerId: string + page: number + perPage: number + }) { + const result = await workspaceDeletionRecordRepository.listForOwner({ + ownerId: input.ownerId, + limit: input.perPage, + offset: (input.page - 1) * input.perPage, + }) + return { + data: result.data, + pageCount: Math.ceil(result.total / input.perPage), + } + } + + async listForAdmin(input: { + page: number + perPage: number + search?: string + tenantId?: string + }) { + const result = await workspaceDeletionRecordRepository.listForAdmin({ + limit: input.perPage, + offset: (input.page - 1) * input.perPage, + search: input.search, + tenantId: input.tenantId, + }) + return { + data: result.data, + pageCount: Math.ceil(result.total / input.perPage), + } + } +} + +export const workspaceDeletionRecordService = + new WorkspaceDeletionRecordService() diff --git a/packages/business/src/workspace/__tests__/service.test.ts b/packages/business/src/workspace/__tests__/service.test.ts index 2737eca090..5f7f4f1f92 100644 --- a/packages/business/src/workspace/__tests__/service.test.ts +++ b/packages/business/src/workspace/__tests__/service.test.ts @@ -33,10 +33,10 @@ vi.mock("../../workspace-usage/service", () => ({ }, })) -vi.mock("@chatbotx.io/database/repositories/workspace-deletion-record", () => ({ - workspaceDeletionRecordRepository: { - createForWorkspace: vi.fn(async () => undefined), +vi.mock("../../workspace-deletion-record/service", () => ({ + workspaceDeletionRecordService: { markPurged: vi.fn(async () => undefined), + recordForWorkspace: vi.fn(async () => undefined), }, })) diff --git a/packages/business/src/workspace/service.ts b/packages/business/src/workspace/service.ts index 3645196977..8a2281bc9e 100644 --- a/packages/business/src/workspace/service.ts +++ b/packages/business/src/workspace/service.ts @@ -13,7 +13,6 @@ import { type WorkspaceMemberPermissions, workspaceMemberRoles, } from "@chatbotx.io/database/partials" -import { workspaceDeletionRecordRepository } from "@chatbotx.io/database/repositories/workspace-deletion-record" import { ROOT_TENANT_ID, workspaceMemberModel, @@ -38,6 +37,7 @@ import { isCommunity } from "../keys" import { logger } from "../logger" import { quotaEnforcementService } from "../quota-enforcement/service" import { userQuotaService } from "../user-quota/service" +import { workspaceDeletionRecordService } from "../workspace-deletion-record/service" import { withPurgeTimeouts } from "../workspace-lifecycle/purge-batch" import { type WorkspaceTeardownIntegrations, @@ -551,10 +551,8 @@ class WorkspaceService extends BaseService { } private async writeDeletionRecord(workspace: DueWorkspace): Promise { - const record = await workspaceDeletionRecordRepository.createForWorkspace({ - ownerId: workspace.ownerId, - tenantId: workspace.tenantId, - workspaceId: workspace.id, + const record = await workspaceDeletionRecordService.recordForWorkspace({ + workspace, }) if (record?.created) { logger.info( @@ -582,6 +580,7 @@ class WorkspaceService extends BaseService { if (!fencedWorkspace) { return null } + await this.writeDeletionRecord(fencedWorkspace) await workspaceLifecycleService.freezeWorkspaceRuntime( fencedWorkspace.id, @@ -611,7 +610,6 @@ class WorkspaceService extends BaseService { for (const pendingRelease of pendingReleases) { await connectionStateService.releasePendingQuota(pendingRelease) } - await this.writeDeletionRecord(fencedWorkspace) // Drain high-volume child tables in small self-committing batches before // the FK cascade, so no single statement deletes millions of rows under lock. @@ -656,10 +654,10 @@ class WorkspaceService extends BaseService { .where(eq(workspaceModel.id, fencedWorkspace.id)) .returning({ id: workspaceModel.id }) if (deleted[0]) { - await workspaceDeletionRecordRepository.markPurged( - fencedWorkspace.id, + await workspaceDeletionRecordService.markPurged({ + workspaceId: fencedWorkspace.id, tx, - ) + }) } return deleted }, diff --git a/packages/database/package.json b/packages/database/package.json index 2717a9d87f..6e9be04596 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -66,6 +66,7 @@ "./repositories": "./src/repositories/index.ts", "./repositories/contact-activity": "./src/repositories/contact-activity/index.ts", "./repositories/contact-inbox-post": "./src/repositories/contact-inbox-post/index.ts", + "./repositories/tenant": "./src/repositories/tenant/index.ts", "./repositories/workspace": "./src/repositories/workspace/index.ts", "./repositories/workspace-mac": "./src/repositories/workspace-mac/index.ts", "./repositories/workspace-bot-message-usage": "./src/repositories/workspace-bot-message-usage/index.ts", diff --git a/packages/database/src/repositories/index.ts b/packages/database/src/repositories/index.ts index 8da456ecd3..5542917190 100644 --- a/packages/database/src/repositories/index.ts +++ b/packages/database/src/repositories/index.ts @@ -75,6 +75,7 @@ export * from "./sequence-dispatch" export * from "./tag-channel" export * from "./telegram-chat" export * from "./template-selectable-resource" +export * from "./tenant" export * from "./trigger" export * from "./user" export * from "./user-persistent-menu" diff --git a/packages/database/src/repositories/tenant/index.ts b/packages/database/src/repositories/tenant/index.ts new file mode 100644 index 0000000000..b1d08c5baf --- /dev/null +++ b/packages/database/src/repositories/tenant/index.ts @@ -0,0 +1 @@ +export * from "./repository" diff --git a/packages/database/src/repositories/tenant/repository.ts b/packages/database/src/repositories/tenant/repository.ts new file mode 100644 index 0000000000..31894a3bd0 --- /dev/null +++ b/packages/database/src/repositories/tenant/repository.ts @@ -0,0 +1,19 @@ +import { type DatabaseClient, db } from "../../client" + +class TenantRepository { + async findById(tenantId: string, client: DatabaseClient = db) { + return await client.query.tenantModel.findFirst({ + where: { id: tenantId }, + columns: { id: true, ownerId: true, status: true }, + }) + } + + async findByOwner(ownerId: string, client: DatabaseClient = db) { + return await client.query.tenantModel.findFirst({ + where: { ownerId }, + columns: { id: true, ownerId: true, status: true }, + }) + } +} + +export const tenantRepository = new TenantRepository() diff --git a/packages/database/src/repositories/workspace-bot-message-usage/repository.ts b/packages/database/src/repositories/workspace-bot-message-usage/repository.ts index 55108b867f..3638e28f44 100644 --- a/packages/database/src/repositories/workspace-bot-message-usage/repository.ts +++ b/packages/database/src/repositories/workspace-bot-message-usage/repository.ts @@ -1,28 +1,33 @@ import { type DatabaseClient, db, sql } from "../../client" import { workspaceBotMessageUsageModel } from "../../schema" -export const upsertWorkspaceBotMessageUsage = async ( - input: { - count: number - ownerId: string - periodEnd: Date - periodStart: Date - tenantId: string - workspaceId: string - }, - client: DatabaseClient = db, -): Promise => { - await client - .insert(workspaceBotMessageUsageModel) - .values(input) - .onConflictDoUpdate({ - target: [ - workspaceBotMessageUsageModel.workspaceId, - workspaceBotMessageUsageModel.periodStart, - ], - set: { - count: sql`${workspaceBotMessageUsageModel.count} + ${input.count}`, - updatedAt: sql`now()`, - }, - }) +class WorkspaceBotMessageUsageRepository { + async increment( + input: { + count: number + ownerId: string + periodEnd: Date + periodStart: Date + tenantId: string + workspaceId: string + }, + client: DatabaseClient = db, + ): Promise { + await client + .insert(workspaceBotMessageUsageModel) + .values(input) + .onConflictDoUpdate({ + target: [ + workspaceBotMessageUsageModel.workspaceId, + workspaceBotMessageUsageModel.periodStart, + ], + set: { + count: sql`${workspaceBotMessageUsageModel.count} + ${input.count}`, + updatedAt: sql`now()`, + }, + }) + } } + +export const workspaceBotMessageUsageRepository = + new WorkspaceBotMessageUsageRepository() diff --git a/packages/database/src/repositories/workspace-deletion-record/repository.ts b/packages/database/src/repositories/workspace-deletion-record/repository.ts index 36c915f738..63e00b9d98 100644 --- a/packages/database/src/repositories/workspace-deletion-record/repository.ts +++ b/packages/database/src/repositories/workspace-deletion-record/repository.ts @@ -1,4 +1,15 @@ -import { type DatabaseClient, db, eq } from "../../client" +import { + and, + count, + type DatabaseClient, + db, + desc, + eq, + ilike, + or, + type SQL, + sql, +} from "../../client" import { contactModel, inboxModel, @@ -8,24 +19,30 @@ import { workspaceMacModel, workspaceMemberModel, } from "../../schema" -import { - type WorkspaceDeletionRecordDetails, - type WorkspaceDeletionRecordUsageSnapshot, - workspaceDeletionRecordDetailsSchema, - workspaceDeletionRecordUsageSnapshotSchema, +import type { + WorkspaceDeletionRecordDetails, + WorkspaceDeletionRecordUsageSnapshot, } from "../../schema/workspace-deletion-record" +type CreateInput = { + deletionRequestedAt: Date | null + deletionRequestedByEmail: string | null + deletionRequestedById: string | null + details: WorkspaceDeletionRecordDetails + ownerEmail: string | null + ownerId: string + scheduledDeletionAt: Date | null + tenantId: string + usageSnapshot: WorkspaceDeletionRecordUsageSnapshot + workspaceId: string + workspaceName: string +} + class WorkspaceDeletionRecordRepository { - async createForWorkspace( - input: { ownerId: string; tenantId: string; workspaceId: string }, + async readSnapshotSources( + input: { ownerId: string; workspaceId: string }, client: DatabaseClient = db, - ): Promise< - | { - created: boolean - usageSnapshot: WorkspaceDeletionRecordUsageSnapshot - } - | undefined - > { + ) { const workspace = await client.query.workspaceModel.findFirst({ where: { id: input.workspaceId }, }) @@ -41,7 +58,6 @@ class WorkspaceDeletionRecordRepository { mac, botMessages, contacts, - channels, quota, ] = await Promise.all([ client.query.userModel.findFirst({ @@ -95,7 +111,6 @@ class WorkspaceDeletionRecordRepository { contactModel, eq(contactModel.workspaceId, input.workspaceId), ), - client.$count(inboxModel, eq(inboxModel.workspaceId, input.workspaceId)), client.query.userQuotaModel.findFirst({ where: { userId: input.ownerId }, columns: { @@ -109,61 +124,30 @@ class WorkspaceDeletionRecordRepository { }, }), ]) - const usageSnapshot: WorkspaceDeletionRecordUsageSnapshot = { + + return { botMessages, - channels, contacts, + inboxes, mac, - ownerQuota: quota ?? null, - teamMembers: members.length, - } - const details: WorkspaceDeletionRecordDetails = { - channels: inboxes, members, - owner: owner - ? { ...owner, id: input.ownerId } - : { email: null, id: input.ownerId, name: null, tenantId: null }, - plan: quota - ? { - periodEnd: quota.periodEnd, - periodStart: quota.periodStart, - planName: quota.planName, - planStatus: quota.planStatus, - } - : null, - requestedBy: requestedBy - ? { ...requestedBy, id: workspace.deletionRequestedById, via: "ui" } - : null, - workspace: { - createdAt: workspace.createdAt, - id: workspace.id, - language: workspace.language, - logo: workspace.logo, - name: workspace.name, - timezone: workspace.timezone, - }, + owner, + quota, + requestedBy, + workspace, } - const validatedUsageSnapshot = - workspaceDeletionRecordUsageSnapshotSchema.parse(usageSnapshot) - const validatedDetails = workspaceDeletionRecordDetailsSchema.parse(details) + } + + async insertIfAbsent( + input: CreateInput, + client: DatabaseClient = db, + ): Promise { const [record] = await client .insert(workspaceDeletionRecordModel) - .values({ - deletionRequestedAt: workspace.deletionRequestedAt, - deletionRequestedByEmail: requestedBy?.email, - deletionRequestedById: workspace.deletionRequestedById, - details: validatedDetails, - ownerEmail: owner?.email, - ownerId: input.ownerId, - scheduledDeletionAt: workspace.scheduledDeletionAt, - tenantId: input.tenantId, - usageSnapshot: validatedUsageSnapshot, - workspaceId: input.workspaceId, - workspaceName: workspace.name, - }) + .values(input) .onConflictDoNothing() .returning({ id: workspaceDeletionRecordModel.id }) - return { created: Boolean(record), usageSnapshot: validatedUsageSnapshot } + return Boolean(record) } async markPurged( @@ -175,6 +159,65 @@ class WorkspaceDeletionRecordRepository { .set({ purgedAt: new Date() }) .where(eq(workspaceDeletionRecordModel.workspaceId, workspaceId)) } + + async listForOwner(input: { + ownerId: string + limit: number + offset: number + }) { + const where = eq(workspaceDeletionRecordModel.ownerId, input.ownerId) + const [data, total] = await Promise.all([ + db + .select() + .from(workspaceDeletionRecordModel) + .where(where) + .orderBy(desc(workspaceDeletionRecordModel.createdAt)) + .limit(input.limit) + .offset(input.offset), + db + .select({ value: count() }) + .from(workspaceDeletionRecordModel) + .where(where), + ]) + return { data, total: total[0]?.value ?? 0 } + } + + async listForAdmin(input: { + limit: number + offset: number + search?: string + tenantId?: string + }) { + const conditions: SQL[] = [sql`TRUE`] + if (input.tenantId) { + conditions.push(eq(workspaceDeletionRecordModel.tenantId, input.tenantId)) + } + if (input.search) { + const pattern = `%${input.search}%` + const searchCondition = or( + ilike(workspaceDeletionRecordModel.workspaceName, pattern), + ilike(workspaceDeletionRecordModel.ownerEmail, pattern), + ) + if (searchCondition) { + conditions.push(searchCondition) + } + } + const where = and(...conditions) + const [data, total] = await Promise.all([ + db + .select() + .from(workspaceDeletionRecordModel) + .where(where) + .orderBy(desc(workspaceDeletionRecordModel.createdAt)) + .limit(input.limit) + .offset(input.offset), + db + .select({ value: count() }) + .from(workspaceDeletionRecordModel) + .where(where), + ]) + return { data, total: total[0]?.value ?? 0 } + } } export const workspaceDeletionRecordRepository = diff --git a/packages/database/src/repositories/workspace-mac/repository.ts b/packages/database/src/repositories/workspace-mac/repository.ts index fd42889580..75c169e082 100644 --- a/packages/database/src/repositories/workspace-mac/repository.ts +++ b/packages/database/src/repositories/workspace-mac/repository.ts @@ -14,7 +14,7 @@ import { import { workspaceMacModel, workspaceModel } from "../../schema" class WorkspaceMacRepository { - async sumBillingMacForTenant( + async sumForTenant( tenantId: string, client: DatabaseClient = db, ): Promise { @@ -41,6 +41,43 @@ class WorkspaceMacRepository { return Number(row?.total ?? 0) } + + async sumForOwner( + input: { + ownerId: string + periodStart: Date | null + cumulative: boolean + }, + client: DatabaseClient = db, + ): Promise { + if (!(input.cumulative || input.periodStart)) { + return 0 + } + + const ownedWorkspaces = client + .select({ id: workspaceModel.id }) + .from(workspaceModel) + .where(eq(workspaceModel.ownerId, input.ownerId)) + const conditions = [ + or( + eq(workspaceMacModel.ownerId, input.ownerId), + and( + isNull(workspaceMacModel.ownerId), + inArray(workspaceMacModel.workspaceId, ownedWorkspaces), + ), + ), + ] + if (!input.cumulative && input.periodStart) { + conditions.push(eq(workspaceMacModel.periodStart, input.periodStart)) + } + + const [row] = await client + .select({ total: sum(workspaceMacModel.macCount) }) + .from(workspaceMacModel) + .where(and(...conditions)) + + return Number(row?.total ?? 0) + } } export const workspaceMacRepository = new WorkspaceMacRepository() diff --git a/packages/database/src/schema/workspace-deletion-record.ts b/packages/database/src/schema/workspace-deletion-record.ts index c1241ee5c1..5642e08f7e 100644 --- a/packages/database/src/schema/workspace-deletion-record.ts +++ b/packages/database/src/schema/workspace-deletion-record.ts @@ -13,17 +13,19 @@ import { timestampConfig, } from "../partials/shared" +const timestampSchema = z.iso.datetime() + const periodUsageSchema = z.object({ count: z.number().int(), - periodEnd: z.date(), - periodStart: z.date(), + periodEnd: timestampSchema, + periodStart: timestampSchema, }) const quotaSnapshotSchema = z.object({ botMessagesUsed: z.number().int(), macUsed: z.number().int(), monthlyBotMessagesUsed: z.number().int(), - periodEnd: z.date().nullable(), - periodStart: z.date().nullable(), + periodEnd: timestampSchema.nullable(), + periodStart: timestampSchema.nullable(), planName: z.string().nullable(), planStatus: z.string().nullable(), }) @@ -65,8 +67,8 @@ export const workspaceDeletionRecordDetailsSchema = z.object({ }), plan: z .object({ - periodEnd: z.date().nullable(), - periodStart: z.date().nullable(), + periodEnd: timestampSchema.nullable(), + periodStart: timestampSchema.nullable(), planName: z.string().nullable(), planStatus: z.string().nullable(), }) @@ -80,7 +82,7 @@ export const workspaceDeletionRecordDetailsSchema = z.object({ }) .nullable(), workspace: z.object({ - createdAt: z.date(), + createdAt: timestampSchema, id: z.string(), language: z.string(), logo: z.string().nullable(), From 2e123e0f8192090cdc85179db3375d6fa0e5f9cf Mon Sep 17 00:00:00 2001 From: Real Codesiman Date: Sun, 25 Oct 2026 08:54:31 +0700 Subject: [PATCH 5/7] fix(workspace): retain deletion record evidence --- apps/builder/AGENTS.md | 9 + .../__tests__/list-my-workspaces-api.test.ts | 2 + apps/builder/messages/ar.json | 17 + apps/builder/messages/az.json | 17 + apps/builder/messages/da.json | 17 + apps/builder/messages/de.json | 17 + apps/builder/messages/en.json | 17 + apps/builder/messages/es.json | 17 + apps/builder/messages/fi.json | 17 + apps/builder/messages/fr.json | 17 + apps/builder/messages/he.json | 17 + apps/builder/messages/id.json | 17 + apps/builder/messages/it.json | 17 + apps/builder/messages/ja.json | 17 + apps/builder/messages/nl.json | 17 + apps/builder/messages/pt-BR.json | 17 + apps/builder/messages/pt-PT.json | 17 + apps/builder/messages/ro.json | 17 + apps/builder/messages/sv.json | 17 + apps/builder/messages/tr.json | 17 + apps/builder/messages/vi.json | 17 + apps/builder/messages/zh-CN.json | 17 + apps/builder/messages/zh-TW.json | 17 + .../src/app/admin/workspaces/deleted/page.tsx | 32 +- apps/builder/src/app/page.tsx | 22 +- .../admin-workspaces-table.tsx | 9 +- .../deleted-workspaces-table.tsx | 148 +- .../admin-workspaces/schema/deleted-query.ts | 11 + .../admin/components/admin-sidebar.tsx | 5 + .../components/deleted-workspaces.tsx | 13 +- .../components/deletion-record-evidence.tsx | 294 + .../migration.sql | 2 + .../snapshot.json | 63308 ++++++++++++++++ .../workspace-deletion-record/repository.ts | 31 +- .../src/schema/workspace-deletion-record.ts | 4 - 35 files changed, 64150 insertions(+), 97 deletions(-) create mode 100644 apps/builder/AGENTS.md create mode 100644 apps/builder/src/features/admin-workspaces/schema/deleted-query.ts create mode 100644 apps/builder/src/features/workspaces/components/deletion-record-evidence.tsx create mode 100644 packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql create mode 100644 packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/snapshot.json diff --git a/apps/builder/AGENTS.md b/apps/builder/AGENTS.md new file mode 100644 index 0000000000..643577dfae --- /dev/null +++ b/apps/builder/AGENTS.md @@ -0,0 +1,9 @@ + + +# This is NOT the Next.js you know + +This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. + +This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. + + diff --git a/apps/builder/__tests__/list-my-workspaces-api.test.ts b/apps/builder/__tests__/list-my-workspaces-api.test.ts index 53d2dd522e..e234b6331a 100644 --- a/apps/builder/__tests__/list-my-workspaces-api.test.ts +++ b/apps/builder/__tests__/list-my-workspaces-api.test.ts @@ -64,6 +64,8 @@ vi.mock("@chatbotx.io/database/schema", () => ({ name: z.string(), token: z.string().nullable(), }), + workspaceDeletionRecordDetailsSchema: z.object({}), + workspaceDeletionRecordUsageSnapshotSchema: z.object({}), workspaceModel: {}, })) diff --git a/apps/builder/messages/ar.json b/apps/builder/messages/ar.json index 575ab266d9..9e564c049d 100644 --- a/apps/builder/messages/ar.json +++ b/apps/builder/messages/ar.json @@ -5869,6 +5869,23 @@ "searchPlaceholder": "ابحث بالاسم أو بريد المالك الإلكتروني أو المعرف", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/az.json b/apps/builder/messages/az.json index 679eddbb01..69e81f5481 100644 --- a/apps/builder/messages/az.json +++ b/apps/builder/messages/az.json @@ -7127,6 +7127,23 @@ "searchPlaceholder": "Ada, sahibin e-poçtuna və ya ID-yə görə axtarış", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/da.json b/apps/builder/messages/da.json index 89d243a405..dcfdde10da 100644 --- a/apps/builder/messages/da.json +++ b/apps/builder/messages/da.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Søg efter navn, ejerens e-mail eller id", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/de.json b/apps/builder/messages/de.json index 11a2aa81b4..6fe1861a25 100644 --- a/apps/builder/messages/de.json +++ b/apps/builder/messages/de.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Suche nach Name, Besitzer-E-Mail oder ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/en.json b/apps/builder/messages/en.json index b53089b140..5cb71a964d 100644 --- a/apps/builder/messages/en.json +++ b/apps/builder/messages/en.json @@ -7127,6 +7127,23 @@ "searchPlaceholder": "Search by name, owner email or ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/es.json b/apps/builder/messages/es.json index 4f67624153..b08fa8545b 100644 --- a/apps/builder/messages/es.json +++ b/apps/builder/messages/es.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Buscar por nombre, correo del propietario o ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/fi.json b/apps/builder/messages/fi.json index ef4016f467..65aa850b9d 100644 --- a/apps/builder/messages/fi.json +++ b/apps/builder/messages/fi.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Hae nimen, omistajan sähköpostin tai tunnuksen perusteella", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/fr.json b/apps/builder/messages/fr.json index 72735b664d..c002b0447d 100644 --- a/apps/builder/messages/fr.json +++ b/apps/builder/messages/fr.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Rechercher par nom, e-mail du propriétaire ou ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/he.json b/apps/builder/messages/he.json index eef346d63d..f04b9e684c 100644 --- a/apps/builder/messages/he.json +++ b/apps/builder/messages/he.json @@ -4123,6 +4123,23 @@ "searchPlaceholder": "חפש לפי שם, אימייל של הבעלים או מזהה", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/id.json b/apps/builder/messages/id.json index 33463edba4..6c71d8cf3d 100644 --- a/apps/builder/messages/id.json +++ b/apps/builder/messages/id.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Cari berdasarkan nama, email pemilik, atau ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/it.json b/apps/builder/messages/it.json index 0eba6cdda3..269574a438 100644 --- a/apps/builder/messages/it.json +++ b/apps/builder/messages/it.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Cerca per nome, email del proprietario o ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/ja.json b/apps/builder/messages/ja.json index 3069e92c3c..53c4bb591c 100644 --- a/apps/builder/messages/ja.json +++ b/apps/builder/messages/ja.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "名前、オーナーのメール、IDで検索", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/nl.json b/apps/builder/messages/nl.json index ecf6d11d19..3fd6632ecb 100644 --- a/apps/builder/messages/nl.json +++ b/apps/builder/messages/nl.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Zoeken op naam, e-mailadres eigenaar of ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/pt-BR.json b/apps/builder/messages/pt-BR.json index 87e7ef7124..16091f0b39 100644 --- a/apps/builder/messages/pt-BR.json +++ b/apps/builder/messages/pt-BR.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Pesquisar por nome, e-mail do proprietário ou ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/pt-PT.json b/apps/builder/messages/pt-PT.json index bd86ae37f6..a0ea2c57ca 100644 --- a/apps/builder/messages/pt-PT.json +++ b/apps/builder/messages/pt-PT.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Pesquisar por nome, email do proprietário ou ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/ro.json b/apps/builder/messages/ro.json index 8478ea3602..ff34f6b20d 100644 --- a/apps/builder/messages/ro.json +++ b/apps/builder/messages/ro.json @@ -6521,6 +6521,23 @@ "searchPlaceholder": "Căutați după nume, e-mailul proprietarului sau ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/sv.json b/apps/builder/messages/sv.json index 25f18e4017..d2eae36693 100644 --- a/apps/builder/messages/sv.json +++ b/apps/builder/messages/sv.json @@ -5414,6 +5414,23 @@ "searchPlaceholder": "Sök efter namn, ägarens e-post eller ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/tr.json b/apps/builder/messages/tr.json index a8832a4261..635bde9b16 100644 --- a/apps/builder/messages/tr.json +++ b/apps/builder/messages/tr.json @@ -6258,6 +6258,23 @@ "searchPlaceholder": "Ada, sahibinin e-postasına veya kimliğe göre ara", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/vi.json b/apps/builder/messages/vi.json index 48f9ce60d7..371a1cafc6 100644 --- a/apps/builder/messages/vi.json +++ b/apps/builder/messages/vi.json @@ -6487,6 +6487,23 @@ "searchPlaceholder": "Tìm kiếm theo tên, email chủ sở hữu hoặc ID", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/zh-CN.json b/apps/builder/messages/zh-CN.json index 7947f2c6f4..b4cd3ef4dc 100644 --- a/apps/builder/messages/zh-CN.json +++ b/apps/builder/messages/zh-CN.json @@ -5414,6 +5414,23 @@ "searchPlaceholder": "按名称、所有者邮箱或 ID 搜索", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/messages/zh-TW.json b/apps/builder/messages/zh-TW.json index 96b925f626..8b2cf49df8 100644 --- a/apps/builder/messages/zh-TW.json +++ b/apps/builder/messages/zh-TW.json @@ -6304,6 +6304,23 @@ "searchPlaceholder": "依名稱、擁有者電子郵件或 ID 搜尋", "descriptionConsentDisabled": "All workspaces can be opened by platform administrators.", "supportAccessible": "Accessible", + "periodStart": "Period start", + "periodEnd": "Period end", + "requestedBy": "Requested by", + "workspaceId": "Workspace ID", + "language": "Language", + "planSnapshot": "Plan at deletion", + "ownerQuota": "Owner quota", + "usagePeriods": "Usage periods", + "deletedTitle": "Deleted workspaces", + "deletedDescription": "Purge evidence for deleted workspaces.", + "purgedAt": "Purged at", + "deletionRequestedAt": "Deletion requested at", + "scheduledDeletionAt": "Scheduled deletion at", + "evidence": "Evidence", + "usage": "Usage snapshot", + "members": "Members", + "notAvailable": "Not available", "createButton": "Create workspace", "createTitle": "Create workspace for an owner", "createDescription": "Creates a workspace for the owner's email, adding any member emails you list. A new email gets a mailed temporary password.", diff --git a/apps/builder/src/app/admin/workspaces/deleted/page.tsx b/apps/builder/src/app/admin/workspaces/deleted/page.tsx index 63618b30f2..a68256dcdd 100644 --- a/apps/builder/src/app/admin/workspaces/deleted/page.tsx +++ b/apps/builder/src/app/admin/workspaces/deleted/page.tsx @@ -4,26 +4,44 @@ import { } from "@chatbotx.io/business" import { notFound } from "next/navigation" import { getTranslations } from "next-intl/server" +import type { SearchParams } from "nuqs/server" +import { Suspense } from "react" import { DeletedWorkspacesTable } from "@/features/admin-workspaces/deleted-workspaces-table" +import { getDeletedWorkspacesSearchParamsCache } from "@/features/admin-workspaces/schema/deleted-query" import { getCurrentUser } from "@/lib/auth/utils" -export default async function DeletedWorkspacesPage() { +export default async function DeletedWorkspacesPage({ + searchParams, +}: { + searchParams: Promise +}) { const user = await getCurrentUser() if (!(user && (await isSuperAdmin(user)))) { return notFound() } - const [t, records] = await Promise.all([ + const [t, search] = await Promise.all([ getTranslations(), - workspaceDeletionRecordService.listForAdmin({ page: 1, perPage: 50 }), + getDeletedWorkspacesSearchParamsCache.parse(await searchParams), ]) + const records = workspaceDeletionRecordService.listForAdmin({ + ...search, + search: search.search ?? undefined, + }) return (
-

- {t("platformAdmin.workspaces.title")} -

- +
+

+ {t("platformAdmin.workspaces.deletedTitle")} +

+

+ {t("platformAdmin.workspaces.deletedDescription")} +

+
+ + +
) } diff --git a/apps/builder/src/app/page.tsx b/apps/builder/src/app/page.tsx index 7f76f71cd5..92d79038c0 100644 --- a/apps/builder/src/app/page.tsx +++ b/apps/builder/src/app/page.tsx @@ -88,16 +88,18 @@ export default async function MainPage() { user={userInfo} /> - - +
+ + +
) diff --git a/apps/builder/src/features/admin-workspaces/admin-workspaces-table.tsx b/apps/builder/src/features/admin-workspaces/admin-workspaces-table.tsx index b564e239ad..1e32ec2dcf 100644 --- a/apps/builder/src/features/admin-workspaces/admin-workspaces-table.tsx +++ b/apps/builder/src/features/admin-workspaces/admin-workspaces-table.tsx @@ -35,9 +35,13 @@ function OwnerCell({ }: { row: ListAdminWorkspacesResponse["data"][number] }) { + const t = useTranslations() + return (
- {row.ownerName ?? "—"} + + {row.ownerName ?? t("platformAdmin.workspaces.notAvailable")} + {row.ownerEmail}
) @@ -94,7 +98,8 @@ export function AdminWorkspacesTable({ title={t("platformAdmin.workspaces.tenant")} /> ), - cell: ({ row }) => row.original.tenantName ?? "—", + cell: ({ row }) => + row.original.tenantName ?? t("platformAdmin.workspaces.notAvailable"), enableSorting: false, }, { diff --git a/apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx b/apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx index 597d90e3bc..0251c1c9d7 100644 --- a/apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx +++ b/apps/builder/src/features/admin-workspaces/deleted-workspaces-table.tsx @@ -1,60 +1,110 @@ +"use client" + +import { DataTable } from "@chatbotx.io/ui/components/data-table/data-table" +import { DataTableColumnHeader } from "@chatbotx.io/ui/components/data-table/data-table-column-header" +import { DataTableToolbar } from "@chatbotx.io/ui/components/data-table/data-table-toolbar" +import { useDataTable } from "@chatbotx.io/ui/hooks/use-data-table" +import type { ColumnDef } from "@tanstack/react-table" import { format } from "date-fns" -import { getTranslations } from "next-intl/server" +import { useTranslations } from "next-intl" +import { use, useMemo } from "react" +import { DeletionRecordEvidence } from "@/features/workspaces/components/deletion-record-evidence" import type { WorkspaceDeletionRecordResource } from "@/features/workspaces/schema/deletion-record" type DeletedWorkspacesTableProps = { - records: WorkspaceDeletionRecordResource[] + promises: Promise< + [ + { + data: WorkspaceDeletionRecordResource[] + pageCount: number + }, + ] + > } -export const DeletedWorkspacesTable = async ({ - records, +export const DeletedWorkspacesTable = ({ + promises, }: DeletedWorkspacesTableProps) => { - const t = await getTranslations() + const [{ data, pageCount }] = use(promises) + const t = useTranslations() + + const columns = useMemo[]>( + () => [ + { + id: "search", + header: ({ column }) => ( + + ), + cell: ({ row }) => row.original.workspaceName, + meta: { + label: t("actions.search"), + placeholder: t("actions.search"), + variant: "text", + filterKey: "search", + }, + enableColumnFilter: true, + enableHiding: false, + enableSorting: false, + }, + { + id: "owner", + header: ({ column }) => ( + + ), + cell: ({ row }) => + row.original.ownerEmail ?? t("platformAdmin.workspaces.notAvailable"), + enableHiding: false, + enableSorting: false, + }, + { + id: "purgedAt", + header: ({ column }) => ( + + ), + cell: ({ row }) => + row.original.purgedAt + ? format(row.original.purgedAt, "PPp") + : t("platformAdmin.workspaces.notAvailable"), + enableHiding: false, + enableSorting: false, + }, + { + id: "evidence", + header: ({ column }) => ( + + ), + cell: ({ row }) => , + enableHiding: false, + enableSorting: false, + }, + ], + [t], + ) + + const { table } = useDataTable({ + columns, + data, + pageCount, + getRowId: (originalRow) => originalRow.id, + shallow: false, + clearOnDefault: true, + }) return ( -
- - - - - - - - - - {records.map((record) => ( - - - - - - ))} - -
- {t("fields.name.label")} - - {t("platformAdmin.workspaces.owner")} - - {t("fields.createdAt.label")} -
-
- - {record.workspaceName} - -
-                    {JSON.stringify(
-                      {
-                        details: record.details,
-                        usageSnapshot: record.usageSnapshot,
-                      },
-                      null,
-                      2,
-                    )}
-                  
-
-
{record.ownerEmail ?? "—"} - {record.purgedAt ? format(record.purgedAt, "PPp") : "—"} -
-
+ + + ) } diff --git a/apps/builder/src/features/admin-workspaces/schema/deleted-query.ts b/apps/builder/src/features/admin-workspaces/schema/deleted-query.ts new file mode 100644 index 0000000000..0768258549 --- /dev/null +++ b/apps/builder/src/features/admin-workspaces/schema/deleted-query.ts @@ -0,0 +1,11 @@ +import { + createSearchParamsCache, + parseAsInteger, + parseAsString, +} from "nuqs/server" + +export const getDeletedWorkspacesSearchParamsCache = createSearchParamsCache({ + page: parseAsInteger.withDefault(1), + perPage: parseAsInteger.withDefault(10), + search: parseAsString, +}) diff --git a/apps/builder/src/features/admin/components/admin-sidebar.tsx b/apps/builder/src/features/admin/components/admin-sidebar.tsx index edb25a45f5..6438243dae 100644 --- a/apps/builder/src/features/admin/components/admin-sidebar.tsx +++ b/apps/builder/src/features/admin/components/admin-sidebar.tsx @@ -56,6 +56,11 @@ export function AdminSidebar({ url: "/admin/workspaces", icon: Building2Icon, }, + { + title: t("platformAdmin.workspaces.deletedTitle"), + url: "/admin/workspaces/deleted", + icon: Building2Icon, + }, { title: t("channels.title"), url: "/admin/platform-channels", diff --git a/apps/builder/src/features/workspaces/components/deleted-workspaces.tsx b/apps/builder/src/features/workspaces/components/deleted-workspaces.tsx index fcc42e0fdd..9144f5b9ca 100644 --- a/apps/builder/src/features/workspaces/components/deleted-workspaces.tsx +++ b/apps/builder/src/features/workspaces/components/deleted-workspaces.tsx @@ -1,6 +1,6 @@ import { workspaceDeletionRecordService } from "@chatbotx.io/business" -import { format } from "date-fns" import { getTranslations } from "next-intl/server" +import { DeletionRecordEvidence } from "./deletion-record-evidence" export const DeletedWorkspaces = async ({ ownerId }: { ownerId: string }) => { const [t, records] = await Promise.all([ @@ -17,17 +17,14 @@ export const DeletedWorkspaces = async ({ ownerId }: { ownerId: string }) => { return (
-

{t("fields.workspace.label")}

+

+ {t("platformAdmin.workspaces.deletedTitle")} +

    {records.data.map((record) => (
  • {record.workspaceName}
    -
    - {record.purgedAt ? format(record.purgedAt, "PPp") : "—"} -
    -
    -              {JSON.stringify(record.usageSnapshot, null, 2)}
    -            
    +
  • ))}
diff --git a/apps/builder/src/features/workspaces/components/deletion-record-evidence.tsx b/apps/builder/src/features/workspaces/components/deletion-record-evidence.tsx new file mode 100644 index 0000000000..9622ead207 --- /dev/null +++ b/apps/builder/src/features/workspaces/components/deletion-record-evidence.tsx @@ -0,0 +1,294 @@ +"use client" + +import { format } from "date-fns" +import Image from "next/image" +import { useTranslations } from "next-intl" +import type { WorkspaceDeletionRecordResource } from "@/features/workspaces/schema/deletion-record" + +type PeriodUsage = + WorkspaceDeletionRecordResource["usageSnapshot"]["mac"][number] + +type DeletionRecordEvidenceProps = { + record: WorkspaceDeletionRecordResource +} + +type EvidenceFieldProps = { + label: string + value: string | number +} + +type UsagePeriodListProps = { + formatPeriod: (period: PeriodUsage) => string + label: string + notAvailable: string + periods: PeriodUsage[] +} + +const EvidenceField = ({ label, value }: EvidenceFieldProps) => ( +
+
{label}
+
{value}
+
+) + +const UsagePeriodList = ({ + formatPeriod, + label, + notAvailable, + periods, +}: UsagePeriodListProps) => ( +
+
{label}
+ {periods.length > 0 ? ( +
    + {periods.map((period) => ( +
  • + {period.count} + + {formatPeriod(period)} + +
  • + ))} +
+ ) : ( +

{notAvailable}

+ )} +
+) + +export const DeletionRecordEvidence = ({ + record, +}: DeletionRecordEvidenceProps) => { + const t = useTranslations() + const notAvailable = t("platformAdmin.workspaces.notAvailable") + const formatDate = (value: Date | string | null) => + value ? format(value, "PPp") : notAvailable + const formatPeriod = (period: PeriodUsage) => + `${formatDate(period.periodStart)} – ${formatDate(period.periodEnd)}` + const workspace = record.details.workspace + const owner = record.details.owner + const requestedBy = record.details.requestedBy + const plan = record.details.plan + const ownerQuota = record.usageSnapshot.ownerQuota + + return ( +
+ + {t("platformAdmin.workspaces.evidence")} + +
+
+
+ {workspace.logo && ( + {workspace.name} + )} +

+ {t("fields.workspace.label")} +

+
+
+ + + + +
+
+ +
+ + + + + +
+ +
+

+ {t("platformAdmin.workspaces.planSnapshot")} +

+
+ + + + +
+
+ +
+

+ {t("platformAdmin.workspaces.usage")} +

+
+ + + +
+
+ +
+

+ {t("platformAdmin.workspaces.usagePeriods")} +

+
+ + +
+
+ +
+

+ {t("platformAdmin.workspaces.ownerQuota")} +

+ {ownerQuota ? ( +
+ + + + + + + +
+ ) : ( +

{notAvailable}

+ )} +
+ +
+

{t("channels.title")}

+ {record.details.channels.length > 0 ? ( +
    + {record.details.channels.map((channel) => ( +
  • +
    {channel.name}
    +
    + {channel.channel} · {channel.status} +
    +
  • + ))} +
+ ) : ( +

{notAvailable}

+ )} +
+ +
+

+ {t("platformAdmin.workspaces.members")} +

+ {record.details.members.length > 0 ? ( +
    + {record.details.members.map((member) => ( +
  • +
    + {member.name ?? member.email ?? notAvailable} +
    +
    + {[member.email, member.role].filter(Boolean).join(" · ")} +
    +
  • + ))} +
+ ) : ( +

{notAvailable}

+ )} +
+
+
+ ) +} diff --git a/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql b/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql new file mode 100644 index 0000000000..3e1866fe62 --- /dev/null +++ b/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql @@ -0,0 +1,2 @@ +DROP INDEX "WorkspaceDeletionRecord_workspaceName_idx";--> statement-breakpoint +DROP INDEX "WorkspaceDeletionRecord_deletionRequestedByEmail_idx"; \ No newline at end of file diff --git a/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/snapshot.json b/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/snapshot.json new file mode 100644 index 0000000000..115230b2d9 --- /dev/null +++ b/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/snapshot.json @@ -0,0 +1,63308 @@ +{ + "version": "8", + "dialect": "postgres", + "id": "de2c4ea5-f233-4a1d-8d53-6831fb834d2c", + "prevIds": [ + "60d41c7f-6c73-46dc-9ce5-35859d6955cd" + ], + "ddl": [ + { + "values": [ + "pending", + "sent", + "failed", + "skipped_no_scope", + "skipped_region" + ], + "name": "adsConversionCapiStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automatic", + "rule", + "trigger" + ], + "name": "adsConversionEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "facebook", + "messenger", + "instagram" + ], + "name": "adsConversionChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "lead", + "purchase" + ], + "name": "adsConversionEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiConversationEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "success", + "error" + ], + "name": "aiConversationSourceStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "document", + "image", + "url", + "web_search" + ], + "name": "aiConversationSourceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "success", + "error", + "processing" + ], + "name": "aiEmbeddingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enable", + "disable" + ], + "name": "aiHandoverBulkAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "running", + "cancelling", + "completed", + "failed", + "cancelled" + ], + "name": "aiHandoverBulkStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "automated_response", + "ai_agent", + "flow", + "none" + ], + "name": "analyticsBotResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "success", + "fallback" + ], + "name": "analyticsBotResult", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "agent", + "fallback" + ], + "name": "analyticsBotRouteType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message:sent", + "message:delivered", + "message:seen", + "message:failed", + "flow:clicked" + ], + "name": "analyticsBroadcastEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contact_created", + "contact_deleted", + "contact_blocked" + ], + "name": "analyticsContactEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "human" + ], + "name": "analyticsContactSenderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "conversation_created", + "conversation_assigned", + "conversation_unassigned", + "conversation_transferred_to_human", + "conversation_transferred_to_bot", + "conversation_followed", + "conversation_unfollowed", + "conversation_archived", + "conversation_unarchived" + ], + "name": "analyticsConversationEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message_human_sent", + "message_bot_sent" + ], + "name": "analyticsMessageEventType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "ingested", + "failed" + ], + "name": "analyticsStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "synced", + "failed" + ], + "name": "appointmentExternalSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationTypeSnapshot", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "cancelled" + ], + "name": "appointmentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inPerson", + "phoneCall", + "onlineMeeting" + ], + "name": "appointmentLocationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rollingDays", + "dateRange", + "specificDay", + "anyFutureDate" + ], + "name": "appointmentScheduleWindowType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "minutes", + "hours", + "days" + ], + "name": "appointmentReminderTimingUnit", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sent", + "cancelled", + "failed" + ], + "name": "appointmentReminderDispatchStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "image", + "video", + "audio", + "gif", + "file" + ], + "name": "fileType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inbound", + "outbound" + ], + "name": "automatedResponseType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "defaultReply" + ], + "name": "automationThrottleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "now", + "future", + "recurring" + ], + "name": "broadcastScheduleType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "scheduled", + "sent", + "sending", + "cancelled", + "draft", + "failed", + "recurring" + ], + "name": "broadcastStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "created", + "skipped", + "missed" + ], + "name": "broadcastOccurrenceOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "catchUpSuperseded", + "paused", + "draft", + "blockedOwner", + "planLimit", + "noTargets", + "undeliverable", + "excludedDate" + ], + "name": "broadcastOccurrenceReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "coexistChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "messages" + ], + "name": "coexistMessengerSyncPhase", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "init", + "running", + "succeeded", + "failed", + "partial", + "waiting" + ], + "name": "coexistRunStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "coexist", + "contact_scan" + ], + "name": "coexistRunType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "instagramFacebook", + "threads", + "tiktok" + ], + "name": "commentAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "equal", + "contain" + ], + "name": "commentExcludeKeywordsType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "sent", + "failed" + ], + "name": "commentAutomationEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "public", + "private" + ], + "name": "commentAutomationReplyChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "AIAgent", + "text", + "flow", + "none" + ], + "name": "commentAutomationReplyType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "outsideSchedule", + "postNotMatched", + "commentIsReply", + "keywordsNotMatched", + "mentionCountNotMatched", + "contactNotNew", + "alreadyRepliedOnPost", + "engagedOnOtherPost" + ], + "name": "commentAutomationMissReason", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "male", + "female", + "unknown" + ], + "name": "gender", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flow", + "flowNode", + "automatedResponse", + "whatsappFlow", + "emailTopic" + ], + "name": "contactActivityReferenceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowExecuted", + "flowNodeExecuted", + "automatedResponseMatched", + "formCompleted", + "messageSent", + "messageDelivered", + "messageOpened", + "messageClicked" + ], + "name": "contactActivityType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "captured", + "unavailable", + "failed" + ], + "name": "contactInboxProfileSnapshotState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink", + "image", + "video", + "audio", + "gif", + "file", + "storyMention" + ], + "name": "lastUserInputType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inboundReceived", + "standbyReceived", + "controlPassed", + "controlTaken", + "taken", + "released", + "passed", + "serviceSent", + "serviceRejected" + ], + "name": "threadControlEvent", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owned", + "standby", + "idle" + ], + "name": "threadControlState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "scheduled", + "completed", + "failed", + "canceled" + ], + "name": "ContactOnSmartDelayStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "waitNode", + "followUp", + "quickReplyFollowUp" + ], + "name": "ContactOnSmartDelayType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "archived" + ], + "name": "couponTopicStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "shortText", + "email", + "phoneNumber", + "number", + "date", + "datetime", + "boolean", + "longText" + ], + "name": "customFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "passed", + "failed" + ], + "name": "DecisionConnectionTestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "typesafe", + "systemOneCompatible", + "openrouterDecision" + ], + "name": "DecisionProviderKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "enabled", + "disabled" + ], + "name": "DecisionProfileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "entireOrder", + "category", + "products" + ], + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" + ], + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "amount", + "quantity" + ], + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" + ], + "name": "discountType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "externalLink", + "flow", + "productPage" + ], + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" + ], + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "default", + "flow", + "none" + ], + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" + ], + "name": "productImageSize", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" + ], + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" + ], + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "import", + "generic", + "export" + ], + "name": "fileContextType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "uploaded", + "failed" + ], + "name": "fileStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "tag", + "flow", + "customField", + "automatedResponse", + "trigger", + "webhook", + "sequence", + "emailTopic", + "fbComment", + "igComment", + "igStory", + "outboundAutomatedResponse" + ], + "name": "folderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "gclid", + "gbraid" + ], + "name": "googleAdsClickIdType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowStep", + "triggerAction" + ], + "name": "googleAdsEventSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "sending", + "sent", + "processed", + "failed", + "skipped_no_account", + "skipped_expired" + ], + "name": "googleAdsEventStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "processing", + "timeout" + ], + "name": "googleAdsFailureStage", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "processing", + "success", + "partial_success", + "failed", + "unknown", + "timed_out" + ], + "name": "googleAdsProcessingStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "storyReply", + "storyMention" + ], + "name": "igStoryAutomationTrigger", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "instagram", + "instagramFacebook" + ], + "name": "igStoryAutomationType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "csv", + "xlsx", + "xls", + "json" + ], + "name": "importFormat", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "importStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "contacts", + "coupons", + "products", + "flow" + ], + "name": "importType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "received", + "processing", + "processed", + "completedWithErrors", + "skipped", + "failed" + ], + "name": "inboundWebhookRequestStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "oauth", + "fbe" + ], + "name": "metaCatalogAuthMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "active", + "invalid" + ], + "name": "metaCatalogConnectionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "idle", + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogImportStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallRecordingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "metaNative", + "browserWhisper" + ], + "name": "whatsappCallTranscriptionMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending_verification", + "registered", + "failed" + ], + "name": "whatsappRegistrationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "messenger", + "instagram", + "whatsapp", + "zalo", + "telegram", + "tiktok", + "threads", + "email", + "gamification" + ], + "name": "leaderboardPlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "active", + "paused", + "finished" + ], + "name": "leaderboardStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "adjust", + "resetOne", + "resetAll", + "ban", + "unban" + ], + "name": "leaderboardAuditAction", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "rule", + "flow", + "referral", + "manual", + "reset" + ], + "name": "leaderboardScoreSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "location", + "refLink" + ], + "name": "contentType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "message", + "comment" + ], + "name": "messageKind", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "incoming", + "outgoing", + "activity" + ], + "name": "messageType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bot", + "contact", + "system", + "user", + "api" + ], + "name": "senderType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "processing", + "completed", + "failed" + ], + "name": "MessageCleanupStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "whatsapp", + "messenger", + "instagram" + ], + "name": "messagingAdChannel", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "campaignCreated", + "adSetCreated", + "creativeCreated", + "adCreated", + "failed" + ], + "name": "messagingAdCreateState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "draft", + "publishing", + "published", + "pausing", + "paused", + "deleting", + "deleted", + "publishFailed" + ], + "name": "messagingAdPublishState", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "push", + "import" + ], + "name": "metaCatalogItemDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "all", + "category", + "selected" + ], + "name": "metaCatalogSyncScope", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "queued", + "running", + "succeeded", + "partial", + "failed" + ], + "name": "metaCatalogSyncStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "web" + ], + "name": "miniAppSubmissionSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "submitted" + ], + "name": "miniAppUploadStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "luckyWheel", + "jackpot", + "gashapon", + "drawLots", + "scratchOff" + ], + "name": "minigameType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "user", + "apiToken", + "system", + "contact" + ], + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" + ], + "name": "orderSource", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" + ], + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" + ], + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "unpaid", + "paid", + "refunded" + ], + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" + ], + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "dont_track", + "track" + ], + "name": "inventoryPolicy", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "text", + "number", + "email", + "phone", + "multipleChoice", + "date", + "datetime", + "image", + "file", + "location", + "websiteLink" + ], + "name": "questionnaireQuestionType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "inProgress", + "completed", + "cancelled", + "failed", + "timeout" + ], + "name": "questionnaireSubmissionStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "refLink", + "qrCode" + ], + "name": "ReflinkType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "me" + ], + "name": "SystemFieldType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "creator", + "administrator", + "member", + "restricted", + "left", + "kicked" + ], + "name": "telegramBotChatStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "private", + "group", + "supergroup", + "channel" + ], + "name": "telegramChatType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "pending", + "installing", + "completed", + "partial", + "failed" + ], + "name": "templateInstallationStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flows", + "products", + "aiFunctions", + "aiAgents", + "calendars", + "webchats", + "keywords", + "entryPointLinks", + "triggers", + "fbCommentAutomations", + "settings", + "customFields", + "tags", + "productCategories" + ], + "name": "templateResourceCategory", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ios", + "android" + ], + "name": "devicePlatform", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "userInitiated", + "businessInitiated" + ], + "name": "whatsappCallDirection", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "completed", + "failed", + "rejected", + "canceled" + ], + "name": "whatsappCallOutcome", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "ringing", + "accepted", + "rejected", + "completed", + "failed" + ], + "name": "whatsappCallStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "accept", + "reject" + ], + "name": "whatsappCallPermissionResponse", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "allTime", + "oncePerHour", + "oncePerDay" + ], + "name": "defaultReplyFrequency", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "full", + "read_only" + ], + "name": "WorkspaceApiTokenPermission", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "owner", + "agent" + ], + "name": "workspaceMemberRole", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageShard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ShardTimeRange", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AdsConversionRule", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIAgent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIConversationSource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIEmbedding", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIFunction", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverBulkRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIHandoverSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AIMCPServer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsAgentResponseEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBotMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsBroadcastEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsContactEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsConversationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsFlowNodeEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsMessageEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsSequenceEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsEmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AnalyticsManifestStatus", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Appointment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarAvailability", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentCalendarReminder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AppointmentReminderDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Attachment", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Account", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Invitation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Jwk", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Session", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "User", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Verification", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomatedResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AutomationThrottle", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BotField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Broadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastRecurrenceOccurrence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "BroadcastTarget", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ChannelPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CoexistSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationMiss", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CommentAutomationReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConnectSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Connection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Contact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveHourly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActiveMonthly", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActivity", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactCustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactInboxPost", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactKeywordMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactNote", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnBroadcast", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactOnSmartDelay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactState", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactToTagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Conversation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ConversationParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Coupon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CouponTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DecisionProfile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCode", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DynamicImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOpenHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EcommerceSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "EmailTopic", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "AuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "CustomDomain", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "License", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformAdmin", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tenant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TenantHelpItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserQuota", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ErrorLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ExternalWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookLeadAdsLead", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FacebookMarketingMessagesAuth", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "File", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Flow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowAnalyticsSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowNodeStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "FlowVersion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Folder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsConversionEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "GoogleAdsSettings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IgStoryAutomation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Import", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboundWebhookRequest", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Inbox", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxContactStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeam", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "InboxTeamMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationActiveCampaign", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationApi", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Integration", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationClaude", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDeepseek", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationDrip", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationFacebookAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGemini", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGetResponse", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleAds", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationGoogleSheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationInstagram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationKlaviyo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailchimp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMailerLite", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMessenger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMetaCatalog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationMoosend", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenai", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenaiCompatible", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOpenrouter", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationOutlookCalendar", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSendGrid", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationSmtp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTelegram", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationThreads", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationTiktok", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWebchat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationWhatsapp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "IntegrationZalo", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Leaderboard", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardAuditLog", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardParticipant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "LeaderboardScoreEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MagicLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFile", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MediaLibraryFolder", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Message", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessageCleanup", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdOperation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessagingAdsConnection", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MessengerWelcomeMessageFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCapiEvent", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MetaCatalogSyncRun", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniApp", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppPublication", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MiniAppUpload", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Minigame", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigameContact", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "MinigamePlay", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderItem", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Order", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "OrderStatusHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "PlatformCredential", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Product", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductAddon", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductCategory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariant", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ProductVariantOption", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireAnswer", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Questionnaire", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireQuestion", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "QuestionnaireSubmission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "RefLinkStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Reflink", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ResponseSlaPolicy", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReply", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SavedReplyImage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Sequence", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceDispatch", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SequenceStep", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Spreadsheet", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "SystemField", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Tag", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TagChannel", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TelegramChat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Template", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstallation", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TemplateInstalledResource", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Trigger", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Condition", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerContactHistory", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "TriggerStat", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserDeviceToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "UserPersistentMenu", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Vendor", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Webhook", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WebhookExecution", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappBusinessAccount", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCall", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCallPermission", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappCoexistStaging", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappFlow", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappMessageTemplate", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WhatsappSignupSession", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHours", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursDateOverride", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursInterval", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkingHoursMember", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Workspace", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceApiToken", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceBotMessageUsage", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceDeletionRecord", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMac", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "WorkspaceMember", + "entityType": "tables", + "schema": "public" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "host", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "5432", + "generated": null, + "identity": null, + "name": "port", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credentialRef", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'disable'", + "generated": null, + "identity": null, + "name": "sslMode", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isMain", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardKey", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readHost", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "readPort", + "entityType": "columns", + "schema": "public", + "table": "MessageShard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shardId", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'whatsapp'", + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ctwaClid", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contents", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceEventId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "adsConversionCapiStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationFacebookAdsId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "adsConversionEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "markAs", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionPrompt", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "actionRules", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isRichResponse", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "tools", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "webSearchAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "models", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "AIAgent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkIndex", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "aiConversationEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attachmentId", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "aiConversationSourceStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentHash", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "summary", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "AIConversationSource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "vector(1536)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "embedding", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "aiEmbeddingStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiFileId", + "entityType": "columns", + "schema": "public", + "table": "AIEmbedding" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataCollect", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outputMessage", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIFunction" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "aiHandoverBulkStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedUntil", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chunkSeq", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cursorContactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightFromId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inFlightToId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "scheduleEnabled", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timeRanges", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gotoFlowId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "pauseBotWaitingForStaff", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "applyToAllCustomers", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "applyToAllRevision", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllMessage", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applyToAllRequestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "availableTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "selectedTools", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AIMCPServer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingSince", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "measuredFrom", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingResponseSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isFirstResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "slaMet", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasResponse", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResponseType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotRouteType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "routeType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "analyticsBotResult", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiProvider", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "analyticsBroadcastEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "batchId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "analyticsConversationEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toAssignee", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsMessageEventType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "analyticsContactSenderType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "insertedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicReferenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastClickedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickCount", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "objectKey", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "analyticsStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "timestamp", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ingestedAt", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inviteeTimezone", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'scheduled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentLocationTypeSnapshot", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventIntegrationId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventProviderCalendarId", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "appointmentExternalSyncStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalSyncStatus", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Appointment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "durationMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bufferAfterMinutes", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentLocationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locationDetail", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "appointmentScheduleWindowType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'rollingDays'", + "generated": null, + "identity": null, + "name": "scheduleWindowType", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "scheduleWindowConfig", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxAppointmentsPerUser", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "dailyLimitEnabled", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerDay", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowGroupMeeting", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxPerSlot", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationMessage", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancellationFlowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalConnectionId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventTitleTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventDescriptionTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalEventAttendeesTemplate", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicLinkSlug", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "calendarId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingValue", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "appointmentReminderTimingUnit", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timingUnit", + "entityType": "columns", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reminderConfigId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "appointmentReminderDispatchStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "jobId", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedReason", + "entityType": "columns", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageCreatedAt", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "fileType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "width", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "height", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnailPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originPath", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", + "schema": "public", + "table": "Attachment" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accessTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refreshTokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idToken", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "password", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Account" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "invitedBy", + "entityType": "columns", + "schema": "public", + "table": "Invitation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "privateKey", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Jwk" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Session" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAnonymous", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "mustChangePassword", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "User" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifier", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "Verification" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "keywords", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "automatedResponseType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inbound'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "automationThrottleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "throttleType", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subjectId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "uuid", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimId", + "entityType": "columns", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BotField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'channel'", + "generated": null, + "identity": null, + "name": "targetMode", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "broadcastScheduleType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesType", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schedulesAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactFilter", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subaction", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoffCompletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resumeCount", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeStart", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "audienceRangeEnd", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendRatePerMinute", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "Broadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountedThroughAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrenceCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOccurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pausedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recurrenceId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "localSlot", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurrenceAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceOutcome", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "broadcastOccurrenceReason", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "childBroadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "materializedAt", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "supersededCount", + "entityType": "columns", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateData", + "entityType": "columns", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", + "entityType": "columns", + "schema": "public", + "table": "Cart" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceAccountId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalPostId", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "caption", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaType", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thumbnail", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permalink", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataFetchedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadataAttemptedAt", + "entityType": "columns", + "schema": "public", + "table": "ChannelPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'coexist'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistRunStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'init'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerSource", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastHeartbeatAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentScan", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentPageNumber", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedContactCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedMessageCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentError", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastChunkOrder", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "syncProgress", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "coexistMessengerSyncPhase", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contacts'", + "generated": null, + "identity": null, + "name": "messengerSyncPhase", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pendingPatches", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scanFromAt", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestedByUserId", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resumeCursor", + "entityType": "columns", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'messenger'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sentCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seenCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clickedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "missedCount", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "post", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"text\",\"value\":\"\"}'", + "generated": null, + "identity": null, + "name": "privateReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "publicReply", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "excludeKeywords", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "commentExcludeKeywordsType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'contain'", + "generated": null, + "identity": null, + "name": "excludeKeywordsType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", + "generated": null, + "identity": null, + "name": "hideComments", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"immediately\",\"value\":0}'", + "generated": null, + "identity": null, + "name": "replyAfter", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyChannel", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationReplyType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyType", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replyText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "commentAutomationEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorDetail", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentText", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "commentAutomationMissReason", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purpose", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetConnectionId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorTokenId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platformOwnerId", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originHost", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "returnUrl", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stateNonceHash", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'authorize'", + "generated": null, + "identity": null, + "name": "step", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextAction", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "targets", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "targetClaims", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "resultConnectionIds", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "results", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "ConnectSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "displayName", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "statusReason", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Connection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "avatar", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumber", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "emailVerified", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "emailOptIn", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", + "type": "stored" + }, + "identity": null, + "name": "fullName", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "gender", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "gender", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ref", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "country", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "city", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "location", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "locale", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastSubscribedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "blockedAt", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalNewTagged", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Contact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hourBucket", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceMacId", + "entityType": "columns", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "contactActivityType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activityType", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "contactActivityReferenceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceType", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentReferenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstOccurredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactActivity" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "ContactCustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "originalContactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followsBusiness", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessFollowsContact", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountVerified", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "followerCount", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "contactInboxProfileSnapshotState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotAttempts", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "profileSnapshotNextAttemptAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstInteractionAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastIncomingMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastOutboundMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referral", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastCommentMessageAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutiveFailedReply", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastInputFailure", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastErrorLog", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastBtnTitle", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInput", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "lastUserInputType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUserInputType", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webchatParentUrl", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceParentUserId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUsername", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceIdentityHistory", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlState", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlState", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerRole", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "threadControlEvent", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlLastEvent", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadOwnerExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadPreviousOwnerAppId", + "entityType": "columns", + "schema": "public", + "table": "ContactInbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "postId", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "commentedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automatedResponseId", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "normalizedText", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "ContactNote" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "broadcastId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "sent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "enrolledAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextRunAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextStepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appointmentId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerAt", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "ContactOnSmartDelayStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ContactState" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactState" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastDeliveredAt", + "entityType": "columns", + "schema": "public", + "table": "ContactState" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagChannelId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "botEnabled", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botResumeAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archivedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "additionalAttributes", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agentLastReadAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiContextLastMessageId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followed", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedInboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentStep", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adminRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactRepliedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplySince", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "awaitingHumanReplyClosedAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assignedUserAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseDueAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaBreachingAt", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "responseSlaTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "Conversation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedContactId", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issuedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usedAt", + "entityType": "columns", + "schema": "public", + "table": "Coupon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "couponTopicStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasEverHadCoupon", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdById", + "entityType": "columns", + "schema": "public", + "table": "CouponTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "customFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "showInInbox", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "CustomField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionProviderKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "providerKind", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endpoint", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "modelCatalog", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "DecisionConnectionTestStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestStatus", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastTestedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "DecisionProfileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'enabled'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connectionId", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contract", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "globalRouterEnabled", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "globalRouterConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "DiscountCode" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "data", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backgroundUrl", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "DynamicImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", + "entityType": "columns", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", + "entityType": "columns", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sendsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "deliveredsTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "seensTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "clicksTotal", + "entityType": "columns", + "schema": "public", + "table": "EmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ipAddress", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "AuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "domain", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfOwnershipValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns", + "schema": "public", + "table": "CustomDomain" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "licenseId", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "License" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'super-admin'", + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabledReason", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandName", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoLightPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logoDarkPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "faviconPath", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customJs", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "theme", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storageUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "policyUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "termsOfServiceUrl", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signupEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "forgotPasswordEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "magicLinkEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "accountCredentialsEmailTemplate", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns", + "schema": "public", + "table": "Tenant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspacesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "workspacesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "teamMembersLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "macLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesLimit", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "monthlyBotMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesTopUpGranted", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "whiteLabel", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "ssoSaml", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "saasMode", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planName", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planStatus", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selectedTrialPlanId", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelsTornDownAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "UserQuota" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "contactsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "channelsUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "teamMembersUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "botMessagesUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macUsed", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detail", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "httpCode", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stackTrace", + "entityType": "columns", + "schema": "public", + "table": "ErrorLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'make'", + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formName", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "leadsHandledCount", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automationId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyOffset", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetType", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "budgetMinorUnits", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "content", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "campaignId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookUserId", + "entityType": "columns", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileContextType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contextType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileSize", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "fileStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadedAt", + "entityType": "columns", + "schema": "public", + "table": "File" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableInInbox", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "draftVersionId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Flow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "analyticsId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "buttonId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refId", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refType", + "entityType": "columns", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "FlowRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "nodes", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isDraft", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startNodeId", + "entityType": "columns", + "schema": "public", + "table": "FlowVersion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "folderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderType", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isTrash", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns", + "schema": "public", + "table": "Folder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationGoogleAdsId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionName", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionCategory", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lookbackWindowDays", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsClickIdType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickIdType", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "googleClickReceivedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transactionId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "options", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadMethod", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsEventStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requestId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sentAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failureStage", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingStatus", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingAttempts", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextProcessingCheckAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processingDetail", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings", + "entityType": "columns", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "igStoryAutomationTrigger", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'storyReply'", + "generated": null, + "identity": null, + "name": "trigger", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "repliesCount", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "story", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"none\",\"value\":null}'", + "generated": null, + "identity": null, + "name": "reply", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{\"type\":\"all\",\"value\":[]}'", + "generated": null, + "identity": null, + "name": "includeKeywords", + "entityType": "columns", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileId", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importFormat", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "format", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "importStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "processedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "errorSample", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "Import" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxResolution", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "identifiers", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldMappings", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sampleJson", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "requestCount", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboundWebhookId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clientIp", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userAgent", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'received'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimToken", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipReason", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorCode", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fieldErrors", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actionResults", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'connected'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "markReadOnOutbound", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disconnectReason", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadControlSeenAt", + "entityType": "columns", + "schema": "public", + "table": "Inbox" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxContactStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "InboxTeam" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxTeamId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callbackUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationApi" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns", + "schema": "public", + "table": "Integration" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "loginCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "descriptiveName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionCustomerId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedCustomerDataTerms", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActions", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversionActionsSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "setupErrorAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "igId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'instagram'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userInfo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "personas", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "personaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogName", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAuth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogAuthMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'oauth'", + "generated": null, + "identity": null, + "name": "authMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "metaCatalogImportStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'idle'", + "generated": null, + "identity": null, + "name": "importStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importTotalCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "importError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'VND'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReplyVoice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "voice", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiAgentId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseURL", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultModel", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preset", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoReply", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "maxOutputTokens", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prompt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'primary'", + "generated": null, + "identity": null, + "name": "providerCalendarId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromAddress", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threadsUserId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "username", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enable", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "conversationStarters", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideHeader", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "showLogo", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hideMessageInput", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customCss", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "displayPhoneNumber", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "inboundCallsEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callHours", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callRecordingEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "callRecordingRetentionDays", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "callTranscriptionEnabled", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallRecordingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callRecordingMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'metaNative'", + "generated": null, + "identity": null, + "name": "callTranscriptionMode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callAnnouncementLanguage", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callRecordingPurpose", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isCoexist", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "platformType", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "historyDeclined", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "hasCapiScope", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiScopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "datasetId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiAccessToken", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiDisconnectedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiTestEventCode", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "whatsappRegistrationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending_verification'", + "generated": null, + "identity": null, + "name": "registrationStatus", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "registrationError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "oaId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fallbackFlowId", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "coverImageUrl", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "followersOnly", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagIds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'22:00'", + "generated": null, + "identity": null, + "name": "resetTime", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "cooldownSeconds", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardSettings", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardsTriggeredAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rewardRecipients", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Leaderboard" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "action", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "score", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "scoredAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyCounts", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breakdown", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leaderboardId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceRef", + "entityType": "columns", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "MagicLink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isFavourite", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAccessedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentAttributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "contentType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "messageKind", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'message'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attributes", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendError", + "entityType": "columns", + "schema": "public", + "table": "Message" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationIds", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sinceTime", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "MessageCleanupStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "MessageCleanup" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "adAccountId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdCreateState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "createState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "messagingAdPublishState", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'draft'", + "generated": null, + "identity": null, + "name": "publishState", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaCampaignId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdSetId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdCreativeId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaAdId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cleanupError", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "messagingAdChannel", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationInstagramId", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'POSITIONAL'", + "generated": null, + "identity": null, + "name": "parameterFormat", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMessengerId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metaFlowId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowVersionId", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'current'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentCategory", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentName", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "numeric", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'business_messaging'", + "generated": null, + "identity": null, + "name": "actionSource", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentType", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contentIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceKey", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "capiStatus", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiSentAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "capiError", + "entityType": "columns", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedFingerprint", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastSyncedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationMetaCatalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'push'", + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "catalogId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "selectedProductIds", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "handles", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionLeaseId", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "succeededCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "skippedCount", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "itemErrors", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "skippedItems", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finishedAt", + "entityType": "columns", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "definition", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowJson", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "submissionsCount", + "entityType": "columns", + "schema": "public", + "table": "MiniApp" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "whatsappFlowId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publishedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "miniAppSubmissionSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answers", + "entityType": "columns", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "miniAppId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inputName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "uploadToken", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "path", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fileName", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mimeType", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "size", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "miniAppUploadStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "minigameType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "generalSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "appearance", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "playerSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "winningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nonWinningMessageSettings", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "playsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "participantsCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "winnersCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "Minigame" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "played", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "remaining", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "sharesCount", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referrerContactId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "MinigameContact" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minigameId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "isWinning", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeId", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "prizeName", + "entityType": "columns", + "schema": "public", + "table": "MinigamePlay" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", + "entityType": "columns", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", + "entityType": "columns", + "schema": "public", + "table": "OrderItem" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", + "entityType": "columns", + "schema": "public", + "table": "Order" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", + "entityType": "columns", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publicConfig", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "livemode", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "usePlatformCredential", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isVerified", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verifiedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastUsedAt", + "entityType": "columns", + "schema": "public", + "table": "PlatformCredential" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "longDescription", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "taxes", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "discount", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'USD'", + "generated": null, + "identity": null, + "name": "currency", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productUrl", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "inventoryPolicy", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'dont_track'", + "generated": null, + "identity": null, + "name": "inventoryPolicy", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "inventoryQuantity", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowOutOfStockPurchase", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "images", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "tags", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isSearchable", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "allowSpecialRequest", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isAddonOnly", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Product" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "maxSelections", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "addonProductIds", + "entityType": "columns", + "schema": "public", + "table": "ProductAddon" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentId", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "ProductCategory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "price", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isEnabled", + "entityType": "columns", + "schema": "public", + "table": "ProductVariant" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "values", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "submissionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionIdSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTitleSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionTypeSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labelSnapshot", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "attemptCount", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableScore", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enableRetryMessages", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enableCustomFieldMapping", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerFlowId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Questionnaire" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "questionnaireQuestionType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "image", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "orderNo", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "point", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retryMessage", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "systemFieldKey", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "questionnaireId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'inProgress'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "totalPoints", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currentQuestionSentAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastAnsweredMessageId", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", + "entityType": "columns", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linkId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "RefLinkStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "qrStyles", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetAuthorizedDomains", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "ARRAY[]", + "generated": null, + "identity": null, + "name": "widgetHiddenInboxIds", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoFileId", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandName", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetBrandUrl", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns", + "schema": "public", + "table": "Reflink" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "nextResponseTargetSeconds", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "25", + "generated": null, + "identity": null, + "name": "breachingThresholdPercent", + "entityType": "columns", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortcut", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReply" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "savedReplyId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mediaLibraryFileId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "subscribers", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "messages", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Sequence" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "runAtMs", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "bucket", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "idempotencyKey", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lockOwner", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveredAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "seenAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "clickedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "failedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stepId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "enrollmentId", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, + "identity": null, + "name": "isRead", + "entityType": "columns", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "order", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delayMinutes", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delayUnit", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "specificDateTime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "anytime", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeEnd", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "flowId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sequenceId", + "entityType": "columns", + "schema": "public", + "table": "SequenceStep" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "spreadsheetId", + "entityType": "columns", + "schema": "public", + "table": "Spreadsheet" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "SystemField" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Tag" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tagId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channelType", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "externalLabelId", + "entityType": "columns", + "schema": "public", + "table": "TagChannel" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "chatId", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns", + "schema": "public", + "table": "TelegramChat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "publisherName", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "youtubeVideoId", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "testLink", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "selection", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryCounts", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareToken", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shareExpiresAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultPermissions", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "createInstallFolder", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "defaultAutoUpdate", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "installCount", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "createdBy", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletedAt", + "entityType": "columns", + "schema": "public", + "table": "Template" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "templateName", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceWorkspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "warnings", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorMessage", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installFolderId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceUpdatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installedBy", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installationId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "templateResourceCategory", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceKind", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceResourceId", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "wasExisting", + "entityType": "columns", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "actions", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Trigger" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "varchar(255)", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operator", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "value", + "entityType": "columns", + "schema": "public", + "table": "Condition" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstEnteredAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "triggerId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalContacts", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "successCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "failureCount", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "totalExecutions", + "entityType": "columns", + "schema": "public", + "table": "TriggerStat" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "devicePlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastSeenAt", + "entityType": "columns", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "", + "generated": null, + "identity": null, + "name": "menus", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", + "entityType": "columns", + "schema": "public", + "table": "Vendor" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "active", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "Webhook" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "executedAt", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhookId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WebhookExecution" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "credential", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "grantedScopes", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopeCheckedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provisionedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "revision", + "entityType": "columns", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wacid", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attemptId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallDirection", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "direction", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'ringing'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "outcome", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "durationSeconds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastError", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "answeredByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiatedByUserId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingRequested", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingFailureReason", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordingPath", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recordedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcript", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcribedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "transcriptSegments", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummary", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummarizedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "aiSummaryProvider", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCall" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isPermanent", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "respondedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phoneNumberId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payloadHash", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parseFailedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "categories", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "validationErrors", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "completedCount", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationWhatsappId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sourceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "wabaId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "businessId", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedAccessToken", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apiVersion", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "candidatePhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "claimedPhoneNumberIds", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expiresAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "consumedAt", + "entityType": "columns", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHours" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "date", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "date", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "weekday", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endMinute", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workingHoursId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultReply", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'allTime'", + "generated": null, + "identity": null, + "name": "defaultReplyFrequency", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "targetCountry", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'en'", + "generated": null, + "identity": null, + "name": "language", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'#016DFF'", + "generated": null, + "identity": null, + "name": "brandColor", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "developmentMode", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "smartResponseDelaySeconds", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "startTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endTime", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "logo", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedById", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgeStartedAt", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "supportAccessUntil", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "capiLimitedDataUse", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "Workspace" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "permission", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenHash", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenPrefix", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isDefault", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "encryptedToken", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "count", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceName", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerEmail", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedById", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedByEmail", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deletionRequestedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduledDeletionAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "purgedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageSnapshot", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "details", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ownerId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tenantId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodStart", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "periodEnd", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "macCount", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "workspaceMemberRole", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationChannels", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "notificationTypes", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "permissions", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onlineSince", + "entityType": "columns", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageShard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIAgent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_aiFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes", + "schema": "public", + "table": "AnalyticsManifestStatus" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Attachment" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", + "entityType": "indexes", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "activityType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentReferenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactActivity_reference_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactActivity" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastIncomingMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastOutboundMessageAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "(\"referral\"->>'adId')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "ContactKeywordMessage_text_trgm_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "text_pattern_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactKeywordMessage_text_prefix_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "isRead", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastDeliveredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"lastDeliveredAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactState_lastDeliveredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactState" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTag_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "responseDueAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "aiContextLastMessageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastActivityAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "issuedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issuedContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "usedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"globalRouterEnabled\" = true", + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_tenantId_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "domain", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "licenseId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "License_licenseId_key", + "entityType": "indexes", + "schema": "public", + "table": "License" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformAdmin_userId_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "position", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelsTornDownAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leadgenId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookLeadAdsLead_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "campaignId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_path_key", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "File_workspaceId_subType_idx", + "entityType": "indexes", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Flow_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowAnalyticsSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowVersionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowRun_flowVersionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "FlowVersion_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Folder_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_workspaceId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_inboxId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_fileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhook_token_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboundWebhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'received'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claimedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'processing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboxTeam_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tokenHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "igId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"preset\" <> 'custom'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "botId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "threadsUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "welcomeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "handoverResumeFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "fallbackFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "oaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardAuditLog_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "NOT \"isBanned\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "leaderboardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversation_history_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_workspace_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_conversationId_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Message_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessageCleanup" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'current'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "uploadToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "path", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_path_key", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MiniAppUpload_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "referrerContactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"referrerContactId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_referrerContactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"contactInboxId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", + "entityType": "indexes", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"userId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "PlatformCredential_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductAddon_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductCategory_parentId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "submissionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "questionIdSnapshot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "orderNo", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"conversationId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "currentQuestionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"currentQuestionId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_currentQuestionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReply_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "idempotencyKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "updatedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceDispatch_stepId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "SequenceStep_flowId_idx", + "entityType": "indexes", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "spreadsheetId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tag_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_tag_integration_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_external_key", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TagChannel_integration_idx", + "entityType": "indexes", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "shareToken", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Template_shareToken_key", + "entityType": "indexes", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "templateId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_source_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", + "entityType": "indexes", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_folderId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "wacid", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_wacid_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "attemptId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"attemptId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"processedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "parseFailedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappCoexistStaging" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workingHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_tenantId_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "scheduledDeletionAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "supportAccessUntil", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"isDefault\"", + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceBotMessageUsage_ownerId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceBotMessageUsage_tenantId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerEmail", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceDeletionRecord_ownerEmail_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "ownerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMac_ownerId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "periodStart", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMac_tenantId_periodStart_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ShardTimeRange" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks", + "schema": "public", + "table": "AdsConversionRule" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIAgent" + }, + { + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIConversationSource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIEmbedding" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFile" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIFunction" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverBulkRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "gotoFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "applyToAllRequestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIHandoverSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AIMCPServer" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "EmailTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Appointment" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "confirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "cancellationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "externalConnectionId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarAvailability" + }, + { + "nameExplicit": false, + "columns": [ + "calendarId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentCalendarReminder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "reminderConfigId" + ], + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AppointmentReminderDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Account" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "invitedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Invitation" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Session" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "User" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomatedResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BotField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "parentBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Broadcast" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "recurrenceId" + ], + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "childBroadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Cart_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Cart" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ChannelPost" + }, + { + "nameExplicit": false, + "columns": [ + "requestedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CoexistSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationMiss" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CommentAutomationReply" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "targetConnectionId" + ], + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "actorTokenId" + ], + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConnectSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Connection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Contact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactCustomField" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactInbox" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactNote" + }, + { + "nameExplicit": false, + "columns": [ + "broadcastId" + ], + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "appointmentId" + ], + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactOnSmartDelay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTag" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagChannelId" + ], + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "assignedUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "assignedInboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Conversation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ConversationParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "topicId" + ], + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "issuedContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Coupon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CouponTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomField" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionConnection" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "connectionId" + ], + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCode" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DynamicImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOpenHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceOrderCounter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "EmailTopic" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": true, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks", + "schema": "public", + "table": "AuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "CustomDomain" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformAdmin" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tenant" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TenantHelpItem" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserQuota" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceUsage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ErrorLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ExternalWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "automationId" + ], + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookLeadAdsLead" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FacebookMarketingMessagesAuth" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "File" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Flow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowNodeStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "flowVersionId" + ], + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "FlowVersion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Folder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationGoogleAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "GoogleAdsSettings" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IgStoryAutomation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "fileId" + ], + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Import" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboundWebhookId" + ], + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboundWebhookRequest" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Inbox" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxContactStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeam" + }, + { + "nameExplicit": false, + "columns": [ + "inboxTeamId" + ], + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "InboxTeamMember" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationActiveCampaign" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationApi" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Integration" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationClaude" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDeepseek" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationDrip" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationFacebookAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGemini" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGetResponse" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleAds" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationGoogleSheet" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": true, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationInstagram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationKlaviyo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailchimp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMailerLite" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMessenger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMetaCatalog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationMoosend" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenai" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenaiCompatible" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOpenrouter" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationOutlookCalendar" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSendGrid" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationSmtp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTelegram" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationThreads" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationTiktok" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "welcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWebchat" + }, + { + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "fallbackFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "IntegrationZalo" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "referralWelcomeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Leaderboard" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardAuditLog" + }, + { + "nameExplicit": false, + "columns": [ + "leaderboardId" + ], + "schemaTo": "public", + "tableTo": "Leaderboard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "MagicLink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MagicLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFolder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFile" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MediaLibraryFolder" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks", + "schema": "public", + "table": "MessengerWelcomeMessageFlow" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "integrationMetaCatalogId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMetaCatalog", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MetaCatalogSyncRun" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniApp" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "whatsappFlowId" + ], + "schemaTo": "public", + "tableTo": "WhatsappFlow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppPublication" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "miniAppId" + ], + "schemaTo": "public", + "tableTo": "MiniApp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "MiniAppSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MiniAppUpload" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Minigame" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "referrerContactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigameContact" + }, + { + "nameExplicit": false, + "columns": [ + "minigameId" + ], + "schemaTo": "public", + "tableTo": "Minigame", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "MinigamePlay" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "DiscountCodeRedemption" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderItem" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Order" + }, + { + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "OrderStatusHistory" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Credential_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "PlatformCredential" + }, + { + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Product" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductAddon" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "parentId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariant" + }, + { + "nameExplicit": false, + "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ProductVariantOption" + }, + { + "nameExplicit": false, + "columns": [ + "submissionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireSubmission", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "questionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireAnswer" + }, + { + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Questionnaire" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "questionnaireId" + ], + "schemaTo": "public", + "tableTo": "Questionnaire", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "currentQuestionId" + ], + "schemaTo": "public", + "tableTo": "QuestionnaireQuestion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks", + "schema": "public", + "table": "QuestionnaireSubmission" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "linkId" + ], + "schemaTo": "public", + "tableTo": "Reflink", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "RefLinkStat" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "customFieldId" + ], + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "widgetLogoFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Reflink" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReply" + }, + { + "nameExplicit": false, + "columns": [ + "savedReplyId" + ], + "schemaTo": "public", + "tableTo": "SavedReply", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "mediaLibraryFileId" + ], + "schemaTo": "public", + "tableTo": "MediaLibraryFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SavedReplyImage" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Sequence" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "stepId" + ], + "schemaTo": "public", + "tableTo": "SequenceStep", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": true, + "columns": [ + "enrollmentId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "ContactOnSequence", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "sequenceId" + ], + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "SequenceStep" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Spreadsheet" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Tag" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "tagId" + ], + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TagChannel" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TelegramChat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "createdBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Template" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "templateId" + ], + "schemaTo": "public", + "tableTo": "Template", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installFolderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installedBy" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstallation" + }, + { + "nameExplicit": false, + "columns": [ + "installationId" + ], + "schemaTo": "public", + "tableTo": "TemplateInstallation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TemplateInstalledResource" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Trigger" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Condition" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerExecution" + }, + { + "nameExplicit": false, + "columns": [ + "triggerId" + ], + "schemaTo": "public", + "tableTo": "Trigger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "TriggerStat" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "UserPersistentMenu" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Vendor" + }, + { + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Webhook" + }, + { + "nameExplicit": false, + "columns": [ + "webhookId" + ], + "schemaTo": "public", + "tableTo": "Webhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WebhookExecution" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappBusinessAccount" + }, + { + "nameExplicit": false, + "columns": [ + "answeredByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "initiatedByUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCall" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappCallPermission" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappFlow" + }, + { + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappMessageTemplate" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursDateOverride" + }, + { + "nameExplicit": false, + "columns": [ + "workingHoursId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "workingHoursId", + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "WorkingHours", + "columnsTo": [ + "id", + "workspaceId" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "tenantId" + ], + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "Workspace" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceBotMessageUsage_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": false, + "columns": [ + "ownerId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMac_ownerId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks", + "schema": "public", + "table": "WorkspaceMember" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsAgentResponseEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBotMessageEvent" + }, + { + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsBroadcastEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsContactEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsConversationEvent" + }, + { + "columns": [ + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsFlowNodeEvent" + }, + { + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsMessageEvent" + }, + { + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "AnalyticsSequenceEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks", + "schema": "public", + "table": "Attachment" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" + ], + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks", + "schema": "public", + "table": "AutomationThrottle" + }, + { + "columns": [ + "broadcastId", + "inboxId" + ], + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks", + "schema": "public", + "table": "BroadcastTarget" + }, + { + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveHourly" + }, + { + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActiveMonthly" + }, + { + "columns": [ + "workspaceId", + "contactId", + "activityType", + "referenceType", + "parentReferenceId", + "referenceId" + ], + "nameExplicit": true, + "name": "ContactActivity_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactActivity" + }, + { + "columns": [ + "workspaceId", + "contactInboxId", + "postId" + ], + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactInboxPost" + }, + { + "columns": [ + "workspaceId", + "contactId", + "messageId" + ], + "nameExplicit": true, + "name": "ContactKeywordMessage_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactKeywordMessage" + }, + { + "columns": [ + "broadcastId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnBroadcast" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactOnSequence" + }, + { + "columns": [ + "workspaceId", + "contactId" + ], + "nameExplicit": true, + "name": "ContactState_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactState" + }, + { + "columns": [ + "contactId", + "tagId" + ], + "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTag" + }, + { + "columns": [ + "tagChannelId", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks", + "schema": "public", + "table": "ContactToTagChannel" + }, + { + "columns": [ + "leaderboardId", + "contactId" + ], + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardParticipant" + }, + { + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks", + "schema": "public", + "table": "LeaderboardScoreEvent" + }, + { + "columns": [ + "id", + "createdAt" + ], + "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks", + "schema": "public", + "table": "Message" + }, + { + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks", + "schema": "public", + "table": "SequenceDispatch" + }, + { + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks", + "schema": "public", + "table": "TriggerContactHistory" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageShard_pkey", + "schema": "public", + "table": "MessageShard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "schema": "public", + "table": "ShardTimeRange", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "schema": "public", + "table": "AdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "schema": "public", + "table": "AdsConversionRule", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIAgent_pkey", + "schema": "public", + "table": "AIAgent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "schema": "public", + "table": "AIConversationEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "schema": "public", + "table": "AIConversationSource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "schema": "public", + "table": "AIEmbedding", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFile_pkey", + "schema": "public", + "table": "AIFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIFunction_pkey", + "schema": "public", + "table": "AIFunction", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "schema": "public", + "table": "AIHandoverBulkRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "schema": "public", + "table": "AIHandoverSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "schema": "public", + "table": "AIMCPServer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "schema": "public", + "table": "AnalyticsEmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Appointment_pkey", + "schema": "public", + "table": "Appointment", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "schema": "public", + "table": "AppointmentCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "schema": "public", + "table": "AppointmentCalendarAvailability", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "schema": "public", + "table": "AppointmentCalendarReminder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "schema": "public", + "table": "AppointmentReminderDispatch", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Account_pkey", + "schema": "public", + "table": "Account", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Invitation_pkey", + "schema": "public", + "table": "Invitation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Jwk_pkey", + "schema": "public", + "table": "Jwk", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Session_pkey", + "schema": "public", + "table": "Session", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "User_pkey", + "schema": "public", + "table": "User", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Verification_pkey", + "schema": "public", + "table": "Verification", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "schema": "public", + "table": "AutomatedResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BotField_pkey", + "schema": "public", + "table": "BotField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Broadcast_pkey", + "schema": "public", + "table": "Broadcast", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Cart_pkey", + "schema": "public", + "table": "Cart", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ChannelPost_pkey", + "schema": "public", + "table": "ChannelPost", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "schema": "public", + "table": "CoexistSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "schema": "public", + "table": "CommentAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "schema": "public", + "table": "CommentAutomationEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "schema": "public", + "table": "CommentAutomationMiss", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "schema": "public", + "table": "CommentAutomationReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConnectSession_pkey", + "schema": "public", + "table": "ConnectSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Connection_pkey", + "schema": "public", + "table": "Connection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Contact_pkey", + "schema": "public", + "table": "Contact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "schema": "public", + "table": "ContactCustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactInbox_pkey", + "schema": "public", + "table": "ContactInbox", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactNote_pkey", + "schema": "public", + "table": "ContactNote", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "schema": "public", + "table": "ContactOnSmartDelay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Conversation_pkey", + "schema": "public", + "table": "Conversation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "schema": "public", + "table": "ConversationParticipant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Coupon_pkey", + "schema": "public", + "table": "Coupon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CouponTopic_pkey", + "schema": "public", + "table": "CouponTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomField_pkey", + "schema": "public", + "table": "CustomField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "schema": "public", + "table": "DecisionConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "schema": "public", + "table": "DecisionProfile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCode_pkey", + "schema": "public", + "table": "DiscountCode", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DynamicImage_pkey", + "schema": "public", + "table": "DynamicImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceOpenHours_pkey", + "schema": "public", + "table": "EcommerceOpenHours", + "entityType": "pks" + }, + { + "columns": [ + "workspaceId" + ], + "nameExplicit": false, + "name": "EcommerceOrderCounter_pkey", + "schema": "public", + "table": "EcommerceOrderCounter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EcommerceSettings_pkey", + "schema": "public", + "table": "EcommerceSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "EmailTopic_pkey", + "schema": "public", + "table": "EmailTopic", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "AuditLog_pkey", + "schema": "public", + "table": "AuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "CustomDomain_pkey", + "schema": "public", + "table": "CustomDomain", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "License_pkey", + "schema": "public", + "table": "License", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "schema": "public", + "table": "PlatformAdmin", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tenant_pkey", + "schema": "public", + "table": "Tenant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "schema": "public", + "table": "TenantHelpItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserQuota_pkey", + "schema": "public", + "table": "UserQuota", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ErrorLog_pkey", + "schema": "public", + "table": "ErrorLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "schema": "public", + "table": "ExternalWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "schema": "public", + "table": "FacebookLeadAdsLead", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "schema": "public", + "table": "FacebookMarketingMessage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "File_pkey", + "schema": "public", + "table": "File", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Flow_pkey", + "schema": "public", + "table": "Flow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "schema": "public", + "table": "FlowAnalyticsSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "schema": "public", + "table": "FlowNodeStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowRun_pkey", + "schema": "public", + "table": "FlowRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "FlowVersion_pkey", + "schema": "public", + "table": "FlowVersion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Folder_pkey", + "schema": "public", + "table": "Folder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "schema": "public", + "table": "GoogleAdsSettings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "schema": "public", + "table": "IgStoryAutomation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Import_pkey", + "schema": "public", + "table": "Import", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "schema": "public", + "table": "InboundWebhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "schema": "public", + "table": "InboundWebhookRequest", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Inbox_pkey", + "schema": "public", + "table": "Inbox", + "entityType": "pks" + }, + { + "columns": [ + "inboxId" + ], + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "schema": "public", + "table": "InboxContactStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeam_pkey", + "schema": "public", + "table": "InboxTeam", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "schema": "public", + "table": "InboxTeamMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "schema": "public", + "table": "IntegrationActiveCampaign", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "schema": "public", + "table": "IntegrationApi", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Integration_pkey", + "schema": "public", + "table": "Integration", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "schema": "public", + "table": "IntegrationClaude", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "schema": "public", + "table": "IntegrationDeepseek", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "schema": "public", + "table": "IntegrationDrip", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "schema": "public", + "table": "IntegrationFacebookAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "schema": "public", + "table": "IntegrationGemini", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "schema": "public", + "table": "IntegrationGetResponse", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "schema": "public", + "table": "IntegrationGoogleAds", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "schema": "public", + "table": "IntegrationGoogleSheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "schema": "public", + "table": "IntegrationInstagram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "schema": "public", + "table": "IntegrationKlaviyo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "schema": "public", + "table": "IntegrationMailchimp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "schema": "public", + "table": "IntegrationMailerLite", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "schema": "public", + "table": "IntegrationMessenger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "schema": "public", + "table": "IntegrationMetaCatalog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "schema": "public", + "table": "IntegrationMoosend", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "schema": "public", + "table": "IntegrationOpenai", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "schema": "public", + "table": "IntegrationOpenrouter", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "schema": "public", + "table": "IntegrationSendGrid", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "schema": "public", + "table": "IntegrationSmtp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "schema": "public", + "table": "IntegrationTelegram", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "schema": "public", + "table": "IntegrationThreads", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "schema": "public", + "table": "IntegrationTiktok", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "schema": "public", + "table": "IntegrationWebchat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "schema": "public", + "table": "IntegrationWhatsapp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "schema": "public", + "table": "IntegrationZalo", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Leaderboard_pkey", + "schema": "public", + "table": "Leaderboard", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "schema": "public", + "table": "LeaderboardAuditLog", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MagicLink_pkey", + "schema": "public", + "table": "MagicLink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "schema": "public", + "table": "MediaLibraryFile", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "schema": "public", + "table": "MediaLibraryFolder", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "schema": "public", + "table": "MessageCleanup", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "schema": "public", + "table": "MessagingAdOperation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "schema": "public", + "table": "MessagingAdsConnection", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "schema": "public", + "table": "MessengerMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "schema": "public", + "table": "MetaCapiEvent", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "schema": "public", + "table": "MetaCatalogItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "schema": "public", + "table": "MetaCatalogSyncRun", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniApp_pkey", + "schema": "public", + "table": "MiniApp", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "schema": "public", + "table": "MiniAppPublication", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "schema": "public", + "table": "MiniAppSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "schema": "public", + "table": "MiniAppUpload", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Minigame_pkey", + "schema": "public", + "table": "Minigame", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigameContact_pkey", + "schema": "public", + "table": "MinigameContact", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "schema": "public", + "table": "MinigamePlay", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "DiscountCodeRedemption_pkey", + "schema": "public", + "table": "DiscountCodeRedemption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderItem_pkey", + "schema": "public", + "table": "OrderItem", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Order_pkey", + "schema": "public", + "table": "Order", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "OrderStatusHistory_pkey", + "schema": "public", + "table": "OrderStatusHistory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Credential_pkey", + "schema": "public", + "table": "PlatformCredential", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Product_pkey", + "schema": "public", + "table": "Product", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductAddon_pkey", + "schema": "public", + "table": "ProductAddon", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductCategory_pkey", + "schema": "public", + "table": "ProductCategory", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariant_pkey", + "schema": "public", + "table": "ProductVariant", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "schema": "public", + "table": "ProductVariantOption", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "schema": "public", + "table": "QuestionnaireAnswer", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Questionnaire_pkey", + "schema": "public", + "table": "Questionnaire", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "schema": "public", + "table": "QuestionnaireQuestion", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "schema": "public", + "table": "QuestionnaireSubmission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Reflink_pkey", + "schema": "public", + "table": "Reflink", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "schema": "public", + "table": "ResponseSlaPolicy", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReply_pkey", + "schema": "public", + "table": "SavedReply", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "schema": "public", + "table": "SavedReplyImage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Sequence_pkey", + "schema": "public", + "table": "Sequence", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SequenceStep_pkey", + "schema": "public", + "table": "SequenceStep", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "schema": "public", + "table": "Spreadsheet", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "SystemField_pkey", + "schema": "public", + "table": "SystemField", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Tag_pkey", + "schema": "public", + "table": "Tag", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TagChannel_pkey", + "schema": "public", + "table": "TagChannel", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TelegramChat_pkey", + "schema": "public", + "table": "TelegramChat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Template_pkey", + "schema": "public", + "table": "Template", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "schema": "public", + "table": "TemplateInstallation", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "schema": "public", + "table": "TemplateInstalledResource", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Trigger_pkey", + "schema": "public", + "table": "Trigger", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Condition_pkey", + "schema": "public", + "table": "Condition", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "schema": "public", + "table": "TriggerExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "TriggerStat_pkey", + "schema": "public", + "table": "TriggerStat", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "schema": "public", + "table": "UserDeviceToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "schema": "public", + "table": "UserPersistentMenu", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", + "schema": "public", + "table": "Vendor", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Webhook_pkey", + "schema": "public", + "table": "Webhook", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "schema": "public", + "table": "WebhookExecution", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "schema": "public", + "table": "WhatsappBusinessAccount", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "schema": "public", + "table": "WhatsappCall", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "schema": "public", + "table": "WhatsappCallPermission", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "schema": "public", + "table": "WhatsappCoexistStaging", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "schema": "public", + "table": "WhatsappFlow", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "schema": "public", + "table": "WhatsappMessageTemplate", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "schema": "public", + "table": "WhatsappSignupSession", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHours_pkey", + "schema": "public", + "table": "WorkingHours", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "schema": "public", + "table": "WorkingHoursDateOverride", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "schema": "public", + "table": "WorkingHoursInterval", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "schema": "public", + "table": "WorkingHoursMember", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Workspace_pkey", + "schema": "public", + "table": "Workspace", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "schema": "public", + "table": "WorkspaceApiToken", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceBotMessageUsage_pkey", + "schema": "public", + "table": "WorkspaceBotMessageUsage", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceDeletionRecord_pkey", + "schema": "public", + "table": "WorkspaceDeletionRecord", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "schema": "public", + "table": "WorkspaceMac", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "schema": "public", + "table": "WorkspaceMember", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + "contactInboxId", + "sourceId", + "createdAt" + ], + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques", + "schema": "public", + "table": "Message" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques", + "schema": "public", + "table": "ProductCategory" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "nameExplicit": true, + "columns": [ + "token" + ], + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques", + "schema": "public", + "table": "UserDeviceToken" + }, + { + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHours" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "userId" + ], + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkingHoursMember" + }, + { + "nameExplicit": true, + "columns": [ + "tokenHash" + ], + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceApiToken" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart" + ], + "nullsNotDistinct": false, + "name": "WorkspaceBotMessageUsage_workspaceId_periodStart_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceBotMessageUsage" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceDeletionRecord_workspaceId_key", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceDeletionRecord" + }, + { + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques", + "schema": "public", + "table": "WorkspaceMac" + }, + { + "nameExplicit": false, + "columns": [ + "userId" + ], + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "schema": "public", + "table": "UserQuota", + "entityType": "uniques" + }, + { + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "schema": "public", + "table": "WorkspaceUsage", + "entityType": "uniques" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "AdsConversionEvent" + }, + { + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks", + "schema": "public", + "table": "Broadcast" + }, + { + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks", + "schema": "public", + "table": "ConnectSession" + }, + { + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks", + "schema": "public", + "table": "Connection" + }, + { + "value": "(\"activityType\" = 'flowExecuted' AND \"referenceType\" = 'flow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'flowNodeExecuted' AND \"referenceType\" = 'flowNode' AND \"parentReferenceId\" <> 0) OR (\"activityType\" = 'automatedResponseMatched' AND \"referenceType\" = 'automatedResponse' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'formCompleted' AND \"referenceType\" = 'whatsappFlow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageSent' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageDelivered' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageOpened' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageClicked' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0)", + "name": "ContactActivity_allowed_pair_check", + "entityType": "checks", + "schema": "public", + "table": "ContactActivity" + }, + { + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", + "entityType": "checks", + "schema": "public", + "table": "DiscountCode" + }, + { + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", + "entityType": "checks", + "schema": "public", + "table": "EcommerceSettings" + }, + { + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks", + "schema": "public", + "table": "GoogleAdsConversionEvent" + }, + { + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks", + "schema": "public", + "table": "IntegrationWhatsapp" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdOperation" + }, + { + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks", + "schema": "public", + "table": "MessagingAdsConnection" + }, + { + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks", + "schema": "public", + "table": "MetaCapiEvent" + }, + { + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks", + "schema": "public", + "table": "QuestionnaireQuestion" + }, + { + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks", + "schema": "public", + "table": "ResponseSlaPolicy" + }, + { + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", + "entityType": "checks", + "schema": "public", + "table": "Vendor" + }, + { + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks", + "schema": "public", + "table": "WhatsappSignupSession" + }, + { + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + }, + { + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks", + "schema": "public", + "table": "WorkingHoursInterval" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/database/src/repositories/workspace-deletion-record/repository.ts b/packages/database/src/repositories/workspace-deletion-record/repository.ts index 63e00b9d98..7602565c5d 100644 --- a/packages/database/src/repositories/workspace-deletion-record/repository.ts +++ b/packages/database/src/repositories/workspace-deletion-record/repository.ts @@ -7,8 +7,6 @@ import { eq, ilike, or, - type SQL, - sql, } from "../../client" import { contactModel, @@ -188,21 +186,20 @@ class WorkspaceDeletionRecordRepository { search?: string tenantId?: string }) { - const conditions: SQL[] = [sql`TRUE`] - if (input.tenantId) { - conditions.push(eq(workspaceDeletionRecordModel.tenantId, input.tenantId)) - } - if (input.search) { - const pattern = `%${input.search}%` - const searchCondition = or( - ilike(workspaceDeletionRecordModel.workspaceName, pattern), - ilike(workspaceDeletionRecordModel.ownerEmail, pattern), - ) - if (searchCondition) { - conditions.push(searchCondition) - } - } - const where = and(...conditions) + const where = and( + input.tenantId + ? eq(workspaceDeletionRecordModel.tenantId, input.tenantId) + : undefined, + input.search + ? or( + ilike( + workspaceDeletionRecordModel.workspaceName, + `%${input.search}%`, + ), + ilike(workspaceDeletionRecordModel.ownerEmail, `%${input.search}%`), + ) + : undefined, + ) const [data, total] = await Promise.all([ db .select() diff --git a/packages/database/src/schema/workspace-deletion-record.ts b/packages/database/src/schema/workspace-deletion-record.ts index 5642e08f7e..74e1af804a 100644 --- a/packages/database/src/schema/workspace-deletion-record.ts +++ b/packages/database/src/schema/workspace-deletion-record.ts @@ -118,10 +118,6 @@ export const workspaceDeletionRecordModel = pgTable( }, (table) => [ unique("WorkspaceDeletionRecord_workspaceId_key").on(table.workspaceId), - index("WorkspaceDeletionRecord_workspaceName_idx").on(table.workspaceName), index("WorkspaceDeletionRecord_ownerEmail_idx").on(table.ownerEmail), - index("WorkspaceDeletionRecord_deletionRequestedByEmail_idx").on( - table.deletionRequestedByEmail, - ), ], ) From bca84336c68bfde8279cff6d38b28ce57041363d Mon Sep 17 00:00:00 2001 From: Real Codesiman Date: Sun, 25 Oct 2026 09:23:46 +0700 Subject: [PATCH 6/7] fix(workspace): consolidate workspace purge migrations Preserve concurrent index creation and retained billing data in ordered migrations. --- .../__tests__/purge-fk-indexes.test.ts | 4 +- .../snapshot.json | 2 +- .../snapshot.json | 3 +- .../snapshot.json | 4 +- .../snapshot.json | 95 +- .../snapshot.json | 5 +- .../snapshot.json | 3 +- .../snapshot.json | 4 +- .../snapshot.json | 4 +- .../snapshot.json | 4 +- .../snapshot.json | 2 +- .../snapshot.json | 2 +- .../snapshot.json | 3 +- .../snapshot.json | 4 +- .../20261020081842_add_license/snapshot.json | 5 +- .../snapshot.json | 4 +- .../20261023162208_ecommerce/snapshot.json | 5 +- .../snapshot.json | 61667 --------------- .../migration.sql | 70 - .../snapshot.json | 61898 --------------- .../migration.sql | 14 - .../migration.sql | 42 - .../migration.sql | 36 - .../snapshot.json | 62255 --------------- .../migration.sql | 9 - .../snapshot.json | 62276 ---------------- .../migration.sql | 2 - .../migration.sql | 0 .../snapshot.json | 54649 +++++++------- .../migration.sql | 207 + .../snapshot.json | 54587 +++++++------- .../migration.sql | 21 +- .../snapshot.json | 10 +- .../migration.sql | 20 + .../snapshot.json | 51 +- 35 files changed, 55000 insertions(+), 302967 deletions(-) delete mode 100644 packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json delete mode 100644 packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql delete mode 100644 packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json delete mode 100644 packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql delete mode 100644 packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql delete mode 100644 packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql delete mode 100644 packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json delete mode 100644 packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql delete mode 100644 packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json delete mode 100644 packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql rename packages/database/drizzle/{20261024091012_add_purge_fk_indexes_partitioned => 20261025020711_add_workspace_purge_partitioned_indexes}/migration.sql (100%) rename packages/database/drizzle/{20261024103711_add_workspace_purge_indexes => 20261025020711_add_workspace_purge_partitioned_indexes}/snapshot.json (81%) create mode 100644 packages/database/drizzle/20261025020838_add_workspace_purge_indexes/migration.sql rename packages/database/drizzle/{20261024103305_add_workspace_purge_hot_indexes => 20261025020838_add_workspace_purge_indexes}/snapshot.json (81%) rename packages/database/drizzle/{20261024120555_retain_workspace_mac_billing => 20261025021120_retain_workspace_billing}/migration.sql (69%) rename packages/database/drizzle/{20261025013132_remove_workspace_deletion_record_unused_indexes => 20261025021120_retain_workspace_billing}/snapshot.json (99%) create mode 100644 packages/database/drizzle/20261025021303_add_workspace_mac_owner_indexes/migration.sql rename packages/database/drizzle/{20261024120555_retain_workspace_mac_billing => 20261025021303_add_workspace_mac_owner_indexes}/snapshot.json (99%) diff --git a/packages/database/__tests__/purge-fk-indexes.test.ts b/packages/database/__tests__/purge-fk-indexes.test.ts index 409e0b214d..4937514791 100644 --- a/packages/database/__tests__/purge-fk-indexes.test.ts +++ b/packages/database/__tests__/purge-fk-indexes.test.ts @@ -13,11 +13,11 @@ import { sequenceDispatchModel } from "../src/schema/sequence-dispatch" const NORMAL_MIGRATION_PATH = join( import.meta.dirname, - "../drizzle/20261024092420_add_purge_fk_indexes/migration.sql", + "../drizzle/20261025020838_add_workspace_purge_indexes/migration.sql", ) const PARTITIONED_MIGRATION_PATH = join( import.meta.dirname, - "../drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql", + "../drizzle/20261025020711_add_workspace_purge_partitioned_indexes/migration.sql", ) const normalTargets = [ diff --git a/packages/database/drizzle/20261003155653_add_connection_tables/snapshot.json b/packages/database/drizzle/20261003155653_add_connection_tables/snapshot.json index bcdb94f6fd..c294a6412f 100644 --- a/packages/database/drizzle/20261003155653_add_connection_tables/snapshot.json +++ b/packages/database/drizzle/20261003155653_add_connection_tables/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "6910e6fe-7167-4fdc-8493-a5c74c8693e9", "prevIds": [ - "a1f7c613-421d-4bd6-a1eb-1f8317bc11fe" + "4860d7e1-09ce-4eb2-9d69-62529ea3d3ac" ], "ddl": [ { diff --git a/packages/database/drizzle/20261004155651_add_target_claim_leases/snapshot.json b/packages/database/drizzle/20261004155651_add_target_claim_leases/snapshot.json index 61991b250f..98e9358ec0 100644 --- a/packages/database/drizzle/20261004155651_add_target_claim_leases/snapshot.json +++ b/packages/database/drizzle/20261004155651_add_target_claim_leases/snapshot.json @@ -3,7 +3,6 @@ "dialect": "postgres", "id": "b842ea20-1be6-4ae9-9b04-58e92c04b451", "prevIds": [ - "4860d7e1-09ce-4eb2-9d69-62529ea3d3ac", "6910e6fe-7167-4fdc-8493-a5c74c8693e9" ], "ddl": [ @@ -49254,4 +49253,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261005110425_add_integration_openai_workspace_unique/snapshot.json b/packages/database/drizzle/20261005110425_add_integration_openai_workspace_unique/snapshot.json index 3bea7717c5..99b2fe0d1d 100644 --- a/packages/database/drizzle/20261005110425_add_integration_openai_workspace_unique/snapshot.json +++ b/packages/database/drizzle/20261005110425_add_integration_openai_workspace_unique/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "e2ba6134-45b2-4db8-a4fb-01901251118c", "prevIds": [ - "b842ea20-1be6-4ae9-9b04-58e92c04b451" + "31be9278-7dc3-438c-a09e-ccf0461696c1" ], "ddl": [ { @@ -49274,4 +49274,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261005154644_add_decision_foundation/snapshot.json b/packages/database/drizzle/20261005154644_add_decision_foundation/snapshot.json index ddf39c8a21..97088e84c1 100644 --- a/packages/database/drizzle/20261005154644_add_decision_foundation/snapshot.json +++ b/packages/database/drizzle/20261005154644_add_decision_foundation/snapshot.json @@ -3,8 +3,7 @@ "dialect": "postgres", "id": "20b14807-5c10-4aae-a20e-025c4c6ca9b5", "prevIds": [ - "85c1b547-6888-45be-970f-d271ec07f0ad", - "b842ea20-1be6-4ae9-9b04-58e92c04b451" + "e2ba6134-45b2-4db8-a4fb-01901251118c" ], "ddl": [ { @@ -13127,8 +13126,8 @@ "schema": "public", "table": "DecisionProfile" }, - { - "type": "jsonb", + { + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, @@ -13138,21 +13137,21 @@ "name": "contract", "entityType": "columns", "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thresholdConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, + "table": "DecisionProfile" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "thresholdConfig", + "entityType": "columns", + "schema": "public", + "table": "DecisionProfile" + }, { "type": "bigint", "typeSchema": null, @@ -30173,11 +30172,11 @@ "schema": "public", "table": "ShardTimeRange" }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", + { + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -35057,30 +35056,30 @@ "concurrently": false, "name": "DecisionProfile_workspaceId_idx", "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "connectionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_connectionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, + "schema": "public", + "table": "DecisionProfile" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "connectionId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes", + "schema": "public", + "table": "DecisionProfile" + }, { "nameExplicit": true, "columns": [ diff --git a/packages/database/drizzle/20261007093130_add_reflink_widget_branding/snapshot.json b/packages/database/drizzle/20261007093130_add_reflink_widget_branding/snapshot.json index e6410a61a7..1ccef78ce3 100644 --- a/packages/database/drizzle/20261007093130_add_reflink_widget_branding/snapshot.json +++ b/packages/database/drizzle/20261007093130_add_reflink_widget_branding/snapshot.json @@ -3,8 +3,7 @@ "dialect": "postgres", "id": "d086da49-090d-48b5-b61d-4e3c63ab0d70", "prevIds": [ - "31be9278-7dc3-438c-a09e-ccf0461696c1", - "e2ba6134-45b2-4db8-a4fb-01901251118c" + "20b14807-5c10-4aae-a20e-025c4c6ca9b5" ], "ddl": [ { @@ -49357,4 +49356,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261012135508_add_custom_field_decision_context_opt_in/snapshot.json b/packages/database/drizzle/20261012135508_add_custom_field_decision_context_opt_in/snapshot.json index f4fa9635ea..c75c651f98 100644 --- a/packages/database/drizzle/20261012135508_add_custom_field_decision_context_opt_in/snapshot.json +++ b/packages/database/drizzle/20261012135508_add_custom_field_decision_context_opt_in/snapshot.json @@ -3,8 +3,7 @@ "dialect": "postgres", "id": "1743a55e-400f-4994-a1ed-c285dbf2e55a", "prevIds": [ - "20b14807-5c10-4aae-a20e-025c4c6ca9b5", - "a09ed26e-6f5c-4cc6-a1af-7eb3a535b6be" + "d98f261b-c7cf-4dad-ad73-e1b81501a3fe" ], "ddl": [ { diff --git a/packages/database/drizzle/20261012155852_drop_facebook_lead_ads_automation_flow_id/snapshot.json b/packages/database/drizzle/20261012155852_drop_facebook_lead_ads_automation_flow_id/snapshot.json index 19c2e3464e..1853f35877 100644 --- a/packages/database/drizzle/20261012155852_drop_facebook_lead_ads_automation_flow_id/snapshot.json +++ b/packages/database/drizzle/20261012155852_drop_facebook_lead_ads_automation_flow_id/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "2dbd145e-e075-4f94-a8be-cc77342ed529", "prevIds": [ - "d98f261b-c7cf-4dad-ad73-e1b81501a3fe" + "1743a55e-400f-4994-a1ed-c285dbf2e55a" ], "ddl": [ { @@ -51880,4 +51880,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261013051918_add_attachment_keep_original/snapshot.json b/packages/database/drizzle/20261013051918_add_attachment_keep_original/snapshot.json index 3f9201c01a..7bbb1edcfa 100644 --- a/packages/database/drizzle/20261013051918_add_attachment_keep_original/snapshot.json +++ b/packages/database/drizzle/20261013051918_add_attachment_keep_original/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "15353b77-f187-4c27-94d7-11a69acb3a39", "prevIds": [ - "e05ed887-8290-44fd-9d2d-2fa89a25ce6f" + "d6148376-ca76-4971-b786-46d2547ff0c0" ], "ddl": [ { @@ -51666,4 +51666,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261013120000_widen_broadcast_occurrence_slot_key/snapshot.json b/packages/database/drizzle/20261013120000_widen_broadcast_occurrence_slot_key/snapshot.json index 447ac0cb79..66f8c7a662 100644 --- a/packages/database/drizzle/20261013120000_widen_broadcast_occurrence_slot_key/snapshot.json +++ b/packages/database/drizzle/20261013120000_widen_broadcast_occurrence_slot_key/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "011e0504-d961-46f5-abed-fb43f7965998", "prevIds": [ - "d6148376-ca76-4971-b786-46d2547ff0c0" + "15353b77-f187-4c27-94d7-11a69acb3a39" ], "ddl": [ { @@ -52589,4 +52589,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261016131625_add_inbox_to_analytics_events/snapshot.json b/packages/database/drizzle/20261016131625_add_inbox_to_analytics_events/snapshot.json index ccb7c1e814..ad42f6fa34 100644 --- a/packages/database/drizzle/20261016131625_add_inbox_to_analytics_events/snapshot.json +++ b/packages/database/drizzle/20261016131625_add_inbox_to_analytics_events/snapshot.json @@ -55158,4 +55158,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261017032944_add_decision_profile_global_router/snapshot.json b/packages/database/drizzle/20261017032944_add_decision_profile_global_router/snapshot.json index 4e06bb2504..2790979e28 100644 --- a/packages/database/drizzle/20261017032944_add_decision_profile_global_router/snapshot.json +++ b/packages/database/drizzle/20261017032944_add_decision_profile_global_router/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "d58fa2c5-f293-434e-ab14-6714e6e264c3", "prevIds": [ - "1743a55e-400f-4994-a1ed-c285dbf2e55a" + "d40b0c44-5d43-4871-8cbc-425e3f6de01d" ], "ddl": [ { diff --git a/packages/database/drizzle/20261018080214_add_saved_reply_images/snapshot.json b/packages/database/drizzle/20261018080214_add_saved_reply_images/snapshot.json index b477755b66..91810bb4a5 100644 --- a/packages/database/drizzle/20261018080214_add_saved_reply_images/snapshot.json +++ b/packages/database/drizzle/20261018080214_add_saved_reply_images/snapshot.json @@ -3,7 +3,6 @@ "dialect": "postgres", "id": "f5221104-75a1-41c6-9680-2e13ee68f614", "prevIds": [ - "d40b0c44-5d43-4871-8cbc-425e3f6de01d", "d58fa2c5-f293-434e-ab14-6714e6e264c3" ], "ddl": [ @@ -55985,4 +55984,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261019101422_add_platform_admin/snapshot.json b/packages/database/drizzle/20261019101422_add_platform_admin/snapshot.json index db8d8fe9f0..79748022e6 100644 --- a/packages/database/drizzle/20261019101422_add_platform_admin/snapshot.json +++ b/packages/database/drizzle/20261019101422_add_platform_admin/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "cacc013e-a5e7-4a43-bca9-f8279eeaaf69", "prevIds": [ - "797ff57e-73e6-4078-b781-47d2c134f823" + "ef97037c-2791-40cb-ba1c-00e48e51652a" ], "ddl": [ { @@ -56910,4 +56910,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261020081842_add_license/snapshot.json b/packages/database/drizzle/20261020081842_add_license/snapshot.json index 09e98b31eb..eaa445cb78 100644 --- a/packages/database/drizzle/20261020081842_add_license/snapshot.json +++ b/packages/database/drizzle/20261020081842_add_license/snapshot.json @@ -3,8 +3,7 @@ "dialect": "postgres", "id": "1a1f6ff7-a96e-4b65-9225-5309da444b4a", "prevIds": [ - "cacc013e-a5e7-4a43-bca9-f8279eeaaf69", - "ef97037c-2791-40cb-ba1c-00e48e51652a" + "cacc013e-a5e7-4a43-bca9-f8279eeaaf69" ], "ddl": [ { @@ -57521,4 +57520,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261023001528_contact_activity_store/snapshot.json b/packages/database/drizzle/20261023001528_contact_activity_store/snapshot.json index 06a377e9dc..bd6708652d 100644 --- a/packages/database/drizzle/20261023001528_contact_activity_store/snapshot.json +++ b/packages/database/drizzle/20261023001528_contact_activity_store/snapshot.json @@ -3,7 +3,7 @@ "dialect": "postgres", "id": "335fec36-c7cc-45ef-ab96-7b8d7cea12d9", "prevIds": [ - "1a1f6ff7-a96e-4b65-9225-5309da444b4a" + "4b3a5851-1efd-4345-b420-c0de0e154401" ], "ddl": [ { @@ -57983,4 +57983,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261023162208_ecommerce/snapshot.json b/packages/database/drizzle/20261023162208_ecommerce/snapshot.json index 2fe635bcfc..12d9ee4eda 100644 --- a/packages/database/drizzle/20261023162208_ecommerce/snapshot.json +++ b/packages/database/drizzle/20261023162208_ecommerce/snapshot.json @@ -3,8 +3,7 @@ "dialect": "postgres", "id": "edf6de11-00e6-44b1-8ce9-4a886d9a7a65", "prevIds": [ - "15353b77-f187-4c27-94d7-11a69acb3a39", - "4b3a5851-1efd-4345-b420-c0de0e154401" + "335fec36-c7cc-45ef-ab96-7b8d7cea12d9" ], "ddl": [ { @@ -61602,4 +61601,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json b/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json deleted file mode 100644 index bf808de2b0..0000000000 --- a/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/snapshot.json +++ /dev/null @@ -1,61667 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "bd0d6e05-0879-4d7b-a006-d9f2023b154c", - "prevIds": [ - "edf6de11-00e6-44b1-8ce9-4a886d9a7a65" - ], - "ddl": [ - { - "values": [ - "pending", - "sent", - "failed", - "skipped_no_scope", - "skipped_region" - ], - "name": "adsConversionCapiStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automatic", - "rule", - "trigger" - ], - "name": "adsConversionEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "facebook", - "messenger", - "instagram" - ], - "name": "adsConversionChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "lead", - "purchase" - ], - "name": "adsConversionEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiConversationEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "success", - "error" - ], - "name": "aiConversationSourceStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "document", - "image", - "url", - "web_search" - ], - "name": "aiConversationSourceType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enable", - "disable" - ], - "name": "aiHandoverBulkAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "running", - "cancelling", - "completed", - "failed", - "cancelled" - ], - "name": "aiHandoverBulkStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automated_response", - "ai_agent", - "flow", - "none" - ], - "name": "analyticsBotResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "success", - "fallback" - ], - "name": "analyticsBotResult", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flow", - "agent", - "fallback" - ], - "name": "analyticsBotRouteType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message:sent", - "message:delivered", - "message:seen", - "message:failed", - "flow:clicked" - ], - "name": "analyticsBroadcastEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contact_created", - "contact_deleted", - "contact_blocked" - ], - "name": "analyticsContactEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "human" - ], - "name": "analyticsContactSenderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "conversation_created", - "conversation_assigned", - "conversation_unassigned", - "conversation_transferred_to_human", - "conversation_transferred_to_bot", - "conversation_followed", - "conversation_unfollowed", - "conversation_archived", - "conversation_unarchived" - ], - "name": "analyticsConversationEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message_human_sent", - "message_bot_sent" - ], - "name": "analyticsMessageEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "ingested", - "failed" - ], - "name": "analyticsStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "synced", - "failed" - ], - "name": "appointmentExternalSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationTypeSnapshot", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "cancelled" - ], - "name": "appointmentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rollingDays", - "dateRange", - "specificDay", - "anyFutureDate" - ], - "name": "appointmentScheduleWindowType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "minutes", - "hours", - "days" - ], - "name": "appointmentReminderTimingUnit", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sent", - "cancelled", - "failed" - ], - "name": "appointmentReminderDispatchStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "image", - "video", - "audio", - "gif", - "file" - ], - "name": "fileType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inbound", - "outbound" - ], - "name": "automatedResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "defaultReply" - ], - "name": "automationThrottleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "now", - "future", - "recurring" - ], - "name": "broadcastScheduleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "sent", - "sending", - "cancelled", - "draft", - "failed", - "recurring" - ], - "name": "broadcastStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "created", - "skipped", - "missed" - ], - "name": "broadcastOccurrenceOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "catchUpSuperseded", - "paused", - "draft", - "blockedOwner", - "planLimit", - "noTargets", - "undeliverable", - "excludedDate" - ], - "name": "broadcastOccurrenceReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "coexistChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "messages" - ], - "name": "coexistMessengerSyncPhase", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "init", - "running", - "succeeded", - "failed", - "partial", - "waiting" - ], - "name": "coexistRunStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "coexist", - "contact_scan" - ], - "name": "coexistRunType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "instagramFacebook", - "threads", - "tiktok" - ], - "name": "commentAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "equal", - "contain" - ], - "name": "commentExcludeKeywordsType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "sent", - "failed" - ], - "name": "commentAutomationEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "public", - "private" - ], - "name": "commentAutomationReplyChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "AIAgent", - "text", - "flow", - "none" - ], - "name": "commentAutomationReplyType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "outsideSchedule", - "postNotMatched", - "commentIsReply", - "keywordsNotMatched", - "mentionCountNotMatched", - "contactNotNew", - "alreadyRepliedOnPost", - "engagedOnOtherPost" - ], - "name": "commentAutomationMissReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "male", - "female", - "unknown" - ], - "name": "gender", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "captured", - "unavailable", - "failed" - ], - "name": "contactInboxProfileSnapshotState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink", - "image", - "video", - "audio", - "gif", - "file", - "storyMention" - ], - "name": "lastUserInputType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inboundReceived", - "standbyReceived", - "controlPassed", - "controlTaken", - "taken", - "released", - "passed", - "serviceSent", - "serviceRejected" - ], - "name": "threadControlEvent", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owned", - "standby", - "idle" - ], - "name": "threadControlState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "scheduled", - "completed", - "failed", - "canceled" - ], - "name": "ContactOnSmartDelayStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "waitNode", - "followUp", - "quickReplyFollowUp" - ], - "name": "ContactOnSmartDelayType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "archived" - ], - "name": "couponTopicStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "shortText", - "email", - "phoneNumber", - "number", - "date", - "datetime", - "boolean", - "longText" - ], - "name": "customFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "passed", - "failed" - ], - "name": "DecisionConnectionTestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "typesafe", - "systemOneCompatible", - "openrouterDecision" - ], - "name": "DecisionProviderKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionProfileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "entireOrder", - "category", - "products" - ], - "name": "discountAppliesTo", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "everyone", - "specificCustomers" - ], - "name": "discountEligibility", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "amount", - "quantity" - ], - "name": "discountMinimumType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "percentage", - "fixedAmount", - "freeShipping" - ], - "name": "discountType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "externalLink", - "flow", - "productPage" - ], - "name": "checkoutMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "left", - "leftSpace", - "right", - "rightSpace" - ], - "name": "currencyPosition", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "flow", - "none" - ], - "name": "orderConfirmationMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bigSquare", - "mediumRectangle" - ], - "name": "productImageSize", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "delivery", - "pickup", - "deliveryAndPickup" - ], - "name": "shippingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "list", - "listWithoutImage", - "card", - "cardSquare", - "image", - "imageSquare" - ], - "name": "webshopProductView", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "import", - "generic", - "export" - ], - "name": "fileContextType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "uploaded", - "failed" - ], - "name": "fileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "tag", - "flow", - "customField", - "automatedResponse", - "trigger", - "webhook", - "sequence", - "emailTopic", - "fbComment", - "igComment", - "igStory", - "outboundAutomatedResponse" - ], - "name": "folderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "gclid", - "gbraid" - ], - "name": "googleAdsClickIdType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flowStep", - "triggerAction" - ], - "name": "googleAdsEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sending", - "sent", - "processed", - "failed", - "skipped_no_account", - "skipped_expired" - ], - "name": "googleAdsEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "processing", - "timeout" - ], - "name": "googleAdsFailureStage", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "success", - "partial_success", - "failed", - "unknown", - "timed_out" - ], - "name": "googleAdsProcessingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "storyReply", - "storyMention" - ], - "name": "igStoryAutomationTrigger", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "instagram", - "instagramFacebook" - ], - "name": "igStoryAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "csv", - "xlsx", - "xls", - "json" - ], - "name": "importFormat", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "importStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "coupons", - "products", - "flow" - ], - "name": "importType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "received", - "processing", - "processed", - "completedWithErrors", - "skipped", - "failed" - ], - "name": "inboundWebhookRequestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "oauth", - "fbe" - ], - "name": "metaCatalogAuthMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "invalid" - ], - "name": "metaCatalogConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "idle", - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogImportStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallRecordingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallTranscriptionMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending_verification", - "registered", - "failed" - ], - "name": "whatsappRegistrationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "whatsapp", - "zalo", - "telegram", - "tiktok", - "threads", - "email", - "gamification" - ], - "name": "leaderboardPlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "active", - "paused", - "finished" - ], - "name": "leaderboardStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "adjust", - "resetOne", - "resetAll", - "ban", - "unban" - ], - "name": "leaderboardAuditAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rule", - "flow", - "referral", - "manual", - "reset" - ], - "name": "leaderboardScoreSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink" - ], - "name": "contentType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message", - "comment" - ], - "name": "messageKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "incoming", - "outgoing", - "activity" - ], - "name": "messageType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "contact", - "system", - "user", - "api" - ], - "name": "senderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "MessageCleanupStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "messagingAdChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "campaignCreated", - "adSetCreated", - "creativeCreated", - "adCreated", - "failed" - ], - "name": "messagingAdCreateState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "publishing", - "published", - "pausing", - "paused", - "deleting", - "deleted", - "publishFailed" - ], - "name": "messagingAdPublishState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "push", - "import" - ], - "name": "metaCatalogItemDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "all", - "category", - "selected" - ], - "name": "metaCatalogSyncScope", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "web" - ], - "name": "miniAppSubmissionSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "submitted" - ], - "name": "miniAppUploadStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "luckyWheel", - "jackpot", - "gashapon", - "drawLots", - "scratchOff" - ], - "name": "minigameType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "user", - "apiToken", - "system", - "contact" - ], - "name": "orderActorType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "webshop", - "api", - "manual" - ], - "name": "orderSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "accepted", - "shipped", - "concluded", - "cancelled" - ], - "name": "orderStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "cod" - ], - "name": "paymentMethod", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "unpaid", - "paid", - "refunded" - ], - "name": "paymentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "pickup" - ], - "name": "shippingType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "dont_track", - "track" - ], - "name": "inventoryPolicy", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "number", - "email", - "phone", - "multipleChoice", - "date", - "datetime", - "image", - "file", - "location", - "websiteLink" - ], - "name": "questionnaireQuestionType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inProgress", - "completed", - "cancelled", - "failed", - "timeout" - ], - "name": "questionnaireSubmissionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "refLink", - "qrCode" - ], - "name": "ReflinkType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "me" - ], - "name": "SystemFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "creator", - "administrator", - "member", - "restricted", - "left", - "kicked" - ], - "name": "telegramBotChatStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "private", - "group", - "supergroup", - "channel" - ], - "name": "telegramChatType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "installing", - "completed", - "partial", - "failed" - ], - "name": "templateInstallationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flows", - "products", - "aiFunctions", - "aiAgents", - "calendars", - "webchats", - "keywords", - "entryPointLinks", - "triggers", - "fbCommentAutomations", - "settings", - "customFields", - "tags", - "productCategories" - ], - "name": "templateResourceCategory", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ios", - "android" - ], - "name": "devicePlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "userInitiated", - "businessInitiated" - ], - "name": "whatsappCallDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "completed", - "failed", - "rejected", - "canceled" - ], - "name": "whatsappCallOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ringing", - "accepted", - "rejected", - "completed", - "failed" - ], - "name": "whatsappCallStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "accept", - "reject" - ], - "name": "whatsappCallPermissionResponse", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "allTime", - "oncePerHour", - "oncePerDay" - ], - "name": "defaultReplyFrequency", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "full", - "read_only" - ], - "name": "WorkspaceApiTokenPermission", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owner", - "agent" - ], - "name": "workspaceMemberRole", - "entityType": "enums", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageShard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ShardTimeRange", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionRule", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIAgent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationSource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFunction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverBulkRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIMCPServer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsAgentResponseEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBotMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBroadcastEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsContactEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsConversationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsFlowNodeEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsSequenceEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsEmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsManifestStatus", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Appointment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarAvailability", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarReminder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentReminderDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Attachment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Jwk", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "User", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomatedResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomationThrottle", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BotField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Broadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrenceOccurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastTarget", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Cart", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ChannelPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CoexistSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationMiss", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConnectSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Connection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Contact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveHourly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveMonthly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactCustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInboxPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactNote", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnBroadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSmartDelay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Conversation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConversationParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Coupon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CouponTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionProfile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCode", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DynamicImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOpenHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOrderCounter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomDomain", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "License", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformAdmin", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tenant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TenantHelpItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserQuota", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceUsage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ErrorLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ExternalWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsLead", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessagesAuth", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "File", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Flow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowAnalyticsSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowNodeStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowVersion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Folder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IgStoryAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Import", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhookRequest", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Inbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxContactStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeam", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeamMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationActiveCampaign", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationApi", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Integration", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationClaude", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDeepseek", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDrip", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationFacebookAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGemini", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGetResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleSheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationInstagram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationKlaviyo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailchimp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailerLite", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMessenger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMetaCatalog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMoosend", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenai", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenaiCompatible", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenrouter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOutlookCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSendGrid", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSmtp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTelegram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationThreads", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTiktok", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWebchat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWhatsapp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationZalo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Leaderboard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardAuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardScoreEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFolder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Message", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageCleanup", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdOperation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdsConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerWelcomeMessageFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCapiEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniApp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppPublication", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppUpload", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Minigame", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigameContact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigamePlay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCodeRedemption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Order", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderStatusHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformCredential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Product", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductAddon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductCategory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariantOption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireAnswer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Questionnaire", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireQuestion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "RefLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Reflink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ResponseSlaPolicy", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReplyImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Sequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceStep", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Spreadsheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SystemField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TelegramChat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Template", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstallation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstalledResource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Condition", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerContactHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserDeviceToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserPersistentMenu", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Vendor", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Webhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WebhookExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappBusinessAccount", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCall", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCallPermission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCoexistStaging", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappSignupSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursDateOverride", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursInterval", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Workspace", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceApiToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMac", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMember", - "entityType": "tables", - "schema": "public" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "host", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "5432", - "generated": null, - "identity": null, - "name": "port", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "database", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credentialRef", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'disable'", - "generated": null, - "identity": null, - "name": "sslMode", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isMain", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardKey", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readHost", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readPort", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardId", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'whatsapp'", - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ctwaClid", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contents", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceEventId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionCapiStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationFacebookAdsId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "markAs", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionPrompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "actionRules", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isRichResponse", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "tools", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "webSearchAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "models", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkIndex", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "aiConversationEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attachmentId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentHash", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "summary", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "aiEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiFileId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dataCollect", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outputMessage", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedUntil", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkSeq", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursorContactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightFromId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightToId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "scheduleEnabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timeRanges", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gotoFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "pauseBotWaitingForStaff", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "applyToAllCustomers", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "applyToAllRevision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllRequestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "availableTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "selectedTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingSince", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "measuredFrom", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingResponseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isFirstResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaMet", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResponseType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotRouteType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "routeType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResult", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "result", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiProvider", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "analyticsBroadcastEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "batchId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "analyticsConversationEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsMessageEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "objectKey", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "analyticsStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "timestamp", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ingestedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviteeTimezone", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'scheduled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentLocationTypeSnapshot", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventIntegrationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventProviderCalendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentExternalSyncStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalSyncStatus", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "30", - "generated": null, - "identity": null, - "name": "durationMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "bufferAfterMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentLocationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentScheduleWindowType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'rollingDays'", - "generated": null, - "identity": null, - "name": "scheduleWindowType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "scheduleWindowConfig", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxAppointmentsPerUser", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "dailyLimitEnabled", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerDay", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowGroupMeeting", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerSlot", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationMessage", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalConnectionId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventTitleTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventDescriptionTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventAttendeesTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicLinkSlug", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingValue", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "appointmentReminderTimingUnit", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingUnit", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reminderConfigId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "appointmentReminderDispatchStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "jobId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedReason", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageCreatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "fileType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "width", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "height", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnailPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "keepOriginal", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "invitedBy", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "privateKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAnonymous", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "mustChangePassword", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "keywords", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "automatedResponseType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inbound'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "automationThrottleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "throttleType", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subjectId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'channel'", - "generated": null, - "identity": null, - "name": "targetMode", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastScheduleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesType", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactFilter", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subaction", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoffCompletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resumeCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeStart", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeEnd", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendRatePerMinute", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountedThroughAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "occurrenceCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOccurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recurrenceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "localSlot", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceOutcome", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceReason", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "childBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "materializedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "supersededCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "items", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedNotifiedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceAccountId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalPostId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "caption", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaType", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnail", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permalink", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataFetchedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataAttemptedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'coexist'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'init'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerSource", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentPageNumber", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedContactCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedMessageCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastChunkOrder", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "syncProgress", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistMessengerSyncPhase", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contacts'", - "generated": null, - "identity": null, - "name": "messengerSyncPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pendingPatches", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scanFromAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resumeCursor", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'messenger'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sentCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "missedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "post", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"text\",\"value\":\"\"}'", - "generated": null, - "identity": null, - "name": "privateReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "publicReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "excludeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentExcludeKeywordsType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contain'", - "generated": null, - "identity": null, - "name": "excludeKeywordsType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", - "generated": null, - "identity": null, - "name": "hideComments", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"immediately\",\"value\":0}'", - "generated": null, - "identity": null, - "name": "replyAfter", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyChannel", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorDetail", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "commentAutomationMissReason", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetConnectionId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorTokenId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platformOwnerId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originHost", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnUrl", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stateNonceHash", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'authorize'", - "generated": null, - "identity": null, - "name": "step", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextAction", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "targetClaims", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "resultConnectionIds", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "results", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "kind", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "displayName", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "statusReason", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "avatar", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumber", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "emailOptIn", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", - "type": "stored" - }, - "identity": null, - "name": "fullName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "gender", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gender", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "city", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "location", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locale", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastSubscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "blockedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalNewTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hourBucket", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceMacId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originalContactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followsBusiness", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessFollowsContact", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountVerified", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followerCount", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "contactInboxProfileSnapshotState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotAttempts", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotNextAttemptAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstInteractionAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastIncomingMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOutboundMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referral", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "consecutiveFailedReply", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastInputFailure", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastErrorLog", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastBtnTitle", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInput", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "lastUserInputType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInputType", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webchatParentUrl", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceParentUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUsername", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceIdentityHistory", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerRole", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlEvent", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlLastEvent", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadPreviousOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "sent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "enrolledAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagChannelId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "botEnabled", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botResumeAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "archivedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "additionalAttributes", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "agentLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiContextLastMessageId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followed", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedInboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplySince", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplyClosedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseDueAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaBreachingAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedContactId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "couponTopicStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasEverHadCoupon", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "showInInbox", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionProviderKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerKind", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endpoint", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "modelCatalog", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionTestStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestStatus", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "DecisionProfileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectionId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contract", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thresholdConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "globalRouterEnabled", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "globalRouterConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoApply", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountAppliesTo", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'entireOrder'", - "generated": null, - "identity": null, - "name": "appliesTo", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productIds", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountMinimumType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'none'", - "generated": null, - "identity": null, - "name": "minimumType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usageLimit", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "usedCount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "oncePerCustomer", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountEligibility", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'everyone'", - "generated": null, - "identity": null, - "name": "eligibility", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerFilter", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "data", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "backgroundUrl", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "lastNumber", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderingAvailable", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "webshopProductView", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webshopProductView", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "searchProducts", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookPixelId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartDelayMinutes", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productButtons", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "productImageSize", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productImageSize", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "allowRateOrders", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "notifyOnCartStatusChange", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "paymentMethods", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "currencyPosition", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyPosition", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencySymbol", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeePercent", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "shippingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingCountries", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultShippingCountry", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveryCost", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "checkoutMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutLink", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "orderConfirmationMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'default'", - "generated": null, - "identity": null, - "name": "orderConfirmationMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderConfirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireName", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireEmail", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requirePhone", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireState", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireZip", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sendsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seensTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clicksTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "domain", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfHostnameId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfOwnershipValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfAcmeValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "licenseId", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'super-admin'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disabledReason", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandName", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoLightPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoDarkPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "faviconPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customJs", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "theme", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storageUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "policyUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "termsOfServiceUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "signupEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "forgotPasswordEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "magicLinkEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountCredentialsEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hiddenChannels", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "icon", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspacesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "workspacesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "teamMembersLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "macLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "monthlyBotMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesPeriodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesTopUpGranted", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "whiteLabel", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "ssoSaml", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "saasMode", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planName", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planStatus", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selectedTrialPlanId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsTornDownAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stackTrace", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'make'", - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "fieldMapping", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "leadsHandledCount", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leadgenId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyOffset", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetType", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetMinorUnits", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "campaignId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileContextType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contextType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileSize", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableInInbox", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "draftVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "nodes", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "edges", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isDraft", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isLatest", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startNodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "folderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderType", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isTrash", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "paths", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationGoogleAdsId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionName", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionCategory", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lookbackWindowDays", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsClickIdType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickIdType", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "googleClickReceivedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transactionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadMethod", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsFailureStage", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failureStage", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsProcessingStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingStatus", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingAttempts", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextProcessingCheckAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingDetail", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "settings", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationTrigger", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'storyReply'", - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "story", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "reply", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importFormat", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "format", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "errorSample", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxResolution", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifiers", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldMappings", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sampleJson", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "requestCount", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboundWebhookId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clientIp", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "inboundWebhookRequestStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skipReason", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldErrors", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionResults", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "markReadOnOutbound", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectReason", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlSeenAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callbackUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationType", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "descriptiveName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedCustomerDataTerms", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActions", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionsSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupErrorAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "igId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'instagram'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "personas", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogAuthMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'oauth'", - "generated": null, - "identity": null, - "name": "authMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogImportStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'idle'", - "generated": null, - "identity": null, - "name": "importStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importTotalCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importFailedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "importError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastImportedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'VND'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReplyVoice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "voice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiAgentId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "baseURL", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "preset", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAddress", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadsUserId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enable", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "authorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideHeader", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "showLogo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideMessageInput", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "displayPhoneNumber", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "inboundCallsEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callHours", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callRecordingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "90", - "generated": null, - "identity": null, - "name": "callRecordingRetentionDays", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callTranscriptionEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallRecordingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callRecordingMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallTranscriptionMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callTranscriptionMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callAnnouncementLanguage", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callRecordingPurpose", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isCoexist", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "platformType", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "historyDeclined", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappRegistrationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending_verification'", - "generated": null, - "identity": null, - "name": "registrationStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "registrationError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verificationCodeRequestedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "oaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fallbackFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "coverImageUrl", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardPlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rules", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followersOnly", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagIds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'22:00'", - "generated": null, - "identity": null, - "name": "resetTime", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "cooldownSeconds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referralWelcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardSettings", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardsTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardRecipients", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "leaderboardAuditAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "score", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isBanned", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "scoredAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "date", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyBucket", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyCounts", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "breakdown", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "leaderboardScoreSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceRef", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isFavourite", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAccessedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentAttributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "contentType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "senderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'message'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendError", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationIds", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sinceTime", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "MessageCleanupStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdCreateState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "createState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdPublishState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "publishState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaCampaignId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdSetId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdCreativeId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "input", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cleanupError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'POSITIONAL'", - "generated": null, - "identity": null, - "name": "parameterFormat", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaFlowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'current'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentCategory", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'business_messaging'", - "generated": null, - "identity": null, - "name": "actionSource", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiError", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedFingerprint", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncScope", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'all'", - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "selectedProductIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "handles", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionLeaseId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "succeededCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "itemErrors", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "skippedItems", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "pollAttempt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "definition", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowJson", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "submissionsCount", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "whatsappFlowId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "miniAppSubmissionSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answers", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inputName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadToken", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "miniAppUploadStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "minigameType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "generalSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appearance", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "playerSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "winningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nonWinningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "playsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "participantsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "winnersCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "played", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "remaining", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isWinning", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeName", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantLabel", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorName", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "unitPrice", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "quantity", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "stockTaken", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "number", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentMethod", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'cod'", - "generated": null, - "identity": null, - "name": "paymentMethod", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'unpaid'", - "generated": null, - "identity": null, - "name": "paymentStatus", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subtotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeeTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "couponDiscount", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "total", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerName", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerEmail", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerPhone", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "shippingType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingAddress", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rating", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ratingComment", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "concludedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelReason", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderActorType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorType", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicConfig", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "livemode", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "usePlatformCredential", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isVerified", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUsedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "longDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "taxes", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "discount", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'USD'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productUrl", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "inventoryPolicy", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'dont_track'", - "generated": null, - "identity": null, - "name": "inventoryPolicy", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "inventoryQuantity", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowOutOfStockPurchase", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "images", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "tags", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isSearchable", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowSpecialRequest", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAddonOnly", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "maxSelections", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "addonProductIds", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isVisible", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isEnabled", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "values", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionIdSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTitleSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTypeSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "labelSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pointsEarned", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "attemptCount", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "answeredAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableScore", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableRetryMessages", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableCustomFieldMapping", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "questionnaireQuestionType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "orderNo", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "point", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retryMessage", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "systemFieldKey", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "questionnaireSubmissionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inProgress'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalPoints", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionSentAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAnsweredMessageId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "ReflinkType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'refLink'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "qrStyles", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetHiddenInboxIds", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoFileId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandName", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandUrl", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoBackgroundColor", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "25", - "generated": null, - "identity": null, - "name": "breachingThresholdPercent", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortcut", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "savedReplyId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaLibraryFileId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "subscribers", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runAtMs", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "bucket", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "enrollmentId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "order", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delayMinutes", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayUnit", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "specificDateTime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "anytime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeStart", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeEnd", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", - "generated": null, - "identity": null, - "name": "sendDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "spreadsheetId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "SystemFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelType", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalLabelId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chatId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramChatType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramBotChatStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botStatus", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publisherName", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "youtubeVideoId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "testLink", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryCounts", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareToken", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "shareEnabled", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultPermissions", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "createInstallFolder", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "defaultAutoUpdate", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "installCount", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateName", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceWorkspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "templateInstallationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "warnings", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "warningCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resourceCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installFolderId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoUpdate", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installedBy", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installationId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "templateResourceCategory", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceKind", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceResourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "wasExisting", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "varchar(255)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operator", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstEnteredAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failureCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalExecutions", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "devicePlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "menus", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phone", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "grantedScopes", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provisionedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "creditLineId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wacid", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attemptId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'ringing'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallOutcome", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "durationSeconds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answeredByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "initiatedByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingRequested", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingFailureReason", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingPath", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcript", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcribedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcriptSegments", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummary", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummarizedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummaryProvider", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "whatsappCallPermissionResponse", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "response", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isPermanent", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "respondedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payloadHash", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parseFailedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "categories", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "completedCount", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "screens", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAccessToken", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "apiVersion", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "candidatePhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "claimedPhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "date", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultReply", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "defaultReplyFrequency", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'allTime'", - "generated": null, - "identity": null, - "name": "defaultReplyFrequency", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetCountry", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'en'", - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'UTC'", - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'#016DFF'", - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "developmentMode", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "smartResponseDelaySeconds", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scheduledDeletionAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purgeStartedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "supportAccessUntil", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "capiLimitedDataUse", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "WorkspaceApiTokenPermission", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permission", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedToken", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "scopes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macCount", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "workspaceMemberRole", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationChannels", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationTypes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "onlineSince", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isActive", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_isActive_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_shardKey_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "startTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "endTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_time_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_shardId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'whatsapp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'messenger'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'instagram'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "enabled", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionRule_workspaceId_channel_enabled_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chunkIndex", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_chunkIndex_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "embedding", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "vector_cosine_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "hnsw", - "concurrently": false, - "name": "AIConversationEmbedding_embedding_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_messageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIEmbedding_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_live_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "revision", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_revision_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"createdAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_live_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "requestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_requestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "applyToAllRequestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "gotoFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_gotoFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "aiProvider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "hasResponse", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "result", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "toAssignee", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "senderType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_token_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "objectKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsManifestStatus_objectKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_calendarId_status_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_contactId_calendarId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "publicLinkSlug", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_publicLinkSlug_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarAvailability_calendarId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingValue", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingUnit", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarReminder_dedupe_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "jobId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_jobId_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sendAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_status_sendAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "messageCreatedAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_message_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "providerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "accountId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Account_providerId_accountId_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Invitation_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Session_token_key", - "entityType": "indexes", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_email_tenant_key", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomatedResponse_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastTriggeredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_lastTriggeredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BotField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "schedulesAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_schedulesAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"deletedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_parentBroadcastId_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_broadcastId_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"nextRunAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "localSlot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "childBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_workspaceId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastActivityAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"abandonedNotifiedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_abandoned_scan_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalPostId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_channel_externalPostId_key", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_sortAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"startedAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('succeeded', 'partial')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_resume_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status = 'init' AND type = 'coexist'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_init_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "type = 'contact_scan' AND status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_active_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "type = 'contact_scan'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "replyChannel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_private_unseen_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'failed'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_failed_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "consumedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"consumedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_consumedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stateNonceHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_stateNonceHash_key", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_workspaceId_provider_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_provider_sourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastSubscribedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_broadcast_subscribed_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_created_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_email", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_phone_number", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_full_name_md5", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "firstName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_firstName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_lastName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_email_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_phoneNumber_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_contactId_customFieldId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_customFieldId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceParentUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceParentUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceParentUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "profileSnapshotNextAttemptAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"profileSnapshotState\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_profileSnapshot_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_ai_held_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastIncomingMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastOutboundMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'ctwaClid')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'ctwaClid' IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_ctwaClid_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'adId')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_adId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInboxPost_workspaceId_postId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactNote_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_contact_id", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isRead", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_is_read", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"sent\" = false AND \"failedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_unsent_order_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_status_triggerAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_followUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_dm_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "responseDueAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"responseDueAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_responseDueAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "aiContextLastMessageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_aiContextLastMessageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastActivityAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_lastActivityAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"issuedContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_status_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "connectionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_connectionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"globalRouterEnabled\" = true", - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_globalRouter_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"code\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DynamicImage_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceOpenHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "abandonedCartFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_abandonedCartFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "checkoutFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_checkoutFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderConfirmationFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_orderConfirmationFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_userId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_tenantId_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "domain", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_domain_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "licenseId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "License_licenseId_key", - "entityType": "indexes", - "schema": "public", - "table": "License" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformAdmin_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "ownerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tenant_ownerId_key", - "entityType": "indexes", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "position", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TenantHelpItem_tenantId_position_idx", - "entityType": "indexes", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelsTornDownAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_channelsTornDownAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_due_expired_trial_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_idx", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "url", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_url_key", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "formId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_automationId_leadgenId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_leadgenId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "campaignId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_campaignId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessagesAuth_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_path_key", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contextType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_contextType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "subType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_subType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_workspaceId_flowId_key", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_1_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_2_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "transactionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextProcessingCheckAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_claimedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_inboxId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_fileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_products_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_token_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"idempotencyKey\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'received'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_received_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'processing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_claimedAt_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_channel_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tokenHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_tokenHash_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_integrationType_key", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleSheet_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "igId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_igId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_pageId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "preset", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"preset\" <> 'custom'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOutlookCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "botId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_botId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "threadsUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_threadsUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_openId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_phoneNumberId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fallbackFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_fallbackFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "oaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_oaId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "score", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "scoredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "NOT \"isBanned\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_ranking_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFolder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversation_history_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_workspace_created_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_contactInboxId_sourceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversationId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parentId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_status_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationWhatsappId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationInstagramId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationMessengerId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationInstagramId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'current'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_current_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_channel_integrationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "retailerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_retailer_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_product_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" IN ('queued', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_miniAppId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "uploadToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_uploadToken_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_path_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "inputName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_miniAppId_inputName_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_submissionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_minigameId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_orderId_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_orderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_variantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "number", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_number_key", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_discountCodeId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_orderId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "actorUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_actorUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_user_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_platform_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductAddon_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariant_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariantOption_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "questionIdSnapshot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_questionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "orderNo", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_customFieldId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'inProgress'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Reflink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_mediaLibraryFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_bucket_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "enrollmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_enrollmentId_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspace_sequence_step_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_bucket_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updatedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" in ('completed', 'failed', 'canceled')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_terminal_updatedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_tag_integration_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalLabelId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_external_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_workspace_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chatId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_inboxId_chatId_key", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shareToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_shareToken_key", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "templateId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_templateId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_installationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceKind", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_source_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_key", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserDeviceToken_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserPersistentMenu_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_webhookId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "wabaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "wacid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"wacid\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_wacid_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "attemptId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"attemptId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_attemptId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_ringing_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_resumableRinging_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "recordedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"recordingPath\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_recording_inboxId_recordedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_pendingOutbound_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phoneNumberId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "payloadHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phone_hash_uq", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"processedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_processedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parseFailedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parseFailedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_parseFailedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspace_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_schedule_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursInterval_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursMember_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "scheduledDeletionAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_scheduledDeletionAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "supportAccessUntil", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_supportAccessUntil_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"isDefault\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_default_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceMember_workspaceId_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "shardId" - ], - "schemaTo": "public", - "tableTo": "MessageShard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ShardTimeRange_shardId_MessageShard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_k99JXbMObQIn_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationFacebookAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationFacebookAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_3zzAptVRRuZD_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_HUibBtSUZbML_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIAgent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIAgent" - }, - { - "nameExplicit": false, - "columns": [ - "sourceId" - ], - "schemaTo": "public", - "tableTo": "AIConversationSource", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "aiFileId" - ], - "schemaTo": "public", - "tableTo": "AIFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_aiFileId_AIFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFile" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIFunction_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFunction_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "gotoFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "applyToAllRequestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIMCPServer_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIMCPServer" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "EmailTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "confirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "cancellationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "externalConnectionId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "reminderConfigId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendarReminder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Account_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Account_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "invitedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_invitedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Session_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "User_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BotField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BotField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "parentBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "recurrenceId" - ], - "schemaTo": "public", - "tableTo": "BroadcastRecurrence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "childBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastTarget_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Cart_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "targetConnectionId" - ], - "schemaTo": "public", - "tableTo": "Connection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_targetConnectionId_Connection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorTokenId" - ], - "schemaTo": "public", - "tableTo": "WorkspaceApiToken", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Connection_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Contact_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagChannelId" - ], - "schemaTo": "public", - "tableTo": "TagChannel", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "assignedUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "assignedInboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "CouponTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_topicId_CouponTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "issuedContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Coupon_issuedContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CouponTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CouponTopic_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CustomField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionProfile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "connectionId" - ], - "schemaTo": "public", - "tableTo": "DecisionConnection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCode_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCode_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DynamicImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DynamicImage_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "abandonedCartFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "checkoutFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "orderConfirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EmailTopic_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AuditLog_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AuditLog_userId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomDomain_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "PlatformAdmin_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Tenant_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TenantHelpItem_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "UserQuota_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ErrorLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ErrorLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "FacebookLeadAdsAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "File_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "File_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Flow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Flow_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowVersionId" - ], - "schemaTo": "public", - "tableTo": "FlowVersion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Folder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationGoogleAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationGoogleAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IgStoryAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Import_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "fileId" - ], - "schemaTo": "public", - "tableTo": "File", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Import_fileId_File_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboundWebhookId" - ], - "schemaTo": "public", - "tableTo": "InboundWebhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Inbox_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxContactStat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxContactStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeam_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeam" - }, - { - "nameExplicit": false, - "columns": [ - "inboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Integration_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_inboxId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationInstagram_welcomeFlowId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "aiAgentId" - ], - "schemaTo": "public", - "tableTo": "AIAgent", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "fallbackFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Leaderboard_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "referralWelcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "MagicLink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_linkId_MagicLink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFolder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_LwL2ykeZegup_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MessagingAdOperation_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_wJXyKUssR08y_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniApp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "whatsappFlowId" - ], - "schemaTo": "public", - "tableTo": "WhatsappFlow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "MiniAppSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Minigame_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "variantId" - ], - "schemaTo": "public", - "tableTo": "ProductVariant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_variantId_ProductVariant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Order_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderStatusHistory_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Credential_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Product_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductAddon_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "parentId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_parentId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariant_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariantOption_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "questionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Questionnaire_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Questionnaire_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "currentQuestionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "Reflink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_linkId_Reflink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "widgetLogoFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReply" - }, - { - "nameExplicit": false, - "columns": [ - "savedReplyId" - ], - "schemaTo": "public", - "tableTo": "SavedReply", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "mediaLibraryFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Sequence_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Sequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "stepId" - ], - "schemaTo": "public", - "tableTo": "SequenceStep", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - "enrollmentId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "ContactOnSequence", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_enrollment_workspace_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "SequenceStep_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceStep_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Spreadsheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Tag_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Tag_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Template_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Template_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Template_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "templateId" - ], - "schemaTo": "public", - "tableTo": "Template", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_templateId_Template_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installFolderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installFolderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installationId" - ], - "schemaTo": "public", - "tableTo": "TemplateInstallation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Trigger_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Trigger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Vendor_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Webhook_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Webhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": false, - "columns": [ - "answeredByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_answeredByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "initiatedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_initiatedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": false, - "columns": [ - "workingHoursId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsAgentResponseEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsBotMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "columns": [ - "broadcastId", - "contactInboxId", - "batchId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsBroadcastEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsContactEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsConversationEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "columns": [ - "flowId", - "analyticsId", - "nodeId", - "buttonId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsFlowNodeEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "columns": [ - "sequenceId", - "stepId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsSequenceEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Attachment_pkey", - "entityType": "pks", - "schema": "public", - "table": "Attachment" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "throttleType", - "subjectId" - ], - "nameExplicit": true, - "name": "AutomationThrottle_pkey", - "entityType": "pks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "columns": [ - "broadcastId", - "inboxId" - ], - "nameExplicit": true, - "name": "BroadcastTarget_pkey", - "entityType": "pks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "columns": [ - "workspaceId", - "hourBucket", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveHourly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "columns": [ - "workspaceId", - "periodStart", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveMonthly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "postId" - ], - "nameExplicit": true, - "name": "ContactInboxPost_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "columns": [ - "broadcastId", - "contactId" - ], - "nameExplicit": true, - "name": "ContactsOnBroadcast_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "ContactOnSequence_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "columns": [ - "contactId", - "tagId" - ], - "nameExplicit": false, - "name": "ContactToTag_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTag" - }, - { - "columns": [ - "tagChannelId", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactToTagChannel_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "columns": [ - "leaderboardId", - "contactId" - ], - "nameExplicit": false, - "name": "LeaderboardParticipant_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "columns": [ - "createdAt", - "id" - ], - "nameExplicit": false, - "name": "LeaderboardScoreEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Message_pkey", - "entityType": "pks", - "schema": "public", - "table": "Message" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "SequenceDispatch_pkey", - "entityType": "pks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "columns": [ - "id", - "contactId" - ], - "nameExplicit": true, - "name": "TriggerContactHistory_pkey", - "entityType": "pks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageShard_pkey", - "schema": "public", - "table": "MessageShard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ShardTimeRange_pkey", - "schema": "public", - "table": "ShardTimeRange", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionEvent_pkey", - "schema": "public", - "table": "AdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionRule_pkey", - "schema": "public", - "table": "AdsConversionRule", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIAgent_pkey", - "schema": "public", - "table": "AIAgent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationEmbedding_pkey", - "schema": "public", - "table": "AIConversationEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationSource_pkey", - "schema": "public", - "table": "AIConversationSource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIEmbedding_pkey", - "schema": "public", - "table": "AIEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFile_pkey", - "schema": "public", - "table": "AIFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFunction_pkey", - "schema": "public", - "table": "AIFunction", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverBulkRun_pkey", - "schema": "public", - "table": "AIHandoverBulkRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverSettings_pkey", - "schema": "public", - "table": "AIHandoverSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIMCPServer_pkey", - "schema": "public", - "table": "AIMCPServer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AnalyticsEmailTopic_pkey", - "schema": "public", - "table": "AnalyticsEmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Appointment_pkey", - "schema": "public", - "table": "Appointment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendar_pkey", - "schema": "public", - "table": "AppointmentCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarAvailability_pkey", - "schema": "public", - "table": "AppointmentCalendarAvailability", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarReminder_pkey", - "schema": "public", - "table": "AppointmentCalendarReminder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentReminderDispatch_pkey", - "schema": "public", - "table": "AppointmentReminderDispatch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Account_pkey", - "schema": "public", - "table": "Account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Invitation_pkey", - "schema": "public", - "table": "Invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Jwk_pkey", - "schema": "public", - "table": "Jwk", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Session_pkey", - "schema": "public", - "table": "Session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "User_pkey", - "schema": "public", - "table": "User", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Verification_pkey", - "schema": "public", - "table": "Verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AutomatedResponse_pkey", - "schema": "public", - "table": "AutomatedResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BotField_pkey", - "schema": "public", - "table": "BotField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Broadcast_pkey", - "schema": "public", - "table": "Broadcast", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrenceOccurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Cart_pkey", - "schema": "public", - "table": "Cart", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ChannelPost_pkey", - "schema": "public", - "table": "ChannelPost", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CoexistSyncRun_pkey", - "schema": "public", - "table": "CoexistSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomation_pkey", - "schema": "public", - "table": "CommentAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationEvent_pkey", - "schema": "public", - "table": "CommentAutomationEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationMiss_pkey", - "schema": "public", - "table": "CommentAutomationMiss", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationReply_pkey", - "schema": "public", - "table": "CommentAutomationReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConnectSession_pkey", - "schema": "public", - "table": "ConnectSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Connection_pkey", - "schema": "public", - "table": "Connection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Contact_pkey", - "schema": "public", - "table": "Contact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactCustomField_pkey", - "schema": "public", - "table": "ContactCustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactInbox_pkey", - "schema": "public", - "table": "ContactInbox", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactNote_pkey", - "schema": "public", - "table": "ContactNote", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactOnSmartDelay_pkey", - "schema": "public", - "table": "ContactOnSmartDelay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Conversation_pkey", - "schema": "public", - "table": "Conversation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConversationParticipant_pkey", - "schema": "public", - "table": "ConversationParticipant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Coupon_pkey", - "schema": "public", - "table": "Coupon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CouponTopic_pkey", - "schema": "public", - "table": "CouponTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomField_pkey", - "schema": "public", - "table": "CustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionConnection_pkey", - "schema": "public", - "table": "DecisionConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionProfile_pkey", - "schema": "public", - "table": "DecisionProfile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCode_pkey", - "schema": "public", - "table": "DiscountCode", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DynamicImage_pkey", - "schema": "public", - "table": "DynamicImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceOpenHours_pkey", - "schema": "public", - "table": "EcommerceOpenHours", - "entityType": "pks" - }, - { - "columns": [ - "workspaceId" - ], - "nameExplicit": false, - "name": "EcommerceOrderCounter_pkey", - "schema": "public", - "table": "EcommerceOrderCounter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceSettings_pkey", - "schema": "public", - "table": "EcommerceSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EmailTopic_pkey", - "schema": "public", - "table": "EmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AuditLog_pkey", - "schema": "public", - "table": "AuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomDomain_pkey", - "schema": "public", - "table": "CustomDomain", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "License_pkey", - "schema": "public", - "table": "License", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "PlatformAdmin_pkey", - "schema": "public", - "table": "PlatformAdmin", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tenant_pkey", - "schema": "public", - "table": "Tenant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TenantHelpItem_pkey", - "schema": "public", - "table": "TenantHelpItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserQuota_pkey", - "schema": "public", - "table": "UserQuota", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceUsage_pkey", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ErrorLog_pkey", - "schema": "public", - "table": "ErrorLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ExternalWebhook_pkey", - "schema": "public", - "table": "ExternalWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsAutomation_pkey", - "schema": "public", - "table": "FacebookLeadAdsAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsLead_pkey", - "schema": "public", - "table": "FacebookLeadAdsLead", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessage_pkey", - "schema": "public", - "table": "FacebookMarketingMessage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessagesAuth_pkey", - "schema": "public", - "table": "FacebookMarketingMessagesAuth", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "File_pkey", - "schema": "public", - "table": "File", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Flow_pkey", - "schema": "public", - "table": "Flow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowAnalyticsSession_pkey", - "schema": "public", - "table": "FlowAnalyticsSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowNodeStat_pkey", - "schema": "public", - "table": "FlowNodeStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowRun_pkey", - "schema": "public", - "table": "FlowRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowVersion_pkey", - "schema": "public", - "table": "FlowVersion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Folder_pkey", - "schema": "public", - "table": "Folder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsConversionEvent_pkey", - "schema": "public", - "table": "GoogleAdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsSettings_pkey", - "schema": "public", - "table": "GoogleAdsSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IgStoryAutomation_pkey", - "schema": "public", - "table": "IgStoryAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Import_pkey", - "schema": "public", - "table": "Import", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhook_pkey", - "schema": "public", - "table": "InboundWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhookRequest_pkey", - "schema": "public", - "table": "InboundWebhookRequest", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Inbox_pkey", - "schema": "public", - "table": "Inbox", - "entityType": "pks" - }, - { - "columns": [ - "inboxId" - ], - "nameExplicit": false, - "name": "InboxContactStat_pkey", - "schema": "public", - "table": "InboxContactStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeam_pkey", - "schema": "public", - "table": "InboxTeam", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeamMember_pkey", - "schema": "public", - "table": "InboxTeamMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationActiveCampaign_pkey", - "schema": "public", - "table": "IntegrationActiveCampaign", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationApi_pkey", - "schema": "public", - "table": "IntegrationApi", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Integration_pkey", - "schema": "public", - "table": "Integration", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationClaude_pkey", - "schema": "public", - "table": "IntegrationClaude", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDeepseek_pkey", - "schema": "public", - "table": "IntegrationDeepseek", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDrip_pkey", - "schema": "public", - "table": "IntegrationDrip", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationFacebookAds_pkey", - "schema": "public", - "table": "IntegrationFacebookAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGemini_pkey", - "schema": "public", - "table": "IntegrationGemini", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGetResponse_pkey", - "schema": "public", - "table": "IntegrationGetResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleAds_pkey", - "schema": "public", - "table": "IntegrationGoogleAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleCalendar_pkey", - "schema": "public", - "table": "IntegrationGoogleCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleSheet_pkey", - "schema": "public", - "table": "IntegrationGoogleSheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationInstagram_pkey", - "schema": "public", - "table": "IntegrationInstagram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationKlaviyo_pkey", - "schema": "public", - "table": "IntegrationKlaviyo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailchimp_pkey", - "schema": "public", - "table": "IntegrationMailchimp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailerLite_pkey", - "schema": "public", - "table": "IntegrationMailerLite", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMessenger_pkey", - "schema": "public", - "table": "IntegrationMessenger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMetaCatalog_pkey", - "schema": "public", - "table": "IntegrationMetaCatalog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMoosend_pkey", - "schema": "public", - "table": "IntegrationMoosend", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenai_pkey", - "schema": "public", - "table": "IntegrationOpenai", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenaiCompatible_pkey", - "schema": "public", - "table": "IntegrationOpenaiCompatible", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenrouter_pkey", - "schema": "public", - "table": "IntegrationOpenrouter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOutlookCalendar_pkey", - "schema": "public", - "table": "IntegrationOutlookCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSendGrid_pkey", - "schema": "public", - "table": "IntegrationSendGrid", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSmtp_pkey", - "schema": "public", - "table": "IntegrationSmtp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTelegram_pkey", - "schema": "public", - "table": "IntegrationTelegram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationThreads_pkey", - "schema": "public", - "table": "IntegrationThreads", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTiktok_pkey", - "schema": "public", - "table": "IntegrationTiktok", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWebchat_pkey", - "schema": "public", - "table": "IntegrationWebchat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWhatsapp_pkey", - "schema": "public", - "table": "IntegrationWhatsapp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationZalo_pkey", - "schema": "public", - "table": "IntegrationZalo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Leaderboard_pkey", - "schema": "public", - "table": "Leaderboard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "LeaderboardAuditLog_pkey", - "schema": "public", - "table": "LeaderboardAuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MagicLink_pkey", - "schema": "public", - "table": "MagicLink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFile_pkey", - "schema": "public", - "table": "MediaLibraryFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFolder_pkey", - "schema": "public", - "table": "MediaLibraryFolder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageCleanup_pkey", - "schema": "public", - "table": "MessageCleanup", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdOperation_pkey", - "schema": "public", - "table": "MessagingAdOperation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdsConnection_pkey", - "schema": "public", - "table": "MessagingAdsConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerMessageTemplate_pkey", - "schema": "public", - "table": "MessengerMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerWelcomeMessageFlow_pkey", - "schema": "public", - "table": "MessengerWelcomeMessageFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCapiEvent_pkey", - "schema": "public", - "table": "MetaCapiEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogItem_pkey", - "schema": "public", - "table": "MetaCatalogItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogSyncRun_pkey", - "schema": "public", - "table": "MetaCatalogSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniApp_pkey", - "schema": "public", - "table": "MiniApp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppPublication_pkey", - "schema": "public", - "table": "MiniAppPublication", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppSubmission_pkey", - "schema": "public", - "table": "MiniAppSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppUpload_pkey", - "schema": "public", - "table": "MiniAppUpload", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Minigame_pkey", - "schema": "public", - "table": "Minigame", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigameContact_pkey", - "schema": "public", - "table": "MinigameContact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigamePlay_pkey", - "schema": "public", - "table": "MinigamePlay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCodeRedemption_pkey", - "schema": "public", - "table": "DiscountCodeRedemption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderItem_pkey", - "schema": "public", - "table": "OrderItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Order_pkey", - "schema": "public", - "table": "Order", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderStatusHistory_pkey", - "schema": "public", - "table": "OrderStatusHistory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Credential_pkey", - "schema": "public", - "table": "PlatformCredential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Product_pkey", - "schema": "public", - "table": "Product", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductAddon_pkey", - "schema": "public", - "table": "ProductAddon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductCategory_pkey", - "schema": "public", - "table": "ProductCategory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariant_pkey", - "schema": "public", - "table": "ProductVariant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariantOption_pkey", - "schema": "public", - "table": "ProductVariantOption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireAnswer_pkey", - "schema": "public", - "table": "QuestionnaireAnswer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Questionnaire_pkey", - "schema": "public", - "table": "Questionnaire", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireQuestion_pkey", - "schema": "public", - "table": "QuestionnaireQuestion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireSubmission_pkey", - "schema": "public", - "table": "QuestionnaireSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Reflink_pkey", - "schema": "public", - "table": "Reflink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ResponseSlaPolicy_pkey", - "schema": "public", - "table": "ResponseSlaPolicy", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReply_pkey", - "schema": "public", - "table": "SavedReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReplyImage_pkey", - "schema": "public", - "table": "SavedReplyImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Sequence_pkey", - "schema": "public", - "table": "Sequence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SequenceStep_pkey", - "schema": "public", - "table": "SequenceStep", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Spreadsheet_pkey", - "schema": "public", - "table": "Spreadsheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SystemField_pkey", - "schema": "public", - "table": "SystemField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tag_pkey", - "schema": "public", - "table": "Tag", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TagChannel_pkey", - "schema": "public", - "table": "TagChannel", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TelegramChat_pkey", - "schema": "public", - "table": "TelegramChat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Template_pkey", - "schema": "public", - "table": "Template", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstallation_pkey", - "schema": "public", - "table": "TemplateInstallation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstalledResource_pkey", - "schema": "public", - "table": "TemplateInstalledResource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Trigger_pkey", - "schema": "public", - "table": "Trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Condition_pkey", - "schema": "public", - "table": "Condition", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerExecution_pkey", - "schema": "public", - "table": "TriggerExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerStat_pkey", - "schema": "public", - "table": "TriggerStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserDeviceToken_pkey", - "schema": "public", - "table": "UserDeviceToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserPersistentMenu_pkey", - "schema": "public", - "table": "UserPersistentMenu", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Vendor_pkey", - "schema": "public", - "table": "Vendor", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Webhook_pkey", - "schema": "public", - "table": "Webhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WebhookExecution_pkey", - "schema": "public", - "table": "WebhookExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappBusinessAccount_pkey", - "schema": "public", - "table": "WhatsappBusinessAccount", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCall_pkey", - "schema": "public", - "table": "WhatsappCall", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCallPermission_pkey", - "schema": "public", - "table": "WhatsappCallPermission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCoexistStaging_pkey", - "schema": "public", - "table": "WhatsappCoexistStaging", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappFlow_pkey", - "schema": "public", - "table": "WhatsappFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappMessageTemplate_pkey", - "schema": "public", - "table": "WhatsappMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappSignupSession_pkey", - "schema": "public", - "table": "WhatsappSignupSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHours_pkey", - "schema": "public", - "table": "WorkingHours", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursDateOverride_pkey", - "schema": "public", - "table": "WorkingHoursDateOverride", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursInterval_pkey", - "schema": "public", - "table": "WorkingHoursInterval", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursMember_pkey", - "schema": "public", - "table": "WorkingHoursMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Workspace_pkey", - "schema": "public", - "table": "Workspace", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceApiToken_pkey", - "schema": "public", - "table": "WorkspaceApiToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMac_pkey", - "schema": "public", - "table": "WorkspaceMac", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMember_pkey", - "schema": "public", - "table": "WorkspaceMember", - "entityType": "pks" - }, - { - "nameExplicit": true, - "columns": [ - "contactInboxId", - "sourceId", - "createdAt" - ], - "nullsNotDistinct": false, - "name": "Message_source_dedup_idx", - "entityType": "uniques", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "parentId", - "name" - ], - "nullsNotDistinct": true, - "name": "ProductCategory_workspaceId_parent_name_key", - "entityType": "uniques", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "ResponseSlaPolicy_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": true, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "UserDeviceToken_token_key", - "entityType": "uniques", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - "id", - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkingHours_id_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "userId" - ], - "nullsNotDistinct": false, - "name": "WorkingHoursMember_workspaceId_userId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "tokenHash" - ], - "nullsNotDistinct": false, - "name": "WorkspaceApiToken_tokenHash_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "periodStart", - "periodEnd" - ], - "nullsNotDistinct": false, - "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "nullsNotDistinct": false, - "name": "UserQuota_userId_key", - "schema": "public", - "table": "UserQuota", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkspaceUsage_workspaceId_key", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "uniques" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", - "name": "AdsConversionEvent_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", - "name": "Broadcast_occurrence_pair_check", - "entityType": "checks", - "schema": "public", - "table": "Broadcast" - }, - { - "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", - "name": "ConnectSession_actor_at_most_one", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", - "name": "ConnectSession_status_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", - "name": "ConnectSession_purpose_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", - "name": "ConnectSession_errorCode_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", - "name": "ConnectSession_errorCode_terminal_failure_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", - "name": "ConnectSession_terminal_consumedAt_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", - "name": "ConnectSession_terminal_clears_encryptedAuth_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", - "name": "ConnectSession_active_reconnect_requires_target_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", - "name": "Connection_kind_relation_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", - "name": "Connection_inbox_integration_exclusive_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"kind\" IN ('channel', 'integration')", - "name": "Connection_kind_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", - "name": "Connection_status_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", - "name": "Connection_statusReason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", - "name": "Connection_status_reason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", - "name": "Connection_disconnectedAt_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", - "name": "DiscountCode_usedCount_check", - "entityType": "checks", - "schema": "public", - "table": "DiscountCode" - }, - { - "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", - "name": "EcommerceSettings_serviceFeePercent_check", - "entityType": "checks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sent_requires_request_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sending_requires_claim_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", - "name": "GoogleAdsConversionEvent_processing_status_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", - "name": "GoogleAdsConversionEvent_failure_stage_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", - "name": "GoogleAdsConversionEvent_value_currency_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"value\" IS NULL OR \"value\" >= 0", - "name": "GoogleAdsConversionEvent_value_non_negative_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "length(\"clickId\") BETWEEN 10 AND 512", - "name": "GoogleAdsConversionEvent_clickId_length_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", - "name": "GoogleAdsConversionEvent_uploadMethod_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", - "name": "GoogleAdsConversionEvent_attempt_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", - "name": "IntegrationWhatsapp_registrationStatus_error_consistent", - "entityType": "checks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdOperation_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdsConnection_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", - "name": "MetaCapiEvent_channel_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", - "name": "MetaCapiEvent_actionSource_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"contentType\" IN ('product', 'product_group')", - "name": "MetaCapiEvent_contentType_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", - "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", - "entityType": "checks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", - "name": "ResponseSlaPolicy_targets_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", - "name": "ResponseSlaPolicy_threshold_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", - "name": "Vendor_discountPercent_check", - "entityType": "checks", - "schema": "public", - "table": "Vendor" - }, - { - "value": "cardinality(\"candidatePhoneNumberIds\") > 0", - "name": "WhatsappSignupSession_candidates_not_empty", - "entityType": "checks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "value": "\"weekday\" BETWEEN 0 AND 6", - "name": "WorkingHoursInterval_weekday_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", - "name": "WorkingHoursInterval_minutes_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql b/packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql deleted file mode 100644 index ebe9451efe..0000000000 --- a/packages/database/drizzle/20261024092420_add_purge_fk_indexes/migration.sql +++ /dev/null @@ -1,70 +0,0 @@ -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIConversationEmbedding_lookup_idx"') AND NOT indisvalid) THEN - DROP INDEX "AIConversationEmbedding_lookup_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIConversationEmbedding_lookup_idx" ON "AIConversationEmbedding" ("workspaceId", "conversationId", "sourceId", "status");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIEmbedding_aiFileId_idx"') AND NOT indisvalid) THEN - DROP INDEX "AIEmbedding_aiFileId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIEmbedding_aiFileId_idx" ON "AIEmbedding" ("aiFileId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"ContactToTag_tagId_idx"') AND NOT indisvalid) THEN - DROP INDEX "ContactToTag_tagId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactToTag_tagId_idx" ON "ContactToTag" ("tagId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "FlowRun_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_workspaceId_idx" ON "FlowRun" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_flowId_idx"') AND NOT indisvalid) THEN - DROP INDEX "FlowRun_flowId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_flowId_idx" ON "FlowRun" ("flowId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_flowVersionId_idx"') AND NOT indisvalid) THEN - DROP INDEX "FlowRun_flowVersionId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_flowVersionId_idx" ON "FlowRun" ("flowVersionId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowVersion_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "FlowVersion_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowVersion_workspaceId_idx" ON "FlowVersion" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowVersion_flowId_idx"') AND NOT indisvalid) THEN - DROP INDEX "FlowVersion_flowId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowVersion_flowId_idx" ON "FlowVersion" ("flowId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardParticipant_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "LeaderboardParticipant_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardParticipant_workspaceId_idx" ON "LeaderboardParticipant" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardParticipant_referrerContactId_idx"') AND NOT indisvalid) THEN - DROP INDEX "LeaderboardParticipant_referrerContactId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardParticipant_referrerContactId_idx" ON "LeaderboardParticipant" ("referrerContactId") WHERE "referrerContactId" IS NOT NULL; \ No newline at end of file diff --git a/packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json b/packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json deleted file mode 100644 index 84da618b70..0000000000 --- a/packages/database/drizzle/20261024092420_add_purge_fk_indexes/snapshot.json +++ /dev/null @@ -1,61898 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "9d0ba254-b168-43a3-ac8d-86a99cf55674", - "prevIds": [ - "bd0d6e05-0879-4d7b-a006-d9f2023b154c" - ], - "ddl": [ - { - "values": [ - "pending", - "sent", - "failed", - "skipped_no_scope", - "skipped_region" - ], - "name": "adsConversionCapiStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automatic", - "rule", - "trigger" - ], - "name": "adsConversionEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "facebook", - "messenger", - "instagram" - ], - "name": "adsConversionChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "lead", - "purchase" - ], - "name": "adsConversionEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiConversationEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "success", - "error" - ], - "name": "aiConversationSourceStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "document", - "image", - "url", - "web_search" - ], - "name": "aiConversationSourceType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enable", - "disable" - ], - "name": "aiHandoverBulkAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "running", - "cancelling", - "completed", - "failed", - "cancelled" - ], - "name": "aiHandoverBulkStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automated_response", - "ai_agent", - "flow", - "none" - ], - "name": "analyticsBotResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "success", - "fallback" - ], - "name": "analyticsBotResult", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flow", - "agent", - "fallback" - ], - "name": "analyticsBotRouteType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message:sent", - "message:delivered", - "message:seen", - "message:failed", - "flow:clicked" - ], - "name": "analyticsBroadcastEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contact_created", - "contact_deleted", - "contact_blocked" - ], - "name": "analyticsContactEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "human" - ], - "name": "analyticsContactSenderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "conversation_created", - "conversation_assigned", - "conversation_unassigned", - "conversation_transferred_to_human", - "conversation_transferred_to_bot", - "conversation_followed", - "conversation_unfollowed", - "conversation_archived", - "conversation_unarchived" - ], - "name": "analyticsConversationEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message_human_sent", - "message_bot_sent" - ], - "name": "analyticsMessageEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "ingested", - "failed" - ], - "name": "analyticsStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "synced", - "failed" - ], - "name": "appointmentExternalSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationTypeSnapshot", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "cancelled" - ], - "name": "appointmentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rollingDays", - "dateRange", - "specificDay", - "anyFutureDate" - ], - "name": "appointmentScheduleWindowType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "minutes", - "hours", - "days" - ], - "name": "appointmentReminderTimingUnit", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sent", - "cancelled", - "failed" - ], - "name": "appointmentReminderDispatchStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "image", - "video", - "audio", - "gif", - "file" - ], - "name": "fileType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inbound", - "outbound" - ], - "name": "automatedResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "defaultReply" - ], - "name": "automationThrottleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "now", - "future", - "recurring" - ], - "name": "broadcastScheduleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "sent", - "sending", - "cancelled", - "draft", - "failed", - "recurring" - ], - "name": "broadcastStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "created", - "skipped", - "missed" - ], - "name": "broadcastOccurrenceOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "catchUpSuperseded", - "paused", - "draft", - "blockedOwner", - "planLimit", - "noTargets", - "undeliverable", - "excludedDate" - ], - "name": "broadcastOccurrenceReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "coexistChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "messages" - ], - "name": "coexistMessengerSyncPhase", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "init", - "running", - "succeeded", - "failed", - "partial", - "waiting" - ], - "name": "coexistRunStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "coexist", - "contact_scan" - ], - "name": "coexistRunType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "instagramFacebook", - "threads", - "tiktok" - ], - "name": "commentAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "equal", - "contain" - ], - "name": "commentExcludeKeywordsType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "sent", - "failed" - ], - "name": "commentAutomationEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "public", - "private" - ], - "name": "commentAutomationReplyChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "AIAgent", - "text", - "flow", - "none" - ], - "name": "commentAutomationReplyType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "outsideSchedule", - "postNotMatched", - "commentIsReply", - "keywordsNotMatched", - "mentionCountNotMatched", - "contactNotNew", - "alreadyRepliedOnPost", - "engagedOnOtherPost" - ], - "name": "commentAutomationMissReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "male", - "female", - "unknown" - ], - "name": "gender", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "captured", - "unavailable", - "failed" - ], - "name": "contactInboxProfileSnapshotState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink", - "image", - "video", - "audio", - "gif", - "file", - "storyMention" - ], - "name": "lastUserInputType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inboundReceived", - "standbyReceived", - "controlPassed", - "controlTaken", - "taken", - "released", - "passed", - "serviceSent", - "serviceRejected" - ], - "name": "threadControlEvent", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owned", - "standby", - "idle" - ], - "name": "threadControlState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "scheduled", - "completed", - "failed", - "canceled" - ], - "name": "ContactOnSmartDelayStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "waitNode", - "followUp", - "quickReplyFollowUp" - ], - "name": "ContactOnSmartDelayType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "archived" - ], - "name": "couponTopicStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "shortText", - "email", - "phoneNumber", - "number", - "date", - "datetime", - "boolean", - "longText" - ], - "name": "customFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "passed", - "failed" - ], - "name": "DecisionConnectionTestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "typesafe", - "systemOneCompatible", - "openrouterDecision" - ], - "name": "DecisionProviderKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionProfileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "entireOrder", - "category", - "products" - ], - "name": "discountAppliesTo", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "everyone", - "specificCustomers" - ], - "name": "discountEligibility", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "amount", - "quantity" - ], - "name": "discountMinimumType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "percentage", - "fixedAmount", - "freeShipping" - ], - "name": "discountType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "externalLink", - "flow", - "productPage" - ], - "name": "checkoutMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "left", - "leftSpace", - "right", - "rightSpace" - ], - "name": "currencyPosition", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "flow", - "none" - ], - "name": "orderConfirmationMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bigSquare", - "mediumRectangle" - ], - "name": "productImageSize", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "delivery", - "pickup", - "deliveryAndPickup" - ], - "name": "shippingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "list", - "listWithoutImage", - "card", - "cardSquare", - "image", - "imageSquare" - ], - "name": "webshopProductView", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "import", - "generic", - "export" - ], - "name": "fileContextType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "uploaded", - "failed" - ], - "name": "fileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "tag", - "flow", - "customField", - "automatedResponse", - "trigger", - "webhook", - "sequence", - "emailTopic", - "fbComment", - "igComment", - "igStory", - "outboundAutomatedResponse" - ], - "name": "folderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "gclid", - "gbraid" - ], - "name": "googleAdsClickIdType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flowStep", - "triggerAction" - ], - "name": "googleAdsEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sending", - "sent", - "processed", - "failed", - "skipped_no_account", - "skipped_expired" - ], - "name": "googleAdsEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "processing", - "timeout" - ], - "name": "googleAdsFailureStage", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "success", - "partial_success", - "failed", - "unknown", - "timed_out" - ], - "name": "googleAdsProcessingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "storyReply", - "storyMention" - ], - "name": "igStoryAutomationTrigger", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "instagram", - "instagramFacebook" - ], - "name": "igStoryAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "csv", - "xlsx", - "xls", - "json" - ], - "name": "importFormat", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "importStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "coupons", - "products", - "flow" - ], - "name": "importType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "received", - "processing", - "processed", - "completedWithErrors", - "skipped", - "failed" - ], - "name": "inboundWebhookRequestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "oauth", - "fbe" - ], - "name": "metaCatalogAuthMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "invalid" - ], - "name": "metaCatalogConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "idle", - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogImportStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallRecordingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallTranscriptionMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending_verification", - "registered", - "failed" - ], - "name": "whatsappRegistrationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "whatsapp", - "zalo", - "telegram", - "tiktok", - "threads", - "email", - "gamification" - ], - "name": "leaderboardPlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "active", - "paused", - "finished" - ], - "name": "leaderboardStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "adjust", - "resetOne", - "resetAll", - "ban", - "unban" - ], - "name": "leaderboardAuditAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rule", - "flow", - "referral", - "manual", - "reset" - ], - "name": "leaderboardScoreSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink" - ], - "name": "contentType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message", - "comment" - ], - "name": "messageKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "incoming", - "outgoing", - "activity" - ], - "name": "messageType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "contact", - "system", - "user", - "api" - ], - "name": "senderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "MessageCleanupStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "messagingAdChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "campaignCreated", - "adSetCreated", - "creativeCreated", - "adCreated", - "failed" - ], - "name": "messagingAdCreateState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "publishing", - "published", - "pausing", - "paused", - "deleting", - "deleted", - "publishFailed" - ], - "name": "messagingAdPublishState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "push", - "import" - ], - "name": "metaCatalogItemDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "all", - "category", - "selected" - ], - "name": "metaCatalogSyncScope", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "web" - ], - "name": "miniAppSubmissionSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "submitted" - ], - "name": "miniAppUploadStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "luckyWheel", - "jackpot", - "gashapon", - "drawLots", - "scratchOff" - ], - "name": "minigameType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "user", - "apiToken", - "system", - "contact" - ], - "name": "orderActorType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "webshop", - "api", - "manual" - ], - "name": "orderSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "accepted", - "shipped", - "concluded", - "cancelled" - ], - "name": "orderStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "cod" - ], - "name": "paymentMethod", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "unpaid", - "paid", - "refunded" - ], - "name": "paymentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "pickup" - ], - "name": "shippingType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "dont_track", - "track" - ], - "name": "inventoryPolicy", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "number", - "email", - "phone", - "multipleChoice", - "date", - "datetime", - "image", - "file", - "location", - "websiteLink" - ], - "name": "questionnaireQuestionType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inProgress", - "completed", - "cancelled", - "failed", - "timeout" - ], - "name": "questionnaireSubmissionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "refLink", - "qrCode" - ], - "name": "ReflinkType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "me" - ], - "name": "SystemFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "creator", - "administrator", - "member", - "restricted", - "left", - "kicked" - ], - "name": "telegramBotChatStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "private", - "group", - "supergroup", - "channel" - ], - "name": "telegramChatType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "installing", - "completed", - "partial", - "failed" - ], - "name": "templateInstallationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flows", - "products", - "aiFunctions", - "aiAgents", - "calendars", - "webchats", - "keywords", - "entryPointLinks", - "triggers", - "fbCommentAutomations", - "settings", - "customFields", - "tags", - "productCategories" - ], - "name": "templateResourceCategory", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ios", - "android" - ], - "name": "devicePlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "userInitiated", - "businessInitiated" - ], - "name": "whatsappCallDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "completed", - "failed", - "rejected", - "canceled" - ], - "name": "whatsappCallOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ringing", - "accepted", - "rejected", - "completed", - "failed" - ], - "name": "whatsappCallStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "accept", - "reject" - ], - "name": "whatsappCallPermissionResponse", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "allTime", - "oncePerHour", - "oncePerDay" - ], - "name": "defaultReplyFrequency", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "full", - "read_only" - ], - "name": "WorkspaceApiTokenPermission", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owner", - "agent" - ], - "name": "workspaceMemberRole", - "entityType": "enums", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageShard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ShardTimeRange", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionRule", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIAgent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationSource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFunction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverBulkRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIMCPServer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsAgentResponseEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBotMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBroadcastEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsContactEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsConversationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsFlowNodeEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsSequenceEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsEmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsManifestStatus", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Appointment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarAvailability", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarReminder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentReminderDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Attachment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Jwk", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "User", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomatedResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomationThrottle", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BotField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Broadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrenceOccurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastTarget", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Cart", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ChannelPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CoexistSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationMiss", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConnectSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Connection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Contact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveHourly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveMonthly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactCustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInboxPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactNote", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnBroadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSmartDelay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Conversation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConversationParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Coupon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CouponTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionProfile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCode", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DynamicImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOpenHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOrderCounter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomDomain", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "License", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformAdmin", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tenant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TenantHelpItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserQuota", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceUsage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ErrorLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ExternalWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsLead", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessagesAuth", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "File", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Flow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowAnalyticsSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowNodeStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowVersion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Folder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IgStoryAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Import", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhookRequest", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Inbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxContactStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeam", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeamMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationActiveCampaign", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationApi", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Integration", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationClaude", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDeepseek", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDrip", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationFacebookAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGemini", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGetResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleSheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationInstagram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationKlaviyo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailchimp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailerLite", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMessenger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMetaCatalog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMoosend", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenai", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenaiCompatible", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenrouter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOutlookCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSendGrid", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSmtp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTelegram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationThreads", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTiktok", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWebchat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWhatsapp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationZalo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Leaderboard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardAuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardScoreEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFolder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Message", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageCleanup", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdOperation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdsConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerWelcomeMessageFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCapiEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniApp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppPublication", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppUpload", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Minigame", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigameContact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigamePlay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCodeRedemption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Order", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderStatusHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformCredential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Product", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductAddon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductCategory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariantOption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireAnswer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Questionnaire", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireQuestion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "RefLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Reflink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ResponseSlaPolicy", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReplyImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Sequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceStep", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Spreadsheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SystemField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TelegramChat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Template", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstallation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstalledResource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Condition", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerContactHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserDeviceToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserPersistentMenu", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Vendor", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Webhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WebhookExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappBusinessAccount", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCall", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCallPermission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCoexistStaging", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappSignupSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursDateOverride", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursInterval", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Workspace", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceApiToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMac", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMember", - "entityType": "tables", - "schema": "public" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "host", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "5432", - "generated": null, - "identity": null, - "name": "port", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "database", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credentialRef", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'disable'", - "generated": null, - "identity": null, - "name": "sslMode", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isMain", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardKey", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readHost", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readPort", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardId", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'whatsapp'", - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ctwaClid", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contents", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceEventId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionCapiStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationFacebookAdsId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "markAs", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionPrompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "actionRules", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isRichResponse", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "tools", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "webSearchAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "models", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkIndex", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "aiConversationEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attachmentId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentHash", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "summary", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "aiEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiFileId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dataCollect", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outputMessage", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedUntil", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkSeq", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursorContactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightFromId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightToId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "scheduleEnabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timeRanges", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gotoFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "pauseBotWaitingForStaff", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "applyToAllCustomers", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "applyToAllRevision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllRequestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "availableTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "selectedTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingSince", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "measuredFrom", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingResponseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isFirstResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaMet", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResponseType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotRouteType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "routeType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResult", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "result", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiProvider", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "analyticsBroadcastEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "batchId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "analyticsConversationEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsMessageEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "objectKey", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "analyticsStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "timestamp", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ingestedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviteeTimezone", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'scheduled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentLocationTypeSnapshot", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventIntegrationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventProviderCalendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentExternalSyncStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalSyncStatus", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "30", - "generated": null, - "identity": null, - "name": "durationMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "bufferAfterMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentLocationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentScheduleWindowType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'rollingDays'", - "generated": null, - "identity": null, - "name": "scheduleWindowType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "scheduleWindowConfig", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxAppointmentsPerUser", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "dailyLimitEnabled", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerDay", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowGroupMeeting", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerSlot", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationMessage", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalConnectionId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventTitleTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventDescriptionTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventAttendeesTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicLinkSlug", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingValue", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "appointmentReminderTimingUnit", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingUnit", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reminderConfigId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "appointmentReminderDispatchStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "jobId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedReason", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageCreatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "fileType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "width", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "height", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnailPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "keepOriginal", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "invitedBy", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "privateKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAnonymous", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "mustChangePassword", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "keywords", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "automatedResponseType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inbound'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "automationThrottleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "throttleType", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subjectId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'channel'", - "generated": null, - "identity": null, - "name": "targetMode", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastScheduleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesType", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactFilter", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subaction", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoffCompletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resumeCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeStart", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeEnd", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendRatePerMinute", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountedThroughAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "occurrenceCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOccurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recurrenceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "localSlot", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceOutcome", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceReason", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "childBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "materializedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "supersededCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "items", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedNotifiedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceAccountId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalPostId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "caption", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaType", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnail", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permalink", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataFetchedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataAttemptedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'coexist'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'init'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerSource", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentPageNumber", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedContactCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedMessageCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastChunkOrder", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "syncProgress", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistMessengerSyncPhase", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contacts'", - "generated": null, - "identity": null, - "name": "messengerSyncPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pendingPatches", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scanFromAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resumeCursor", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'messenger'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sentCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "missedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "post", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"text\",\"value\":\"\"}'", - "generated": null, - "identity": null, - "name": "privateReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "publicReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "excludeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentExcludeKeywordsType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contain'", - "generated": null, - "identity": null, - "name": "excludeKeywordsType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", - "generated": null, - "identity": null, - "name": "hideComments", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"immediately\",\"value\":0}'", - "generated": null, - "identity": null, - "name": "replyAfter", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyChannel", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorDetail", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "commentAutomationMissReason", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetConnectionId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorTokenId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platformOwnerId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originHost", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnUrl", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stateNonceHash", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'authorize'", - "generated": null, - "identity": null, - "name": "step", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextAction", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "targetClaims", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "resultConnectionIds", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "results", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "kind", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "displayName", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "statusReason", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "avatar", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumber", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "emailOptIn", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", - "type": "stored" - }, - "identity": null, - "name": "fullName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "gender", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gender", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "city", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "location", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locale", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastSubscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "blockedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalNewTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hourBucket", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceMacId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originalContactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followsBusiness", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessFollowsContact", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountVerified", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followerCount", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "contactInboxProfileSnapshotState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotAttempts", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotNextAttemptAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstInteractionAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastIncomingMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOutboundMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referral", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "consecutiveFailedReply", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastInputFailure", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastErrorLog", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastBtnTitle", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInput", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "lastUserInputType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInputType", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webchatParentUrl", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceParentUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUsername", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceIdentityHistory", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerRole", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlEvent", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlLastEvent", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadPreviousOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "sent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "enrolledAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagChannelId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "botEnabled", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botResumeAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "archivedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "additionalAttributes", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "agentLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiContextLastMessageId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followed", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedInboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplySince", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplyClosedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseDueAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaBreachingAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedContactId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "couponTopicStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasEverHadCoupon", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "showInInbox", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionProviderKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerKind", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endpoint", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "modelCatalog", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionTestStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestStatus", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "DecisionProfileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectionId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contract", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thresholdConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "globalRouterEnabled", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "globalRouterConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoApply", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountAppliesTo", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'entireOrder'", - "generated": null, - "identity": null, - "name": "appliesTo", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productIds", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountMinimumType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'none'", - "generated": null, - "identity": null, - "name": "minimumType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usageLimit", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "usedCount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "oncePerCustomer", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountEligibility", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'everyone'", - "generated": null, - "identity": null, - "name": "eligibility", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerFilter", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "data", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "backgroundUrl", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "lastNumber", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderingAvailable", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "webshopProductView", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webshopProductView", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "searchProducts", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookPixelId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartDelayMinutes", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productButtons", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "productImageSize", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productImageSize", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "allowRateOrders", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "notifyOnCartStatusChange", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "paymentMethods", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "currencyPosition", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyPosition", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencySymbol", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeePercent", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "shippingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingCountries", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultShippingCountry", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveryCost", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "checkoutMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutLink", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "orderConfirmationMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'default'", - "generated": null, - "identity": null, - "name": "orderConfirmationMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderConfirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireName", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireEmail", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requirePhone", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireState", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireZip", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sendsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seensTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clicksTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "domain", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfHostnameId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfOwnershipValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfAcmeValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "licenseId", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'super-admin'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disabledReason", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandName", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoLightPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoDarkPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "faviconPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customJs", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "theme", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storageUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "policyUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "termsOfServiceUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "signupEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "forgotPasswordEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "magicLinkEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountCredentialsEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hiddenChannels", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "icon", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspacesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "workspacesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "teamMembersLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "macLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "monthlyBotMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesPeriodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesTopUpGranted", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "whiteLabel", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "ssoSaml", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "saasMode", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planName", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planStatus", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selectedTrialPlanId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsTornDownAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stackTrace", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'make'", - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "fieldMapping", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "leadsHandledCount", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leadgenId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyOffset", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetType", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetMinorUnits", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "campaignId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileContextType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contextType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileSize", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableInInbox", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "draftVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "nodes", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "edges", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isDraft", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isLatest", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startNodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "folderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderType", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isTrash", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "paths", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationGoogleAdsId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionName", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionCategory", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lookbackWindowDays", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsClickIdType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickIdType", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "googleClickReceivedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transactionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadMethod", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsFailureStage", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failureStage", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsProcessingStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingStatus", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingAttempts", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextProcessingCheckAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingDetail", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "settings", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationTrigger", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'storyReply'", - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "story", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "reply", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importFormat", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "format", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "errorSample", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxResolution", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifiers", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldMappings", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sampleJson", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "requestCount", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboundWebhookId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clientIp", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "inboundWebhookRequestStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skipReason", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldErrors", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionResults", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "markReadOnOutbound", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectReason", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlSeenAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callbackUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationType", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "descriptiveName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedCustomerDataTerms", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActions", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionsSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupErrorAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "igId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'instagram'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "personas", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogAuthMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'oauth'", - "generated": null, - "identity": null, - "name": "authMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogImportStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'idle'", - "generated": null, - "identity": null, - "name": "importStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importTotalCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importFailedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "importError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastImportedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'VND'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReplyVoice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "voice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiAgentId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "baseURL", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "preset", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAddress", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadsUserId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enable", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "authorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideHeader", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "showLogo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideMessageInput", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "displayPhoneNumber", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "inboundCallsEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callHours", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callRecordingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "90", - "generated": null, - "identity": null, - "name": "callRecordingRetentionDays", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callTranscriptionEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallRecordingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callRecordingMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallTranscriptionMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callTranscriptionMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callAnnouncementLanguage", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callRecordingPurpose", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isCoexist", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "platformType", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "historyDeclined", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappRegistrationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending_verification'", - "generated": null, - "identity": null, - "name": "registrationStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "registrationError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verificationCodeRequestedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "oaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fallbackFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "coverImageUrl", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardPlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rules", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followersOnly", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagIds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'22:00'", - "generated": null, - "identity": null, - "name": "resetTime", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "cooldownSeconds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referralWelcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardSettings", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardsTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardRecipients", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "leaderboardAuditAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "score", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isBanned", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "scoredAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "date", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyBucket", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyCounts", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "breakdown", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "leaderboardScoreSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceRef", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isFavourite", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAccessedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentAttributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "contentType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "senderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'message'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendError", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationIds", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sinceTime", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "MessageCleanupStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdCreateState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "createState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdPublishState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "publishState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaCampaignId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdSetId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdCreativeId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "input", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cleanupError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'POSITIONAL'", - "generated": null, - "identity": null, - "name": "parameterFormat", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaFlowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'current'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentCategory", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'business_messaging'", - "generated": null, - "identity": null, - "name": "actionSource", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiError", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedFingerprint", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncScope", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'all'", - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "selectedProductIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "handles", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionLeaseId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "succeededCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "itemErrors", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "skippedItems", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "pollAttempt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "definition", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowJson", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "submissionsCount", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "whatsappFlowId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "miniAppSubmissionSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answers", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inputName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadToken", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "miniAppUploadStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "minigameType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "generalSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appearance", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "playerSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "winningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nonWinningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "playsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "participantsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "winnersCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "played", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "remaining", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isWinning", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeName", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantLabel", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorName", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "unitPrice", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "quantity", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "stockTaken", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "number", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentMethod", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'cod'", - "generated": null, - "identity": null, - "name": "paymentMethod", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'unpaid'", - "generated": null, - "identity": null, - "name": "paymentStatus", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subtotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeeTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "couponDiscount", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "total", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerName", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerEmail", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerPhone", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "shippingType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingAddress", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rating", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ratingComment", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "concludedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelReason", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderActorType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorType", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicConfig", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "livemode", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "usePlatformCredential", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isVerified", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUsedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "longDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "taxes", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "discount", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'USD'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productUrl", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "inventoryPolicy", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'dont_track'", - "generated": null, - "identity": null, - "name": "inventoryPolicy", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "inventoryQuantity", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowOutOfStockPurchase", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "images", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "tags", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isSearchable", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowSpecialRequest", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAddonOnly", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "maxSelections", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "addonProductIds", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isVisible", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isEnabled", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "values", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionIdSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTitleSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTypeSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "labelSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pointsEarned", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "attemptCount", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "answeredAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableScore", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableRetryMessages", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableCustomFieldMapping", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "questionnaireQuestionType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "orderNo", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "point", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retryMessage", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "systemFieldKey", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "questionnaireSubmissionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inProgress'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalPoints", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionSentAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAnsweredMessageId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "ReflinkType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'refLink'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "qrStyles", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetHiddenInboxIds", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoFileId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandName", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandUrl", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoBackgroundColor", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "25", - "generated": null, - "identity": null, - "name": "breachingThresholdPercent", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortcut", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "savedReplyId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaLibraryFileId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "subscribers", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runAtMs", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "bucket", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "enrollmentId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "order", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delayMinutes", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayUnit", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "specificDateTime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "anytime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeStart", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeEnd", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", - "generated": null, - "identity": null, - "name": "sendDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "spreadsheetId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "SystemFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelType", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalLabelId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chatId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramChatType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramBotChatStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botStatus", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publisherName", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "youtubeVideoId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "testLink", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryCounts", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareToken", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "shareEnabled", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultPermissions", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "createInstallFolder", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "defaultAutoUpdate", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "installCount", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateName", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceWorkspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "templateInstallationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "warnings", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "warningCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resourceCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installFolderId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoUpdate", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installedBy", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installationId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "templateResourceCategory", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceKind", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceResourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "wasExisting", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "varchar(255)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operator", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstEnteredAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failureCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalExecutions", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "devicePlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "menus", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phone", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "grantedScopes", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provisionedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "creditLineId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wacid", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attemptId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'ringing'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallOutcome", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "durationSeconds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answeredByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "initiatedByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingRequested", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingFailureReason", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingPath", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcript", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcribedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcriptSegments", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummary", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummarizedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummaryProvider", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "whatsappCallPermissionResponse", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "response", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isPermanent", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "respondedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payloadHash", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parseFailedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "categories", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "completedCount", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "screens", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAccessToken", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "apiVersion", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "candidatePhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "claimedPhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "date", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultReply", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "defaultReplyFrequency", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'allTime'", - "generated": null, - "identity": null, - "name": "defaultReplyFrequency", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetCountry", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'en'", - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'UTC'", - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'#016DFF'", - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "developmentMode", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "smartResponseDelaySeconds", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scheduledDeletionAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purgeStartedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "supportAccessUntil", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "capiLimitedDataUse", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "WorkspaceApiTokenPermission", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permission", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedToken", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "scopes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macCount", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "workspaceMemberRole", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationChannels", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationTypes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "onlineSince", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isActive", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_isActive_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_shardKey_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "startTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "endTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_time_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_shardId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'whatsapp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'messenger'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'instagram'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "enabled", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionRule_workspaceId_channel_enabled_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chunkIndex", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_chunkIndex_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "embedding", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "vector_cosine_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "hnsw", - "concurrently": false, - "name": "AIConversationEmbedding_embedding_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_messageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIEmbedding_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "aiFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIEmbedding_aiFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_live_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "revision", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_revision_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"createdAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_live_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "requestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_requestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "applyToAllRequestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "gotoFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_gotoFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "aiProvider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "hasResponse", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "result", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "toAssignee", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "senderType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_token_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "objectKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsManifestStatus_objectKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_calendarId_status_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_contactId_calendarId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "publicLinkSlug", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_publicLinkSlug_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarAvailability_calendarId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingValue", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingUnit", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarReminder_dedupe_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "jobId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_jobId_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sendAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_status_sendAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "messageCreatedAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_message_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "providerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "accountId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Account_providerId_accountId_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Invitation_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Session_token_key", - "entityType": "indexes", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_email_tenant_key", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomatedResponse_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastTriggeredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_lastTriggeredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BotField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "schedulesAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_schedulesAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"deletedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_parentBroadcastId_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_broadcastId_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"nextRunAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "localSlot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "childBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_workspaceId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastActivityAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"abandonedNotifiedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_abandoned_scan_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalPostId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_channel_externalPostId_key", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_sortAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"startedAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('succeeded', 'partial')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_resume_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status = 'init' AND type = 'coexist'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_init_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "type = 'contact_scan' AND status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_active_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "type = 'contact_scan'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "replyChannel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_private_unseen_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'failed'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_failed_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "consumedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"consumedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_consumedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stateNonceHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_stateNonceHash_key", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_workspaceId_provider_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_provider_sourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastSubscribedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_broadcast_subscribed_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_created_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_email", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_phone_number", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_full_name_md5", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "firstName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_firstName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_lastName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_email_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_phoneNumber_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_contactId_customFieldId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_customFieldId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceParentUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceParentUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceParentUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "profileSnapshotNextAttemptAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"profileSnapshotState\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_profileSnapshot_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_ai_held_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastIncomingMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastOutboundMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'ctwaClid')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'ctwaClid' IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_ctwaClid_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'adId')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_adId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInboxPost_workspaceId_postId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactNote_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_contact_id", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isRead", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_is_read", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"sent\" = false AND \"failedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_unsent_order_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_status_triggerAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_followUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTag_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_dm_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "responseDueAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"responseDueAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_responseDueAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "aiContextLastMessageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_aiContextLastMessageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastActivityAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_lastActivityAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"issuedContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_status_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "connectionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_connectionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"globalRouterEnabled\" = true", - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_globalRouter_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"code\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DynamicImage_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceOpenHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "abandonedCartFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_abandonedCartFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "checkoutFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_checkoutFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderConfirmationFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_orderConfirmationFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_userId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_tenantId_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "domain", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_domain_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "licenseId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "License_licenseId_key", - "entityType": "indexes", - "schema": "public", - "table": "License" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformAdmin_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "ownerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tenant_ownerId_key", - "entityType": "indexes", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "position", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TenantHelpItem_tenantId_position_idx", - "entityType": "indexes", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelsTornDownAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_channelsTornDownAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_due_expired_trial_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_idx", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "url", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_url_key", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "formId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_automationId_leadgenId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_leadgenId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "campaignId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_campaignId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessagesAuth_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_path_key", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contextType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_contextType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "subType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_subType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_workspaceId_flowId_key", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_1_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_2_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowVersionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_flowVersionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowVersion_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowVersion_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "transactionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextProcessingCheckAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_claimedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_inboxId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_fileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_products_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_token_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"idempotencyKey\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'received'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_received_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'processing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_claimedAt_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_channel_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tokenHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_tokenHash_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_integrationType_key", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleSheet_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "igId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_igId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_pageId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "preset", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"preset\" <> 'custom'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOutlookCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "botId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_botId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "threadsUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_threadsUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_openId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_phoneNumberId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fallbackFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_fallbackFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "oaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_oaId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "score", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "scoredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "NOT \"isBanned\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_ranking_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referrerContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFolder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversation_history_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_workspace_created_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_contactInboxId_sourceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversationId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parentId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_status_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationWhatsappId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationInstagramId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationMessengerId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationInstagramId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'current'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_current_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_channel_integrationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "retailerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_retailer_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_product_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" IN ('queued', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_miniAppId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "uploadToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_uploadToken_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_path_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "inputName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_miniAppId_inputName_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_submissionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_minigameId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_orderId_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_orderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_variantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "number", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_number_key", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_discountCodeId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_orderId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "actorUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_actorUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_user_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_platform_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductAddon_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariant_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariantOption_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "questionIdSnapshot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_questionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "orderNo", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_customFieldId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'inProgress'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Reflink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_mediaLibraryFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_bucket_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "enrollmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_enrollmentId_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspace_sequence_step_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_bucket_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updatedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" in ('completed', 'failed', 'canceled')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_terminal_updatedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_tag_integration_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalLabelId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_external_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_workspace_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chatId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_inboxId_chatId_key", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shareToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_shareToken_key", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "templateId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_templateId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_installationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceKind", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_source_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_key", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserDeviceToken_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserPersistentMenu_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_webhookId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "wabaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "wacid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"wacid\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_wacid_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "attemptId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"attemptId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_attemptId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_ringing_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_resumableRinging_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "recordedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"recordingPath\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_recording_inboxId_recordedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_pendingOutbound_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phoneNumberId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "payloadHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phone_hash_uq", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"processedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_processedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parseFailedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parseFailedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_parseFailedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspace_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_schedule_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursInterval_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursMember_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "scheduledDeletionAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_scheduledDeletionAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "supportAccessUntil", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_supportAccessUntil_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"isDefault\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_default_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceMember_workspaceId_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "shardId" - ], - "schemaTo": "public", - "tableTo": "MessageShard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ShardTimeRange_shardId_MessageShard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_k99JXbMObQIn_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationFacebookAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationFacebookAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_3zzAptVRRuZD_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_HUibBtSUZbML_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIAgent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIAgent" - }, - { - "nameExplicit": false, - "columns": [ - "sourceId" - ], - "schemaTo": "public", - "tableTo": "AIConversationSource", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "aiFileId" - ], - "schemaTo": "public", - "tableTo": "AIFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_aiFileId_AIFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFile" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIFunction_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFunction_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "gotoFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "applyToAllRequestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIMCPServer_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIMCPServer" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "EmailTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "confirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "cancellationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "externalConnectionId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "reminderConfigId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendarReminder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Account_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Account_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "invitedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_invitedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Session_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "User_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BotField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BotField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "parentBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "recurrenceId" - ], - "schemaTo": "public", - "tableTo": "BroadcastRecurrence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "childBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastTarget_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Cart_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "targetConnectionId" - ], - "schemaTo": "public", - "tableTo": "Connection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_targetConnectionId_Connection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorTokenId" - ], - "schemaTo": "public", - "tableTo": "WorkspaceApiToken", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Connection_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Contact_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagChannelId" - ], - "schemaTo": "public", - "tableTo": "TagChannel", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "assignedUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "assignedInboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "CouponTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_topicId_CouponTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "issuedContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Coupon_issuedContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CouponTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CouponTopic_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CustomField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionProfile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "connectionId" - ], - "schemaTo": "public", - "tableTo": "DecisionConnection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCode_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCode_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DynamicImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DynamicImage_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "abandonedCartFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "checkoutFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "orderConfirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EmailTopic_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AuditLog_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AuditLog_userId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomDomain_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "PlatformAdmin_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Tenant_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TenantHelpItem_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "UserQuota_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ErrorLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ErrorLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "FacebookLeadAdsAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "File_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "File_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Flow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Flow_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowVersionId" - ], - "schemaTo": "public", - "tableTo": "FlowVersion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Folder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationGoogleAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationGoogleAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IgStoryAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Import_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "fileId" - ], - "schemaTo": "public", - "tableTo": "File", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Import_fileId_File_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboundWebhookId" - ], - "schemaTo": "public", - "tableTo": "InboundWebhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Inbox_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxContactStat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxContactStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeam_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeam" - }, - { - "nameExplicit": false, - "columns": [ - "inboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Integration_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_inboxId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationInstagram_welcomeFlowId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "aiAgentId" - ], - "schemaTo": "public", - "tableTo": "AIAgent", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "fallbackFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Leaderboard_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "referralWelcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "MagicLink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_linkId_MagicLink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFolder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_LwL2ykeZegup_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MessagingAdOperation_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_wJXyKUssR08y_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniApp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "whatsappFlowId" - ], - "schemaTo": "public", - "tableTo": "WhatsappFlow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "MiniAppSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Minigame_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "variantId" - ], - "schemaTo": "public", - "tableTo": "ProductVariant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_variantId_ProductVariant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Order_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderStatusHistory_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Credential_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Product_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductAddon_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "parentId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_parentId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariant_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariantOption_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "questionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Questionnaire_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Questionnaire_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "currentQuestionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "Reflink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_linkId_Reflink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "widgetLogoFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReply" - }, - { - "nameExplicit": false, - "columns": [ - "savedReplyId" - ], - "schemaTo": "public", - "tableTo": "SavedReply", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "mediaLibraryFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Sequence_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Sequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "stepId" - ], - "schemaTo": "public", - "tableTo": "SequenceStep", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - "enrollmentId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "ContactOnSequence", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_enrollment_workspace_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "SequenceStep_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceStep_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Spreadsheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Tag_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Tag_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Template_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Template_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Template_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "templateId" - ], - "schemaTo": "public", - "tableTo": "Template", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_templateId_Template_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installFolderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installFolderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installationId" - ], - "schemaTo": "public", - "tableTo": "TemplateInstallation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Trigger_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Trigger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Vendor_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Webhook_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Webhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": false, - "columns": [ - "answeredByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_answeredByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "initiatedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_initiatedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": false, - "columns": [ - "workingHoursId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsAgentResponseEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsBotMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "columns": [ - "broadcastId", - "contactInboxId", - "batchId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsBroadcastEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsContactEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsConversationEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "columns": [ - "flowId", - "analyticsId", - "nodeId", - "buttonId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsFlowNodeEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "columns": [ - "sequenceId", - "stepId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsSequenceEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Attachment_pkey", - "entityType": "pks", - "schema": "public", - "table": "Attachment" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "throttleType", - "subjectId" - ], - "nameExplicit": true, - "name": "AutomationThrottle_pkey", - "entityType": "pks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "columns": [ - "broadcastId", - "inboxId" - ], - "nameExplicit": true, - "name": "BroadcastTarget_pkey", - "entityType": "pks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "columns": [ - "workspaceId", - "hourBucket", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveHourly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "columns": [ - "workspaceId", - "periodStart", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveMonthly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "postId" - ], - "nameExplicit": true, - "name": "ContactInboxPost_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "columns": [ - "broadcastId", - "contactId" - ], - "nameExplicit": true, - "name": "ContactsOnBroadcast_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "ContactOnSequence_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "columns": [ - "contactId", - "tagId" - ], - "nameExplicit": false, - "name": "ContactToTag_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTag" - }, - { - "columns": [ - "tagChannelId", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactToTagChannel_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "columns": [ - "leaderboardId", - "contactId" - ], - "nameExplicit": false, - "name": "LeaderboardParticipant_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "columns": [ - "createdAt", - "id" - ], - "nameExplicit": false, - "name": "LeaderboardScoreEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Message_pkey", - "entityType": "pks", - "schema": "public", - "table": "Message" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "SequenceDispatch_pkey", - "entityType": "pks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "columns": [ - "id", - "contactId" - ], - "nameExplicit": true, - "name": "TriggerContactHistory_pkey", - "entityType": "pks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageShard_pkey", - "schema": "public", - "table": "MessageShard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ShardTimeRange_pkey", - "schema": "public", - "table": "ShardTimeRange", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionEvent_pkey", - "schema": "public", - "table": "AdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionRule_pkey", - "schema": "public", - "table": "AdsConversionRule", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIAgent_pkey", - "schema": "public", - "table": "AIAgent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationEmbedding_pkey", - "schema": "public", - "table": "AIConversationEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationSource_pkey", - "schema": "public", - "table": "AIConversationSource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIEmbedding_pkey", - "schema": "public", - "table": "AIEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFile_pkey", - "schema": "public", - "table": "AIFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFunction_pkey", - "schema": "public", - "table": "AIFunction", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverBulkRun_pkey", - "schema": "public", - "table": "AIHandoverBulkRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverSettings_pkey", - "schema": "public", - "table": "AIHandoverSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIMCPServer_pkey", - "schema": "public", - "table": "AIMCPServer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AnalyticsEmailTopic_pkey", - "schema": "public", - "table": "AnalyticsEmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Appointment_pkey", - "schema": "public", - "table": "Appointment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendar_pkey", - "schema": "public", - "table": "AppointmentCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarAvailability_pkey", - "schema": "public", - "table": "AppointmentCalendarAvailability", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarReminder_pkey", - "schema": "public", - "table": "AppointmentCalendarReminder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentReminderDispatch_pkey", - "schema": "public", - "table": "AppointmentReminderDispatch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Account_pkey", - "schema": "public", - "table": "Account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Invitation_pkey", - "schema": "public", - "table": "Invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Jwk_pkey", - "schema": "public", - "table": "Jwk", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Session_pkey", - "schema": "public", - "table": "Session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "User_pkey", - "schema": "public", - "table": "User", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Verification_pkey", - "schema": "public", - "table": "Verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AutomatedResponse_pkey", - "schema": "public", - "table": "AutomatedResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BotField_pkey", - "schema": "public", - "table": "BotField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Broadcast_pkey", - "schema": "public", - "table": "Broadcast", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrenceOccurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Cart_pkey", - "schema": "public", - "table": "Cart", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ChannelPost_pkey", - "schema": "public", - "table": "ChannelPost", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CoexistSyncRun_pkey", - "schema": "public", - "table": "CoexistSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomation_pkey", - "schema": "public", - "table": "CommentAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationEvent_pkey", - "schema": "public", - "table": "CommentAutomationEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationMiss_pkey", - "schema": "public", - "table": "CommentAutomationMiss", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationReply_pkey", - "schema": "public", - "table": "CommentAutomationReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConnectSession_pkey", - "schema": "public", - "table": "ConnectSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Connection_pkey", - "schema": "public", - "table": "Connection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Contact_pkey", - "schema": "public", - "table": "Contact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactCustomField_pkey", - "schema": "public", - "table": "ContactCustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactInbox_pkey", - "schema": "public", - "table": "ContactInbox", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactNote_pkey", - "schema": "public", - "table": "ContactNote", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactOnSmartDelay_pkey", - "schema": "public", - "table": "ContactOnSmartDelay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Conversation_pkey", - "schema": "public", - "table": "Conversation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConversationParticipant_pkey", - "schema": "public", - "table": "ConversationParticipant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Coupon_pkey", - "schema": "public", - "table": "Coupon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CouponTopic_pkey", - "schema": "public", - "table": "CouponTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomField_pkey", - "schema": "public", - "table": "CustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionConnection_pkey", - "schema": "public", - "table": "DecisionConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionProfile_pkey", - "schema": "public", - "table": "DecisionProfile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCode_pkey", - "schema": "public", - "table": "DiscountCode", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DynamicImage_pkey", - "schema": "public", - "table": "DynamicImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceOpenHours_pkey", - "schema": "public", - "table": "EcommerceOpenHours", - "entityType": "pks" - }, - { - "columns": [ - "workspaceId" - ], - "nameExplicit": false, - "name": "EcommerceOrderCounter_pkey", - "schema": "public", - "table": "EcommerceOrderCounter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceSettings_pkey", - "schema": "public", - "table": "EcommerceSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EmailTopic_pkey", - "schema": "public", - "table": "EmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AuditLog_pkey", - "schema": "public", - "table": "AuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomDomain_pkey", - "schema": "public", - "table": "CustomDomain", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "License_pkey", - "schema": "public", - "table": "License", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "PlatformAdmin_pkey", - "schema": "public", - "table": "PlatformAdmin", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tenant_pkey", - "schema": "public", - "table": "Tenant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TenantHelpItem_pkey", - "schema": "public", - "table": "TenantHelpItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserQuota_pkey", - "schema": "public", - "table": "UserQuota", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceUsage_pkey", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ErrorLog_pkey", - "schema": "public", - "table": "ErrorLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ExternalWebhook_pkey", - "schema": "public", - "table": "ExternalWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsAutomation_pkey", - "schema": "public", - "table": "FacebookLeadAdsAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsLead_pkey", - "schema": "public", - "table": "FacebookLeadAdsLead", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessage_pkey", - "schema": "public", - "table": "FacebookMarketingMessage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessagesAuth_pkey", - "schema": "public", - "table": "FacebookMarketingMessagesAuth", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "File_pkey", - "schema": "public", - "table": "File", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Flow_pkey", - "schema": "public", - "table": "Flow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowAnalyticsSession_pkey", - "schema": "public", - "table": "FlowAnalyticsSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowNodeStat_pkey", - "schema": "public", - "table": "FlowNodeStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowRun_pkey", - "schema": "public", - "table": "FlowRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowVersion_pkey", - "schema": "public", - "table": "FlowVersion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Folder_pkey", - "schema": "public", - "table": "Folder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsConversionEvent_pkey", - "schema": "public", - "table": "GoogleAdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsSettings_pkey", - "schema": "public", - "table": "GoogleAdsSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IgStoryAutomation_pkey", - "schema": "public", - "table": "IgStoryAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Import_pkey", - "schema": "public", - "table": "Import", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhook_pkey", - "schema": "public", - "table": "InboundWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhookRequest_pkey", - "schema": "public", - "table": "InboundWebhookRequest", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Inbox_pkey", - "schema": "public", - "table": "Inbox", - "entityType": "pks" - }, - { - "columns": [ - "inboxId" - ], - "nameExplicit": false, - "name": "InboxContactStat_pkey", - "schema": "public", - "table": "InboxContactStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeam_pkey", - "schema": "public", - "table": "InboxTeam", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeamMember_pkey", - "schema": "public", - "table": "InboxTeamMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationActiveCampaign_pkey", - "schema": "public", - "table": "IntegrationActiveCampaign", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationApi_pkey", - "schema": "public", - "table": "IntegrationApi", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Integration_pkey", - "schema": "public", - "table": "Integration", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationClaude_pkey", - "schema": "public", - "table": "IntegrationClaude", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDeepseek_pkey", - "schema": "public", - "table": "IntegrationDeepseek", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDrip_pkey", - "schema": "public", - "table": "IntegrationDrip", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationFacebookAds_pkey", - "schema": "public", - "table": "IntegrationFacebookAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGemini_pkey", - "schema": "public", - "table": "IntegrationGemini", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGetResponse_pkey", - "schema": "public", - "table": "IntegrationGetResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleAds_pkey", - "schema": "public", - "table": "IntegrationGoogleAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleCalendar_pkey", - "schema": "public", - "table": "IntegrationGoogleCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleSheet_pkey", - "schema": "public", - "table": "IntegrationGoogleSheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationInstagram_pkey", - "schema": "public", - "table": "IntegrationInstagram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationKlaviyo_pkey", - "schema": "public", - "table": "IntegrationKlaviyo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailchimp_pkey", - "schema": "public", - "table": "IntegrationMailchimp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailerLite_pkey", - "schema": "public", - "table": "IntegrationMailerLite", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMessenger_pkey", - "schema": "public", - "table": "IntegrationMessenger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMetaCatalog_pkey", - "schema": "public", - "table": "IntegrationMetaCatalog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMoosend_pkey", - "schema": "public", - "table": "IntegrationMoosend", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenai_pkey", - "schema": "public", - "table": "IntegrationOpenai", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenaiCompatible_pkey", - "schema": "public", - "table": "IntegrationOpenaiCompatible", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenrouter_pkey", - "schema": "public", - "table": "IntegrationOpenrouter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOutlookCalendar_pkey", - "schema": "public", - "table": "IntegrationOutlookCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSendGrid_pkey", - "schema": "public", - "table": "IntegrationSendGrid", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSmtp_pkey", - "schema": "public", - "table": "IntegrationSmtp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTelegram_pkey", - "schema": "public", - "table": "IntegrationTelegram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationThreads_pkey", - "schema": "public", - "table": "IntegrationThreads", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTiktok_pkey", - "schema": "public", - "table": "IntegrationTiktok", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWebchat_pkey", - "schema": "public", - "table": "IntegrationWebchat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWhatsapp_pkey", - "schema": "public", - "table": "IntegrationWhatsapp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationZalo_pkey", - "schema": "public", - "table": "IntegrationZalo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Leaderboard_pkey", - "schema": "public", - "table": "Leaderboard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "LeaderboardAuditLog_pkey", - "schema": "public", - "table": "LeaderboardAuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MagicLink_pkey", - "schema": "public", - "table": "MagicLink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFile_pkey", - "schema": "public", - "table": "MediaLibraryFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFolder_pkey", - "schema": "public", - "table": "MediaLibraryFolder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageCleanup_pkey", - "schema": "public", - "table": "MessageCleanup", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdOperation_pkey", - "schema": "public", - "table": "MessagingAdOperation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdsConnection_pkey", - "schema": "public", - "table": "MessagingAdsConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerMessageTemplate_pkey", - "schema": "public", - "table": "MessengerMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerWelcomeMessageFlow_pkey", - "schema": "public", - "table": "MessengerWelcomeMessageFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCapiEvent_pkey", - "schema": "public", - "table": "MetaCapiEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogItem_pkey", - "schema": "public", - "table": "MetaCatalogItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogSyncRun_pkey", - "schema": "public", - "table": "MetaCatalogSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniApp_pkey", - "schema": "public", - "table": "MiniApp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppPublication_pkey", - "schema": "public", - "table": "MiniAppPublication", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppSubmission_pkey", - "schema": "public", - "table": "MiniAppSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppUpload_pkey", - "schema": "public", - "table": "MiniAppUpload", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Minigame_pkey", - "schema": "public", - "table": "Minigame", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigameContact_pkey", - "schema": "public", - "table": "MinigameContact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigamePlay_pkey", - "schema": "public", - "table": "MinigamePlay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCodeRedemption_pkey", - "schema": "public", - "table": "DiscountCodeRedemption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderItem_pkey", - "schema": "public", - "table": "OrderItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Order_pkey", - "schema": "public", - "table": "Order", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderStatusHistory_pkey", - "schema": "public", - "table": "OrderStatusHistory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Credential_pkey", - "schema": "public", - "table": "PlatformCredential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Product_pkey", - "schema": "public", - "table": "Product", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductAddon_pkey", - "schema": "public", - "table": "ProductAddon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductCategory_pkey", - "schema": "public", - "table": "ProductCategory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariant_pkey", - "schema": "public", - "table": "ProductVariant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariantOption_pkey", - "schema": "public", - "table": "ProductVariantOption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireAnswer_pkey", - "schema": "public", - "table": "QuestionnaireAnswer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Questionnaire_pkey", - "schema": "public", - "table": "Questionnaire", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireQuestion_pkey", - "schema": "public", - "table": "QuestionnaireQuestion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireSubmission_pkey", - "schema": "public", - "table": "QuestionnaireSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Reflink_pkey", - "schema": "public", - "table": "Reflink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ResponseSlaPolicy_pkey", - "schema": "public", - "table": "ResponseSlaPolicy", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReply_pkey", - "schema": "public", - "table": "SavedReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReplyImage_pkey", - "schema": "public", - "table": "SavedReplyImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Sequence_pkey", - "schema": "public", - "table": "Sequence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SequenceStep_pkey", - "schema": "public", - "table": "SequenceStep", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Spreadsheet_pkey", - "schema": "public", - "table": "Spreadsheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SystemField_pkey", - "schema": "public", - "table": "SystemField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tag_pkey", - "schema": "public", - "table": "Tag", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TagChannel_pkey", - "schema": "public", - "table": "TagChannel", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TelegramChat_pkey", - "schema": "public", - "table": "TelegramChat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Template_pkey", - "schema": "public", - "table": "Template", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstallation_pkey", - "schema": "public", - "table": "TemplateInstallation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstalledResource_pkey", - "schema": "public", - "table": "TemplateInstalledResource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Trigger_pkey", - "schema": "public", - "table": "Trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Condition_pkey", - "schema": "public", - "table": "Condition", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerExecution_pkey", - "schema": "public", - "table": "TriggerExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerStat_pkey", - "schema": "public", - "table": "TriggerStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserDeviceToken_pkey", - "schema": "public", - "table": "UserDeviceToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserPersistentMenu_pkey", - "schema": "public", - "table": "UserPersistentMenu", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Vendor_pkey", - "schema": "public", - "table": "Vendor", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Webhook_pkey", - "schema": "public", - "table": "Webhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WebhookExecution_pkey", - "schema": "public", - "table": "WebhookExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappBusinessAccount_pkey", - "schema": "public", - "table": "WhatsappBusinessAccount", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCall_pkey", - "schema": "public", - "table": "WhatsappCall", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCallPermission_pkey", - "schema": "public", - "table": "WhatsappCallPermission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCoexistStaging_pkey", - "schema": "public", - "table": "WhatsappCoexistStaging", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappFlow_pkey", - "schema": "public", - "table": "WhatsappFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappMessageTemplate_pkey", - "schema": "public", - "table": "WhatsappMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappSignupSession_pkey", - "schema": "public", - "table": "WhatsappSignupSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHours_pkey", - "schema": "public", - "table": "WorkingHours", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursDateOverride_pkey", - "schema": "public", - "table": "WorkingHoursDateOverride", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursInterval_pkey", - "schema": "public", - "table": "WorkingHoursInterval", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursMember_pkey", - "schema": "public", - "table": "WorkingHoursMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Workspace_pkey", - "schema": "public", - "table": "Workspace", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceApiToken_pkey", - "schema": "public", - "table": "WorkspaceApiToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMac_pkey", - "schema": "public", - "table": "WorkspaceMac", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMember_pkey", - "schema": "public", - "table": "WorkspaceMember", - "entityType": "pks" - }, - { - "nameExplicit": true, - "columns": [ - "contactInboxId", - "sourceId", - "createdAt" - ], - "nullsNotDistinct": false, - "name": "Message_source_dedup_idx", - "entityType": "uniques", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "parentId", - "name" - ], - "nullsNotDistinct": true, - "name": "ProductCategory_workspaceId_parent_name_key", - "entityType": "uniques", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "ResponseSlaPolicy_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": true, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "UserDeviceToken_token_key", - "entityType": "uniques", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - "id", - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkingHours_id_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "userId" - ], - "nullsNotDistinct": false, - "name": "WorkingHoursMember_workspaceId_userId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "tokenHash" - ], - "nullsNotDistinct": false, - "name": "WorkspaceApiToken_tokenHash_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "periodStart", - "periodEnd" - ], - "nullsNotDistinct": false, - "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "nullsNotDistinct": false, - "name": "UserQuota_userId_key", - "schema": "public", - "table": "UserQuota", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkspaceUsage_workspaceId_key", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "uniques" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", - "name": "AdsConversionEvent_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", - "name": "Broadcast_occurrence_pair_check", - "entityType": "checks", - "schema": "public", - "table": "Broadcast" - }, - { - "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", - "name": "ConnectSession_actor_at_most_one", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", - "name": "ConnectSession_status_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", - "name": "ConnectSession_purpose_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", - "name": "ConnectSession_errorCode_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", - "name": "ConnectSession_errorCode_terminal_failure_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", - "name": "ConnectSession_terminal_consumedAt_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", - "name": "ConnectSession_terminal_clears_encryptedAuth_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", - "name": "ConnectSession_active_reconnect_requires_target_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", - "name": "Connection_kind_relation_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", - "name": "Connection_inbox_integration_exclusive_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"kind\" IN ('channel', 'integration')", - "name": "Connection_kind_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", - "name": "Connection_status_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", - "name": "Connection_statusReason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", - "name": "Connection_status_reason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", - "name": "Connection_disconnectedAt_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", - "name": "DiscountCode_usedCount_check", - "entityType": "checks", - "schema": "public", - "table": "DiscountCode" - }, - { - "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", - "name": "EcommerceSettings_serviceFeePercent_check", - "entityType": "checks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sent_requires_request_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sending_requires_claim_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", - "name": "GoogleAdsConversionEvent_processing_status_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", - "name": "GoogleAdsConversionEvent_failure_stage_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", - "name": "GoogleAdsConversionEvent_value_currency_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"value\" IS NULL OR \"value\" >= 0", - "name": "GoogleAdsConversionEvent_value_non_negative_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "length(\"clickId\") BETWEEN 10 AND 512", - "name": "GoogleAdsConversionEvent_clickId_length_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", - "name": "GoogleAdsConversionEvent_uploadMethod_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", - "name": "GoogleAdsConversionEvent_attempt_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", - "name": "IntegrationWhatsapp_registrationStatus_error_consistent", - "entityType": "checks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdOperation_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdsConnection_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", - "name": "MetaCapiEvent_channel_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", - "name": "MetaCapiEvent_actionSource_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"contentType\" IN ('product', 'product_group')", - "name": "MetaCapiEvent_contentType_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", - "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", - "entityType": "checks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", - "name": "ResponseSlaPolicy_targets_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", - "name": "ResponseSlaPolicy_threshold_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", - "name": "Vendor_discountPercent_check", - "entityType": "checks", - "schema": "public", - "table": "Vendor" - }, - { - "value": "cardinality(\"candidatePhoneNumberIds\") > 0", - "name": "WhatsappSignupSession_candidates_not_empty", - "entityType": "checks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "value": "\"weekday\" BETWEEN 0 AND 6", - "name": "WorkingHoursInterval_weekday_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", - "name": "WorkingHoursInterval_minutes_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql b/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql deleted file mode 100644 index 02c9fb72b4..0000000000 --- a/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/migration.sql +++ /dev/null @@ -1,14 +0,0 @@ -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"CommentAutomationReply_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "CommentAutomationReply_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "CommentAutomationReply_workspaceId_idx" ON "CommentAutomationReply" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardAuditLog_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "LeaderboardAuditLog_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardAuditLog_workspaceId_idx" ON "LeaderboardAuditLog" ("workspaceId"); \ No newline at end of file diff --git a/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql b/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql deleted file mode 100644 index 1c85aeef1b..0000000000 --- a/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/migration.sql +++ /dev/null @@ -1,42 +0,0 @@ -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIAgent_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "AIAgent_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIAgent_workspaceId_idx" ON "AIAgent" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIFile_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "AIFile_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIFile_workspaceId_idx" ON "AIFile" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"Flow_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "Flow_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "Flow_workspaceId_idx" ON "Flow" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"InboxTeam_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "InboxTeam_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "InboxTeam_workspaceId_idx" ON "InboxTeam" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"SavedReply_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "SavedReply_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "SavedReply_workspaceId_idx" ON "SavedReply" ("workspaceId");--> statement-breakpoint -DO $$ -BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"SavedReplyImage_workspaceId_idx"') AND NOT indisvalid) THEN - DROP INDEX "SavedReplyImage_workspaceId_idx"; - END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "SavedReplyImage_workspaceId_idx" ON "SavedReplyImage" ("workspaceId"); diff --git a/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql b/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql deleted file mode 100644 index 2e1199a615..0000000000 --- a/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/migration.sql +++ /dev/null @@ -1,36 +0,0 @@ -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "AnalyticsEmailTopic_contactId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_contactId_idx" ON "AnalyticsEmailTopic" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_conversationId_idx"') AND NOT indisvalid) THEN DROP INDEX "AnalyticsEmailTopic_conversationId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_conversationId_idx" ON "AnalyticsEmailTopic" ("conversationId") WHERE "conversationId" IS NOT NULL;--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_contactInboxId_idx"') AND NOT indisvalid) THEN DROP INDEX "AnalyticsEmailTopic_contactInboxId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_contactInboxId_idx" ON "AnalyticsEmailTopic" ("contactInboxId") WHERE "contactInboxId" IS NOT NULL;--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FacebookLeadAdsLead_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "FacebookLeadAdsLead_contactId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "FacebookLeadAdsLead_contactId_idx" ON "FacebookLeadAdsLead" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MiniAppUpload_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "MiniAppUpload_contactId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "MiniAppUpload_contactId_idx" ON "MiniAppUpload" ("contactId");--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MinigameContact_referrerContactId_idx"') AND NOT indisvalid) THEN DROP INDEX "MinigameContact_referrerContactId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "MinigameContact_referrerContactId_idx" ON "MinigameContact" ("referrerContactId") WHERE "referrerContactId" IS NOT NULL;--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MinigameContact_contactInboxId_idx"') AND NOT indisvalid) THEN DROP INDEX "MinigameContact_contactInboxId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "MinigameContact_contactInboxId_idx" ON "MinigameContact" ("contactInboxId") WHERE "contactInboxId" IS NOT NULL;--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "QuestionnaireSubmission_contactId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_contactId_idx" ON "QuestionnaireSubmission" ("contactId");--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_conversationId_idx"') AND NOT indisvalid) THEN DROP INDEX "QuestionnaireSubmission_conversationId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_conversationId_idx" ON "QuestionnaireSubmission" ("conversationId") WHERE "conversationId" IS NOT NULL; \ No newline at end of file diff --git a/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json b/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json deleted file mode 100644 index 4a11ae7806..0000000000 --- a/packages/database/drizzle/20261024104347_add_workspace_purge_child_indexes/snapshot.json +++ /dev/null @@ -1,62255 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "7e8a925f-4a67-49a0-bd91-03492cfc9814", - "prevIds": [ - "e49563dc-20d4-4b98-9f88-db1819b4eb62" - ], - "ddl": [ - { - "values": [ - "pending", - "sent", - "failed", - "skipped_no_scope", - "skipped_region" - ], - "name": "adsConversionCapiStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automatic", - "rule", - "trigger" - ], - "name": "adsConversionEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "facebook", - "messenger", - "instagram" - ], - "name": "adsConversionChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "lead", - "purchase" - ], - "name": "adsConversionEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiConversationEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "success", - "error" - ], - "name": "aiConversationSourceStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "document", - "image", - "url", - "web_search" - ], - "name": "aiConversationSourceType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enable", - "disable" - ], - "name": "aiHandoverBulkAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "running", - "cancelling", - "completed", - "failed", - "cancelled" - ], - "name": "aiHandoverBulkStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automated_response", - "ai_agent", - "flow", - "none" - ], - "name": "analyticsBotResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "success", - "fallback" - ], - "name": "analyticsBotResult", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flow", - "agent", - "fallback" - ], - "name": "analyticsBotRouteType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message:sent", - "message:delivered", - "message:seen", - "message:failed", - "flow:clicked" - ], - "name": "analyticsBroadcastEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contact_created", - "contact_deleted", - "contact_blocked" - ], - "name": "analyticsContactEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "human" - ], - "name": "analyticsContactSenderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "conversation_created", - "conversation_assigned", - "conversation_unassigned", - "conversation_transferred_to_human", - "conversation_transferred_to_bot", - "conversation_followed", - "conversation_unfollowed", - "conversation_archived", - "conversation_unarchived" - ], - "name": "analyticsConversationEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message_human_sent", - "message_bot_sent" - ], - "name": "analyticsMessageEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "ingested", - "failed" - ], - "name": "analyticsStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "synced", - "failed" - ], - "name": "appointmentExternalSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationTypeSnapshot", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "cancelled" - ], - "name": "appointmentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rollingDays", - "dateRange", - "specificDay", - "anyFutureDate" - ], - "name": "appointmentScheduleWindowType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "minutes", - "hours", - "days" - ], - "name": "appointmentReminderTimingUnit", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sent", - "cancelled", - "failed" - ], - "name": "appointmentReminderDispatchStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "image", - "video", - "audio", - "gif", - "file" - ], - "name": "fileType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inbound", - "outbound" - ], - "name": "automatedResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "defaultReply" - ], - "name": "automationThrottleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "now", - "future", - "recurring" - ], - "name": "broadcastScheduleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "sent", - "sending", - "cancelled", - "draft", - "failed", - "recurring" - ], - "name": "broadcastStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "created", - "skipped", - "missed" - ], - "name": "broadcastOccurrenceOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "catchUpSuperseded", - "paused", - "draft", - "blockedOwner", - "planLimit", - "noTargets", - "undeliverable", - "excludedDate" - ], - "name": "broadcastOccurrenceReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "coexistChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "messages" - ], - "name": "coexistMessengerSyncPhase", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "init", - "running", - "succeeded", - "failed", - "partial", - "waiting" - ], - "name": "coexistRunStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "coexist", - "contact_scan" - ], - "name": "coexistRunType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "instagramFacebook", - "threads", - "tiktok" - ], - "name": "commentAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "equal", - "contain" - ], - "name": "commentExcludeKeywordsType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "sent", - "failed" - ], - "name": "commentAutomationEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "public", - "private" - ], - "name": "commentAutomationReplyChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "AIAgent", - "text", - "flow", - "none" - ], - "name": "commentAutomationReplyType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "outsideSchedule", - "postNotMatched", - "commentIsReply", - "keywordsNotMatched", - "mentionCountNotMatched", - "contactNotNew", - "alreadyRepliedOnPost", - "engagedOnOtherPost" - ], - "name": "commentAutomationMissReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "male", - "female", - "unknown" - ], - "name": "gender", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "captured", - "unavailable", - "failed" - ], - "name": "contactInboxProfileSnapshotState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink", - "image", - "video", - "audio", - "gif", - "file", - "storyMention" - ], - "name": "lastUserInputType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inboundReceived", - "standbyReceived", - "controlPassed", - "controlTaken", - "taken", - "released", - "passed", - "serviceSent", - "serviceRejected" - ], - "name": "threadControlEvent", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owned", - "standby", - "idle" - ], - "name": "threadControlState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "scheduled", - "completed", - "failed", - "canceled" - ], - "name": "ContactOnSmartDelayStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "waitNode", - "followUp", - "quickReplyFollowUp" - ], - "name": "ContactOnSmartDelayType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "archived" - ], - "name": "couponTopicStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "shortText", - "email", - "phoneNumber", - "number", - "date", - "datetime", - "boolean", - "longText" - ], - "name": "customFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "passed", - "failed" - ], - "name": "DecisionConnectionTestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "typesafe", - "systemOneCompatible", - "openrouterDecision" - ], - "name": "DecisionProviderKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionProfileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "entireOrder", - "category", - "products" - ], - "name": "discountAppliesTo", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "everyone", - "specificCustomers" - ], - "name": "discountEligibility", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "amount", - "quantity" - ], - "name": "discountMinimumType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "percentage", - "fixedAmount", - "freeShipping" - ], - "name": "discountType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "externalLink", - "flow", - "productPage" - ], - "name": "checkoutMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "left", - "leftSpace", - "right", - "rightSpace" - ], - "name": "currencyPosition", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "flow", - "none" - ], - "name": "orderConfirmationMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bigSquare", - "mediumRectangle" - ], - "name": "productImageSize", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "delivery", - "pickup", - "deliveryAndPickup" - ], - "name": "shippingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "list", - "listWithoutImage", - "card", - "cardSquare", - "image", - "imageSquare" - ], - "name": "webshopProductView", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "import", - "generic", - "export" - ], - "name": "fileContextType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "uploaded", - "failed" - ], - "name": "fileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "tag", - "flow", - "customField", - "automatedResponse", - "trigger", - "webhook", - "sequence", - "emailTopic", - "fbComment", - "igComment", - "igStory", - "outboundAutomatedResponse" - ], - "name": "folderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "gclid", - "gbraid" - ], - "name": "googleAdsClickIdType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flowStep", - "triggerAction" - ], - "name": "googleAdsEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sending", - "sent", - "processed", - "failed", - "skipped_no_account", - "skipped_expired" - ], - "name": "googleAdsEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "processing", - "timeout" - ], - "name": "googleAdsFailureStage", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "success", - "partial_success", - "failed", - "unknown", - "timed_out" - ], - "name": "googleAdsProcessingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "storyReply", - "storyMention" - ], - "name": "igStoryAutomationTrigger", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "instagram", - "instagramFacebook" - ], - "name": "igStoryAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "csv", - "xlsx", - "xls", - "json" - ], - "name": "importFormat", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "importStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "coupons", - "products", - "flow" - ], - "name": "importType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "received", - "processing", - "processed", - "completedWithErrors", - "skipped", - "failed" - ], - "name": "inboundWebhookRequestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "oauth", - "fbe" - ], - "name": "metaCatalogAuthMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "invalid" - ], - "name": "metaCatalogConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "idle", - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogImportStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallRecordingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallTranscriptionMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending_verification", - "registered", - "failed" - ], - "name": "whatsappRegistrationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "whatsapp", - "zalo", - "telegram", - "tiktok", - "threads", - "email", - "gamification" - ], - "name": "leaderboardPlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "active", - "paused", - "finished" - ], - "name": "leaderboardStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "adjust", - "resetOne", - "resetAll", - "ban", - "unban" - ], - "name": "leaderboardAuditAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rule", - "flow", - "referral", - "manual", - "reset" - ], - "name": "leaderboardScoreSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink" - ], - "name": "contentType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message", - "comment" - ], - "name": "messageKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "incoming", - "outgoing", - "activity" - ], - "name": "messageType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "contact", - "system", - "user", - "api" - ], - "name": "senderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "MessageCleanupStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "messagingAdChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "campaignCreated", - "adSetCreated", - "creativeCreated", - "adCreated", - "failed" - ], - "name": "messagingAdCreateState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "publishing", - "published", - "pausing", - "paused", - "deleting", - "deleted", - "publishFailed" - ], - "name": "messagingAdPublishState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "push", - "import" - ], - "name": "metaCatalogItemDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "all", - "category", - "selected" - ], - "name": "metaCatalogSyncScope", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "web" - ], - "name": "miniAppSubmissionSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "submitted" - ], - "name": "miniAppUploadStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "luckyWheel", - "jackpot", - "gashapon", - "drawLots", - "scratchOff" - ], - "name": "minigameType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "user", - "apiToken", - "system", - "contact" - ], - "name": "orderActorType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "webshop", - "api", - "manual" - ], - "name": "orderSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "accepted", - "shipped", - "concluded", - "cancelled" - ], - "name": "orderStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "cod" - ], - "name": "paymentMethod", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "unpaid", - "paid", - "refunded" - ], - "name": "paymentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "pickup" - ], - "name": "shippingType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "dont_track", - "track" - ], - "name": "inventoryPolicy", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "number", - "email", - "phone", - "multipleChoice", - "date", - "datetime", - "image", - "file", - "location", - "websiteLink" - ], - "name": "questionnaireQuestionType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inProgress", - "completed", - "cancelled", - "failed", - "timeout" - ], - "name": "questionnaireSubmissionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "refLink", - "qrCode" - ], - "name": "ReflinkType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "me" - ], - "name": "SystemFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "creator", - "administrator", - "member", - "restricted", - "left", - "kicked" - ], - "name": "telegramBotChatStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "private", - "group", - "supergroup", - "channel" - ], - "name": "telegramChatType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "installing", - "completed", - "partial", - "failed" - ], - "name": "templateInstallationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flows", - "products", - "aiFunctions", - "aiAgents", - "calendars", - "webchats", - "keywords", - "entryPointLinks", - "triggers", - "fbCommentAutomations", - "settings", - "customFields", - "tags", - "productCategories" - ], - "name": "templateResourceCategory", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ios", - "android" - ], - "name": "devicePlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "userInitiated", - "businessInitiated" - ], - "name": "whatsappCallDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "completed", - "failed", - "rejected", - "canceled" - ], - "name": "whatsappCallOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ringing", - "accepted", - "rejected", - "completed", - "failed" - ], - "name": "whatsappCallStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "accept", - "reject" - ], - "name": "whatsappCallPermissionResponse", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "allTime", - "oncePerHour", - "oncePerDay" - ], - "name": "defaultReplyFrequency", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "full", - "read_only" - ], - "name": "WorkspaceApiTokenPermission", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owner", - "agent" - ], - "name": "workspaceMemberRole", - "entityType": "enums", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageShard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ShardTimeRange", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionRule", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIAgent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationSource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFunction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverBulkRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIMCPServer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsAgentResponseEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBotMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBroadcastEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsContactEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsConversationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsFlowNodeEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsSequenceEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsEmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsManifestStatus", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Appointment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarAvailability", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarReminder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentReminderDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Attachment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Jwk", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "User", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomatedResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomationThrottle", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BotField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Broadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrenceOccurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastTarget", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Cart", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ChannelPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CoexistSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationMiss", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConnectSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Connection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Contact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveHourly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveMonthly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactCustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInboxPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactNote", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnBroadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSmartDelay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Conversation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConversationParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Coupon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CouponTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionProfile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCode", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DynamicImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOpenHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOrderCounter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomDomain", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "License", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformAdmin", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tenant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TenantHelpItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserQuota", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceUsage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ErrorLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ExternalWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsLead", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessagesAuth", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "File", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Flow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowAnalyticsSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowNodeStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowVersion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Folder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IgStoryAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Import", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhookRequest", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Inbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxContactStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeam", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeamMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationActiveCampaign", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationApi", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Integration", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationClaude", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDeepseek", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDrip", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationFacebookAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGemini", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGetResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleSheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationInstagram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationKlaviyo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailchimp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailerLite", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMessenger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMetaCatalog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMoosend", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenai", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenaiCompatible", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenrouter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOutlookCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSendGrid", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSmtp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTelegram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationThreads", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTiktok", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWebchat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWhatsapp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationZalo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Leaderboard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardAuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardScoreEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFolder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Message", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageCleanup", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdOperation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdsConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerWelcomeMessageFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCapiEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniApp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppPublication", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppUpload", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Minigame", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigameContact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigamePlay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCodeRedemption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Order", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderStatusHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformCredential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Product", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductAddon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductCategory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariantOption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireAnswer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Questionnaire", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireQuestion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "RefLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Reflink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ResponseSlaPolicy", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReplyImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Sequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceStep", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Spreadsheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SystemField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TelegramChat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Template", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstallation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstalledResource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Condition", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerContactHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserDeviceToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserPersistentMenu", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Vendor", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Webhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WebhookExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappBusinessAccount", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCall", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCallPermission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCoexistStaging", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappSignupSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursDateOverride", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursInterval", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Workspace", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceApiToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMac", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMember", - "entityType": "tables", - "schema": "public" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "host", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "5432", - "generated": null, - "identity": null, - "name": "port", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "database", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credentialRef", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'disable'", - "generated": null, - "identity": null, - "name": "sslMode", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isMain", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardKey", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readHost", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readPort", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardId", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'whatsapp'", - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ctwaClid", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contents", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceEventId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionCapiStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationFacebookAdsId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "markAs", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionPrompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "actionRules", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isRichResponse", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "tools", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "webSearchAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "models", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkIndex", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "aiConversationEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attachmentId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentHash", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "summary", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "aiEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiFileId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dataCollect", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outputMessage", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedUntil", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkSeq", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursorContactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightFromId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightToId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "scheduleEnabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timeRanges", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gotoFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "pauseBotWaitingForStaff", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "applyToAllCustomers", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "applyToAllRevision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllRequestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "availableTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "selectedTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingSince", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "measuredFrom", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingResponseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isFirstResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaMet", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResponseType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotRouteType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "routeType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResult", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "result", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiProvider", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "analyticsBroadcastEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "batchId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "analyticsConversationEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsMessageEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "objectKey", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "analyticsStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "timestamp", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ingestedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviteeTimezone", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'scheduled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentLocationTypeSnapshot", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventIntegrationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventProviderCalendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentExternalSyncStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalSyncStatus", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "30", - "generated": null, - "identity": null, - "name": "durationMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "bufferAfterMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentLocationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentScheduleWindowType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'rollingDays'", - "generated": null, - "identity": null, - "name": "scheduleWindowType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "scheduleWindowConfig", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxAppointmentsPerUser", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "dailyLimitEnabled", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerDay", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowGroupMeeting", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerSlot", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationMessage", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalConnectionId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventTitleTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventDescriptionTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventAttendeesTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicLinkSlug", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingValue", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "appointmentReminderTimingUnit", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingUnit", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reminderConfigId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "appointmentReminderDispatchStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "jobId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedReason", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageCreatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "fileType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "width", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "height", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnailPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "keepOriginal", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "invitedBy", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "privateKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAnonymous", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "mustChangePassword", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "keywords", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "automatedResponseType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inbound'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "automationThrottleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "throttleType", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subjectId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'channel'", - "generated": null, - "identity": null, - "name": "targetMode", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastScheduleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesType", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactFilter", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subaction", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoffCompletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resumeCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeStart", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeEnd", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendRatePerMinute", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountedThroughAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "occurrenceCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOccurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recurrenceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "localSlot", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceOutcome", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceReason", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "childBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "materializedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "supersededCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "items", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedNotifiedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceAccountId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalPostId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "caption", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaType", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnail", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permalink", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataFetchedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataAttemptedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'coexist'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'init'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerSource", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentPageNumber", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedContactCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedMessageCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastChunkOrder", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "syncProgress", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistMessengerSyncPhase", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contacts'", - "generated": null, - "identity": null, - "name": "messengerSyncPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pendingPatches", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scanFromAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resumeCursor", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'messenger'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sentCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "missedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "post", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"text\",\"value\":\"\"}'", - "generated": null, - "identity": null, - "name": "privateReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "publicReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "excludeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentExcludeKeywordsType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contain'", - "generated": null, - "identity": null, - "name": "excludeKeywordsType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", - "generated": null, - "identity": null, - "name": "hideComments", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"immediately\",\"value\":0}'", - "generated": null, - "identity": null, - "name": "replyAfter", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyChannel", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorDetail", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "commentAutomationMissReason", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetConnectionId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorTokenId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platformOwnerId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originHost", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnUrl", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stateNonceHash", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'authorize'", - "generated": null, - "identity": null, - "name": "step", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextAction", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "targetClaims", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "resultConnectionIds", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "results", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "kind", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "displayName", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "statusReason", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "avatar", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumber", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "emailOptIn", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", - "type": "stored" - }, - "identity": null, - "name": "fullName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "gender", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gender", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "city", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "location", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locale", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastSubscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "blockedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalNewTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hourBucket", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceMacId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originalContactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followsBusiness", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessFollowsContact", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountVerified", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followerCount", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "contactInboxProfileSnapshotState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotAttempts", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotNextAttemptAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstInteractionAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastIncomingMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOutboundMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referral", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "consecutiveFailedReply", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastInputFailure", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastErrorLog", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastBtnTitle", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInput", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "lastUserInputType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInputType", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webchatParentUrl", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceParentUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUsername", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceIdentityHistory", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerRole", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlEvent", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlLastEvent", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadPreviousOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "sent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "enrolledAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagChannelId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "botEnabled", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botResumeAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "archivedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "additionalAttributes", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "agentLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiContextLastMessageId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followed", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedInboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplySince", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplyClosedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseDueAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaBreachingAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedContactId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "couponTopicStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasEverHadCoupon", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "showInInbox", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionProviderKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerKind", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endpoint", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "modelCatalog", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionTestStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestStatus", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "DecisionProfileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectionId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contract", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thresholdConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "globalRouterEnabled", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "globalRouterConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoApply", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountAppliesTo", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'entireOrder'", - "generated": null, - "identity": null, - "name": "appliesTo", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productIds", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountMinimumType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'none'", - "generated": null, - "identity": null, - "name": "minimumType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usageLimit", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "usedCount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "oncePerCustomer", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountEligibility", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'everyone'", - "generated": null, - "identity": null, - "name": "eligibility", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerFilter", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "data", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "backgroundUrl", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "lastNumber", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderingAvailable", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "webshopProductView", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webshopProductView", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "searchProducts", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookPixelId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartDelayMinutes", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productButtons", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "productImageSize", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productImageSize", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "allowRateOrders", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "notifyOnCartStatusChange", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "paymentMethods", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "currencyPosition", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyPosition", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencySymbol", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeePercent", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "shippingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingCountries", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultShippingCountry", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveryCost", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "checkoutMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutLink", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "orderConfirmationMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'default'", - "generated": null, - "identity": null, - "name": "orderConfirmationMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderConfirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireName", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireEmail", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requirePhone", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireState", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireZip", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sendsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seensTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clicksTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "domain", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfHostnameId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfOwnershipValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfAcmeValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "licenseId", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'super-admin'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disabledReason", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandName", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoLightPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoDarkPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "faviconPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customJs", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "theme", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storageUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "policyUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "termsOfServiceUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "signupEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "forgotPasswordEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "magicLinkEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountCredentialsEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hiddenChannels", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "icon", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspacesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "workspacesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "teamMembersLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "macLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "monthlyBotMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesPeriodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesTopUpGranted", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "whiteLabel", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "ssoSaml", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "saasMode", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planName", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planStatus", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selectedTrialPlanId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsTornDownAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stackTrace", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'make'", - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "fieldMapping", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "leadsHandledCount", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leadgenId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyOffset", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetType", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetMinorUnits", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "campaignId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileContextType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contextType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileSize", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableInInbox", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "draftVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "nodes", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "edges", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isDraft", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isLatest", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startNodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "folderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderType", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isTrash", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "paths", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationGoogleAdsId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionName", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionCategory", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lookbackWindowDays", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsClickIdType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickIdType", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "googleClickReceivedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transactionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadMethod", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsFailureStage", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failureStage", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsProcessingStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingStatus", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingAttempts", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextProcessingCheckAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingDetail", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "settings", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationTrigger", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'storyReply'", - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "story", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "reply", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importFormat", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "format", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "errorSample", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxResolution", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifiers", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldMappings", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sampleJson", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "requestCount", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboundWebhookId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clientIp", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "inboundWebhookRequestStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skipReason", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldErrors", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionResults", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "markReadOnOutbound", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectReason", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlSeenAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callbackUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationType", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "descriptiveName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedCustomerDataTerms", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActions", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionsSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupErrorAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "igId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'instagram'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "personas", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogAuthMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'oauth'", - "generated": null, - "identity": null, - "name": "authMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogImportStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'idle'", - "generated": null, - "identity": null, - "name": "importStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importTotalCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importFailedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "importError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastImportedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'VND'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReplyVoice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "voice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiAgentId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "baseURL", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "preset", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAddress", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadsUserId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enable", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "authorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideHeader", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "showLogo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideMessageInput", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "displayPhoneNumber", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "inboundCallsEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callHours", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callRecordingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "90", - "generated": null, - "identity": null, - "name": "callRecordingRetentionDays", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callTranscriptionEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallRecordingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callRecordingMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallTranscriptionMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callTranscriptionMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callAnnouncementLanguage", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callRecordingPurpose", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isCoexist", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "platformType", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "historyDeclined", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappRegistrationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending_verification'", - "generated": null, - "identity": null, - "name": "registrationStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "registrationError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verificationCodeRequestedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "oaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fallbackFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "coverImageUrl", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardPlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rules", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followersOnly", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagIds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'22:00'", - "generated": null, - "identity": null, - "name": "resetTime", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "cooldownSeconds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referralWelcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardSettings", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardsTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardRecipients", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "leaderboardAuditAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "score", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isBanned", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "scoredAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "date", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyBucket", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyCounts", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "breakdown", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "leaderboardScoreSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceRef", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isFavourite", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAccessedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentAttributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "contentType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "senderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'message'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendError", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationIds", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sinceTime", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "MessageCleanupStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdCreateState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "createState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdPublishState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "publishState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaCampaignId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdSetId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdCreativeId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "input", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cleanupError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'POSITIONAL'", - "generated": null, - "identity": null, - "name": "parameterFormat", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaFlowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'current'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentCategory", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'business_messaging'", - "generated": null, - "identity": null, - "name": "actionSource", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiError", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedFingerprint", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncScope", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'all'", - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "selectedProductIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "handles", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionLeaseId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "succeededCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "itemErrors", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "skippedItems", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "pollAttempt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "definition", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowJson", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "submissionsCount", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "whatsappFlowId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "miniAppSubmissionSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answers", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inputName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadToken", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "miniAppUploadStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "minigameType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "generalSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appearance", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "playerSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "winningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nonWinningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "playsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "participantsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "winnersCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "played", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "remaining", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isWinning", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeName", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantLabel", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorName", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "unitPrice", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "quantity", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "stockTaken", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "number", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentMethod", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'cod'", - "generated": null, - "identity": null, - "name": "paymentMethod", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'unpaid'", - "generated": null, - "identity": null, - "name": "paymentStatus", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subtotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeeTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "couponDiscount", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "total", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerName", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerEmail", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerPhone", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "shippingType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingAddress", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rating", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ratingComment", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "concludedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelReason", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderActorType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorType", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicConfig", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "livemode", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "usePlatformCredential", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isVerified", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUsedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "longDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "taxes", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "discount", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'USD'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productUrl", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "inventoryPolicy", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'dont_track'", - "generated": null, - "identity": null, - "name": "inventoryPolicy", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "inventoryQuantity", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowOutOfStockPurchase", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "images", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "tags", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isSearchable", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowSpecialRequest", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAddonOnly", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "maxSelections", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "addonProductIds", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isVisible", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isEnabled", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "values", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionIdSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTitleSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTypeSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "labelSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pointsEarned", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "attemptCount", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "answeredAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableScore", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableRetryMessages", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableCustomFieldMapping", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "questionnaireQuestionType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "orderNo", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "point", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retryMessage", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "systemFieldKey", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "questionnaireSubmissionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inProgress'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalPoints", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionSentAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAnsweredMessageId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "ReflinkType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'refLink'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "qrStyles", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetHiddenInboxIds", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoFileId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandName", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandUrl", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoBackgroundColor", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "25", - "generated": null, - "identity": null, - "name": "breachingThresholdPercent", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortcut", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "savedReplyId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaLibraryFileId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "subscribers", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runAtMs", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "bucket", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "enrollmentId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "order", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delayMinutes", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayUnit", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "specificDateTime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "anytime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeStart", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeEnd", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", - "generated": null, - "identity": null, - "name": "sendDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "spreadsheetId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "SystemFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelType", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalLabelId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chatId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramChatType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramBotChatStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botStatus", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publisherName", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "youtubeVideoId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "testLink", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryCounts", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareToken", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "shareEnabled", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultPermissions", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "createInstallFolder", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "defaultAutoUpdate", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "installCount", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateName", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceWorkspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "templateInstallationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "warnings", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "warningCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resourceCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installFolderId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoUpdate", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installedBy", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installationId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "templateResourceCategory", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceKind", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceResourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "wasExisting", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "varchar(255)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operator", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstEnteredAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failureCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalExecutions", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "devicePlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "menus", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phone", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "grantedScopes", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provisionedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "creditLineId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wacid", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attemptId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'ringing'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallOutcome", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "durationSeconds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answeredByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "initiatedByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingRequested", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingFailureReason", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingPath", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcript", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcribedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcriptSegments", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummary", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummarizedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummaryProvider", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "whatsappCallPermissionResponse", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "response", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isPermanent", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "respondedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payloadHash", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parseFailedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "categories", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "completedCount", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "screens", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAccessToken", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "apiVersion", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "candidatePhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "claimedPhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "date", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultReply", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "defaultReplyFrequency", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'allTime'", - "generated": null, - "identity": null, - "name": "defaultReplyFrequency", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetCountry", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'en'", - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'UTC'", - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'#016DFF'", - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "developmentMode", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "smartResponseDelaySeconds", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scheduledDeletionAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purgeStartedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "supportAccessUntil", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "capiLimitedDataUse", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "WorkspaceApiTokenPermission", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permission", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedToken", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "scopes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macCount", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "workspaceMemberRole", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationChannels", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationTypes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "onlineSince", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isActive", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_isActive_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_shardKey_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "startTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "endTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_time_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_shardId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'whatsapp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'messenger'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'instagram'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "enabled", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionRule_workspaceId_channel_enabled_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIAgent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIAgent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chunkIndex", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_chunkIndex_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "embedding", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "vector_cosine_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "hnsw", - "concurrently": false, - "name": "AIConversationEmbedding_embedding_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_messageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIEmbedding_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "aiFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIEmbedding_aiFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_live_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "revision", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_revision_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"createdAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_live_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "requestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_requestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "applyToAllRequestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "gotoFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_gotoFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "aiProvider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "hasResponse", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "result", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "toAssignee", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "senderType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_token_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"conversationId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactInboxId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "objectKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsManifestStatus_objectKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_calendarId_status_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_contactId_calendarId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "publicLinkSlug", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_publicLinkSlug_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarAvailability_calendarId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingValue", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingUnit", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarReminder_dedupe_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "jobId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_jobId_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sendAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_status_sendAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "messageCreatedAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_message_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "providerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "accountId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Account_providerId_accountId_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Invitation_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Session_token_key", - "entityType": "indexes", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_email_tenant_key", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomatedResponse_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastTriggeredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_lastTriggeredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BotField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "schedulesAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_schedulesAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"deletedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_parentBroadcastId_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_broadcastId_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"nextRunAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "localSlot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "childBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_workspaceId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastActivityAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"abandonedNotifiedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_abandoned_scan_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalPostId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_channel_externalPostId_key", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_sortAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"startedAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('succeeded', 'partial')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_resume_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status = 'init' AND type = 'coexist'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_init_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "type = 'contact_scan' AND status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_active_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "type = 'contact_scan'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "replyChannel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_private_unseen_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'failed'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_failed_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "consumedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"consumedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_consumedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stateNonceHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_stateNonceHash_key", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_workspaceId_provider_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_provider_sourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastSubscribedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_broadcast_subscribed_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_created_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_email", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_phone_number", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_full_name_md5", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "firstName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_firstName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_lastName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_email_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_phoneNumber_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_contactId_customFieldId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_customFieldId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceParentUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceParentUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceParentUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "profileSnapshotNextAttemptAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"profileSnapshotState\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_profileSnapshot_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_ai_held_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastIncomingMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastOutboundMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'ctwaClid')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'ctwaClid' IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_ctwaClid_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'adId')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_adId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInboxPost_workspaceId_postId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactNote_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_contact_id", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isRead", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_is_read", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"sent\" = false AND \"failedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_unsent_order_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_status_triggerAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_followUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTag_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_dm_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "responseDueAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"responseDueAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_responseDueAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "aiContextLastMessageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_aiContextLastMessageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastActivityAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_lastActivityAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"issuedContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_status_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "connectionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_connectionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"globalRouterEnabled\" = true", - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_globalRouter_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"code\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DynamicImage_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceOpenHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "abandonedCartFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_abandonedCartFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "checkoutFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_checkoutFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderConfirmationFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_orderConfirmationFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_userId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_tenantId_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "domain", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_domain_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "licenseId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "License_licenseId_key", - "entityType": "indexes", - "schema": "public", - "table": "License" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformAdmin_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "ownerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tenant_ownerId_key", - "entityType": "indexes", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "position", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TenantHelpItem_tenantId_position_idx", - "entityType": "indexes", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelsTornDownAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_channelsTornDownAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_due_expired_trial_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_idx", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "url", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_url_key", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "formId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_automationId_leadgenId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_leadgenId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "campaignId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_campaignId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessagesAuth_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_path_key", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contextType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_contextType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "subType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_subType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Flow_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_workspaceId_flowId_key", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_1_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_2_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowVersionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_flowVersionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowVersion_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowVersion_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "transactionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextProcessingCheckAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_claimedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_inboxId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_fileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_products_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_token_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"idempotencyKey\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'received'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_received_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'processing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_claimedAt_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_channel_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboxTeam_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboxTeam" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tokenHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_tokenHash_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_integrationType_key", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleSheet_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "igId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_igId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_pageId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "preset", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"preset\" <> 'custom'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOutlookCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "botId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_botId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "threadsUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_threadsUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_openId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_phoneNumberId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fallbackFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_fallbackFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "oaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_oaId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardAuditLog_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "score", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "scoredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "NOT \"isBanned\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_ranking_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referrerContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFolder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversation_history_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_workspace_created_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_contactInboxId_sourceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversationId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parentId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_status_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationWhatsappId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationInstagramId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationMessengerId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationInstagramId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'current'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_current_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_channel_integrationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "retailerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_retailer_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_product_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" IN ('queued', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_miniAppId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "uploadToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_uploadToken_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_path_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "inputName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_miniAppId_inputName_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_submissionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referrerContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactInboxId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_minigameId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_orderId_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_orderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_variantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "number", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_number_key", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_discountCodeId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_orderId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "actorUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_actorUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_user_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_platform_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductAddon_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariant_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariantOption_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "questionIdSnapshot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_questionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "orderNo", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_customFieldId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"conversationId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'inProgress'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Reflink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReply_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_mediaLibraryFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_bucket_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "enrollmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_enrollmentId_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspace_sequence_step_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_bucket_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updatedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" in ('completed', 'failed', 'canceled')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_terminal_updatedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_tag_integration_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalLabelId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_external_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_workspace_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chatId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_inboxId_chatId_key", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shareToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_shareToken_key", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "templateId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_templateId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_installationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceKind", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_source_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_key", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserDeviceToken_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserPersistentMenu_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_webhookId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "wabaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "wacid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"wacid\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_wacid_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "attemptId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"attemptId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_attemptId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_ringing_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_resumableRinging_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "recordedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"recordingPath\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_recording_inboxId_recordedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_pendingOutbound_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phoneNumberId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "payloadHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phone_hash_uq", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"processedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_processedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parseFailedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parseFailedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_parseFailedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspace_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_schedule_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursInterval_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursMember_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "scheduledDeletionAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_scheduledDeletionAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "supportAccessUntil", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_supportAccessUntil_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"isDefault\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_default_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceMember_workspaceId_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "shardId" - ], - "schemaTo": "public", - "tableTo": "MessageShard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ShardTimeRange_shardId_MessageShard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_k99JXbMObQIn_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationFacebookAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationFacebookAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_3zzAptVRRuZD_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_HUibBtSUZbML_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIAgent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIAgent" - }, - { - "nameExplicit": false, - "columns": [ - "sourceId" - ], - "schemaTo": "public", - "tableTo": "AIConversationSource", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "aiFileId" - ], - "schemaTo": "public", - "tableTo": "AIFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_aiFileId_AIFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFile" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIFunction_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFunction_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "gotoFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "applyToAllRequestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIMCPServer_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIMCPServer" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "EmailTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "confirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "cancellationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "externalConnectionId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "reminderConfigId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendarReminder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Account_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Account_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "invitedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_invitedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Session_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "User_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BotField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BotField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "parentBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "recurrenceId" - ], - "schemaTo": "public", - "tableTo": "BroadcastRecurrence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "childBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastTarget_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Cart_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "targetConnectionId" - ], - "schemaTo": "public", - "tableTo": "Connection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_targetConnectionId_Connection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorTokenId" - ], - "schemaTo": "public", - "tableTo": "WorkspaceApiToken", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Connection_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Contact_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagChannelId" - ], - "schemaTo": "public", - "tableTo": "TagChannel", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "assignedUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "assignedInboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "CouponTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_topicId_CouponTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "issuedContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Coupon_issuedContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CouponTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CouponTopic_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CustomField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionProfile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "connectionId" - ], - "schemaTo": "public", - "tableTo": "DecisionConnection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCode_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCode_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DynamicImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DynamicImage_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "abandonedCartFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "checkoutFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "orderConfirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EmailTopic_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AuditLog_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AuditLog_userId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomDomain_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "PlatformAdmin_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Tenant_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TenantHelpItem_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "UserQuota_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ErrorLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ErrorLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "FacebookLeadAdsAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "File_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "File_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Flow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Flow_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowVersionId" - ], - "schemaTo": "public", - "tableTo": "FlowVersion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Folder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationGoogleAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationGoogleAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IgStoryAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Import_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "fileId" - ], - "schemaTo": "public", - "tableTo": "File", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Import_fileId_File_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboundWebhookId" - ], - "schemaTo": "public", - "tableTo": "InboundWebhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Inbox_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxContactStat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxContactStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeam_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeam" - }, - { - "nameExplicit": false, - "columns": [ - "inboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Integration_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_inboxId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationInstagram_welcomeFlowId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "aiAgentId" - ], - "schemaTo": "public", - "tableTo": "AIAgent", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "fallbackFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Leaderboard_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "referralWelcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "MagicLink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_linkId_MagicLink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFolder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_LwL2ykeZegup_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MessagingAdOperation_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_wJXyKUssR08y_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniApp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "whatsappFlowId" - ], - "schemaTo": "public", - "tableTo": "WhatsappFlow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "MiniAppSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Minigame_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "variantId" - ], - "schemaTo": "public", - "tableTo": "ProductVariant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_variantId_ProductVariant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Order_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderStatusHistory_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Credential_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Product_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductAddon_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "parentId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_parentId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariant_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariantOption_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "questionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Questionnaire_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Questionnaire_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "currentQuestionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "Reflink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_linkId_Reflink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "widgetLogoFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReply" - }, - { - "nameExplicit": false, - "columns": [ - "savedReplyId" - ], - "schemaTo": "public", - "tableTo": "SavedReply", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "mediaLibraryFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Sequence_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Sequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "stepId" - ], - "schemaTo": "public", - "tableTo": "SequenceStep", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - "enrollmentId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "ContactOnSequence", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_enrollment_workspace_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "SequenceStep_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceStep_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Spreadsheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Tag_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Tag_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Template_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Template_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Template_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "templateId" - ], - "schemaTo": "public", - "tableTo": "Template", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_templateId_Template_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installFolderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installFolderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installationId" - ], - "schemaTo": "public", - "tableTo": "TemplateInstallation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Trigger_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Trigger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Vendor_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Webhook_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Webhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": false, - "columns": [ - "answeredByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_answeredByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "initiatedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_initiatedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": false, - "columns": [ - "workingHoursId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsAgentResponseEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsBotMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "columns": [ - "broadcastId", - "contactInboxId", - "batchId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsBroadcastEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsContactEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsConversationEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "columns": [ - "flowId", - "analyticsId", - "nodeId", - "buttonId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsFlowNodeEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "columns": [ - "sequenceId", - "stepId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsSequenceEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Attachment_pkey", - "entityType": "pks", - "schema": "public", - "table": "Attachment" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "throttleType", - "subjectId" - ], - "nameExplicit": true, - "name": "AutomationThrottle_pkey", - "entityType": "pks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "columns": [ - "broadcastId", - "inboxId" - ], - "nameExplicit": true, - "name": "BroadcastTarget_pkey", - "entityType": "pks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "columns": [ - "workspaceId", - "hourBucket", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveHourly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "columns": [ - "workspaceId", - "periodStart", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveMonthly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "postId" - ], - "nameExplicit": true, - "name": "ContactInboxPost_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "columns": [ - "broadcastId", - "contactId" - ], - "nameExplicit": true, - "name": "ContactsOnBroadcast_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "ContactOnSequence_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "columns": [ - "contactId", - "tagId" - ], - "nameExplicit": false, - "name": "ContactToTag_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTag" - }, - { - "columns": [ - "tagChannelId", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactToTagChannel_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "columns": [ - "leaderboardId", - "contactId" - ], - "nameExplicit": false, - "name": "LeaderboardParticipant_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "columns": [ - "createdAt", - "id" - ], - "nameExplicit": false, - "name": "LeaderboardScoreEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Message_pkey", - "entityType": "pks", - "schema": "public", - "table": "Message" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "SequenceDispatch_pkey", - "entityType": "pks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "columns": [ - "id", - "contactId" - ], - "nameExplicit": true, - "name": "TriggerContactHistory_pkey", - "entityType": "pks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageShard_pkey", - "schema": "public", - "table": "MessageShard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ShardTimeRange_pkey", - "schema": "public", - "table": "ShardTimeRange", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionEvent_pkey", - "schema": "public", - "table": "AdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionRule_pkey", - "schema": "public", - "table": "AdsConversionRule", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIAgent_pkey", - "schema": "public", - "table": "AIAgent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationEmbedding_pkey", - "schema": "public", - "table": "AIConversationEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationSource_pkey", - "schema": "public", - "table": "AIConversationSource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIEmbedding_pkey", - "schema": "public", - "table": "AIEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFile_pkey", - "schema": "public", - "table": "AIFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFunction_pkey", - "schema": "public", - "table": "AIFunction", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverBulkRun_pkey", - "schema": "public", - "table": "AIHandoverBulkRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverSettings_pkey", - "schema": "public", - "table": "AIHandoverSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIMCPServer_pkey", - "schema": "public", - "table": "AIMCPServer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AnalyticsEmailTopic_pkey", - "schema": "public", - "table": "AnalyticsEmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Appointment_pkey", - "schema": "public", - "table": "Appointment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendar_pkey", - "schema": "public", - "table": "AppointmentCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarAvailability_pkey", - "schema": "public", - "table": "AppointmentCalendarAvailability", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarReminder_pkey", - "schema": "public", - "table": "AppointmentCalendarReminder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentReminderDispatch_pkey", - "schema": "public", - "table": "AppointmentReminderDispatch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Account_pkey", - "schema": "public", - "table": "Account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Invitation_pkey", - "schema": "public", - "table": "Invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Jwk_pkey", - "schema": "public", - "table": "Jwk", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Session_pkey", - "schema": "public", - "table": "Session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "User_pkey", - "schema": "public", - "table": "User", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Verification_pkey", - "schema": "public", - "table": "Verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AutomatedResponse_pkey", - "schema": "public", - "table": "AutomatedResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BotField_pkey", - "schema": "public", - "table": "BotField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Broadcast_pkey", - "schema": "public", - "table": "Broadcast", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrenceOccurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Cart_pkey", - "schema": "public", - "table": "Cart", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ChannelPost_pkey", - "schema": "public", - "table": "ChannelPost", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CoexistSyncRun_pkey", - "schema": "public", - "table": "CoexistSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomation_pkey", - "schema": "public", - "table": "CommentAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationEvent_pkey", - "schema": "public", - "table": "CommentAutomationEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationMiss_pkey", - "schema": "public", - "table": "CommentAutomationMiss", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationReply_pkey", - "schema": "public", - "table": "CommentAutomationReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConnectSession_pkey", - "schema": "public", - "table": "ConnectSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Connection_pkey", - "schema": "public", - "table": "Connection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Contact_pkey", - "schema": "public", - "table": "Contact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactCustomField_pkey", - "schema": "public", - "table": "ContactCustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactInbox_pkey", - "schema": "public", - "table": "ContactInbox", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactNote_pkey", - "schema": "public", - "table": "ContactNote", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactOnSmartDelay_pkey", - "schema": "public", - "table": "ContactOnSmartDelay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Conversation_pkey", - "schema": "public", - "table": "Conversation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConversationParticipant_pkey", - "schema": "public", - "table": "ConversationParticipant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Coupon_pkey", - "schema": "public", - "table": "Coupon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CouponTopic_pkey", - "schema": "public", - "table": "CouponTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomField_pkey", - "schema": "public", - "table": "CustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionConnection_pkey", - "schema": "public", - "table": "DecisionConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionProfile_pkey", - "schema": "public", - "table": "DecisionProfile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCode_pkey", - "schema": "public", - "table": "DiscountCode", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DynamicImage_pkey", - "schema": "public", - "table": "DynamicImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceOpenHours_pkey", - "schema": "public", - "table": "EcommerceOpenHours", - "entityType": "pks" - }, - { - "columns": [ - "workspaceId" - ], - "nameExplicit": false, - "name": "EcommerceOrderCounter_pkey", - "schema": "public", - "table": "EcommerceOrderCounter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceSettings_pkey", - "schema": "public", - "table": "EcommerceSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EmailTopic_pkey", - "schema": "public", - "table": "EmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AuditLog_pkey", - "schema": "public", - "table": "AuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomDomain_pkey", - "schema": "public", - "table": "CustomDomain", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "License_pkey", - "schema": "public", - "table": "License", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "PlatformAdmin_pkey", - "schema": "public", - "table": "PlatformAdmin", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tenant_pkey", - "schema": "public", - "table": "Tenant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TenantHelpItem_pkey", - "schema": "public", - "table": "TenantHelpItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserQuota_pkey", - "schema": "public", - "table": "UserQuota", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceUsage_pkey", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ErrorLog_pkey", - "schema": "public", - "table": "ErrorLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ExternalWebhook_pkey", - "schema": "public", - "table": "ExternalWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsAutomation_pkey", - "schema": "public", - "table": "FacebookLeadAdsAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsLead_pkey", - "schema": "public", - "table": "FacebookLeadAdsLead", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessage_pkey", - "schema": "public", - "table": "FacebookMarketingMessage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessagesAuth_pkey", - "schema": "public", - "table": "FacebookMarketingMessagesAuth", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "File_pkey", - "schema": "public", - "table": "File", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Flow_pkey", - "schema": "public", - "table": "Flow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowAnalyticsSession_pkey", - "schema": "public", - "table": "FlowAnalyticsSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowNodeStat_pkey", - "schema": "public", - "table": "FlowNodeStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowRun_pkey", - "schema": "public", - "table": "FlowRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowVersion_pkey", - "schema": "public", - "table": "FlowVersion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Folder_pkey", - "schema": "public", - "table": "Folder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsConversionEvent_pkey", - "schema": "public", - "table": "GoogleAdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsSettings_pkey", - "schema": "public", - "table": "GoogleAdsSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IgStoryAutomation_pkey", - "schema": "public", - "table": "IgStoryAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Import_pkey", - "schema": "public", - "table": "Import", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhook_pkey", - "schema": "public", - "table": "InboundWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhookRequest_pkey", - "schema": "public", - "table": "InboundWebhookRequest", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Inbox_pkey", - "schema": "public", - "table": "Inbox", - "entityType": "pks" - }, - { - "columns": [ - "inboxId" - ], - "nameExplicit": false, - "name": "InboxContactStat_pkey", - "schema": "public", - "table": "InboxContactStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeam_pkey", - "schema": "public", - "table": "InboxTeam", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeamMember_pkey", - "schema": "public", - "table": "InboxTeamMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationActiveCampaign_pkey", - "schema": "public", - "table": "IntegrationActiveCampaign", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationApi_pkey", - "schema": "public", - "table": "IntegrationApi", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Integration_pkey", - "schema": "public", - "table": "Integration", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationClaude_pkey", - "schema": "public", - "table": "IntegrationClaude", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDeepseek_pkey", - "schema": "public", - "table": "IntegrationDeepseek", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDrip_pkey", - "schema": "public", - "table": "IntegrationDrip", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationFacebookAds_pkey", - "schema": "public", - "table": "IntegrationFacebookAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGemini_pkey", - "schema": "public", - "table": "IntegrationGemini", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGetResponse_pkey", - "schema": "public", - "table": "IntegrationGetResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleAds_pkey", - "schema": "public", - "table": "IntegrationGoogleAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleCalendar_pkey", - "schema": "public", - "table": "IntegrationGoogleCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleSheet_pkey", - "schema": "public", - "table": "IntegrationGoogleSheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationInstagram_pkey", - "schema": "public", - "table": "IntegrationInstagram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationKlaviyo_pkey", - "schema": "public", - "table": "IntegrationKlaviyo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailchimp_pkey", - "schema": "public", - "table": "IntegrationMailchimp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailerLite_pkey", - "schema": "public", - "table": "IntegrationMailerLite", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMessenger_pkey", - "schema": "public", - "table": "IntegrationMessenger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMetaCatalog_pkey", - "schema": "public", - "table": "IntegrationMetaCatalog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMoosend_pkey", - "schema": "public", - "table": "IntegrationMoosend", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenai_pkey", - "schema": "public", - "table": "IntegrationOpenai", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenaiCompatible_pkey", - "schema": "public", - "table": "IntegrationOpenaiCompatible", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenrouter_pkey", - "schema": "public", - "table": "IntegrationOpenrouter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOutlookCalendar_pkey", - "schema": "public", - "table": "IntegrationOutlookCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSendGrid_pkey", - "schema": "public", - "table": "IntegrationSendGrid", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSmtp_pkey", - "schema": "public", - "table": "IntegrationSmtp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTelegram_pkey", - "schema": "public", - "table": "IntegrationTelegram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationThreads_pkey", - "schema": "public", - "table": "IntegrationThreads", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTiktok_pkey", - "schema": "public", - "table": "IntegrationTiktok", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWebchat_pkey", - "schema": "public", - "table": "IntegrationWebchat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWhatsapp_pkey", - "schema": "public", - "table": "IntegrationWhatsapp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationZalo_pkey", - "schema": "public", - "table": "IntegrationZalo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Leaderboard_pkey", - "schema": "public", - "table": "Leaderboard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "LeaderboardAuditLog_pkey", - "schema": "public", - "table": "LeaderboardAuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MagicLink_pkey", - "schema": "public", - "table": "MagicLink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFile_pkey", - "schema": "public", - "table": "MediaLibraryFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFolder_pkey", - "schema": "public", - "table": "MediaLibraryFolder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageCleanup_pkey", - "schema": "public", - "table": "MessageCleanup", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdOperation_pkey", - "schema": "public", - "table": "MessagingAdOperation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdsConnection_pkey", - "schema": "public", - "table": "MessagingAdsConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerMessageTemplate_pkey", - "schema": "public", - "table": "MessengerMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerWelcomeMessageFlow_pkey", - "schema": "public", - "table": "MessengerWelcomeMessageFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCapiEvent_pkey", - "schema": "public", - "table": "MetaCapiEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogItem_pkey", - "schema": "public", - "table": "MetaCatalogItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogSyncRun_pkey", - "schema": "public", - "table": "MetaCatalogSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniApp_pkey", - "schema": "public", - "table": "MiniApp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppPublication_pkey", - "schema": "public", - "table": "MiniAppPublication", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppSubmission_pkey", - "schema": "public", - "table": "MiniAppSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppUpload_pkey", - "schema": "public", - "table": "MiniAppUpload", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Minigame_pkey", - "schema": "public", - "table": "Minigame", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigameContact_pkey", - "schema": "public", - "table": "MinigameContact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigamePlay_pkey", - "schema": "public", - "table": "MinigamePlay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCodeRedemption_pkey", - "schema": "public", - "table": "DiscountCodeRedemption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderItem_pkey", - "schema": "public", - "table": "OrderItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Order_pkey", - "schema": "public", - "table": "Order", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderStatusHistory_pkey", - "schema": "public", - "table": "OrderStatusHistory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Credential_pkey", - "schema": "public", - "table": "PlatformCredential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Product_pkey", - "schema": "public", - "table": "Product", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductAddon_pkey", - "schema": "public", - "table": "ProductAddon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductCategory_pkey", - "schema": "public", - "table": "ProductCategory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariant_pkey", - "schema": "public", - "table": "ProductVariant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariantOption_pkey", - "schema": "public", - "table": "ProductVariantOption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireAnswer_pkey", - "schema": "public", - "table": "QuestionnaireAnswer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Questionnaire_pkey", - "schema": "public", - "table": "Questionnaire", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireQuestion_pkey", - "schema": "public", - "table": "QuestionnaireQuestion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireSubmission_pkey", - "schema": "public", - "table": "QuestionnaireSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Reflink_pkey", - "schema": "public", - "table": "Reflink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ResponseSlaPolicy_pkey", - "schema": "public", - "table": "ResponseSlaPolicy", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReply_pkey", - "schema": "public", - "table": "SavedReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReplyImage_pkey", - "schema": "public", - "table": "SavedReplyImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Sequence_pkey", - "schema": "public", - "table": "Sequence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SequenceStep_pkey", - "schema": "public", - "table": "SequenceStep", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Spreadsheet_pkey", - "schema": "public", - "table": "Spreadsheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SystemField_pkey", - "schema": "public", - "table": "SystemField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tag_pkey", - "schema": "public", - "table": "Tag", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TagChannel_pkey", - "schema": "public", - "table": "TagChannel", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TelegramChat_pkey", - "schema": "public", - "table": "TelegramChat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Template_pkey", - "schema": "public", - "table": "Template", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstallation_pkey", - "schema": "public", - "table": "TemplateInstallation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstalledResource_pkey", - "schema": "public", - "table": "TemplateInstalledResource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Trigger_pkey", - "schema": "public", - "table": "Trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Condition_pkey", - "schema": "public", - "table": "Condition", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerExecution_pkey", - "schema": "public", - "table": "TriggerExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerStat_pkey", - "schema": "public", - "table": "TriggerStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserDeviceToken_pkey", - "schema": "public", - "table": "UserDeviceToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserPersistentMenu_pkey", - "schema": "public", - "table": "UserPersistentMenu", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Vendor_pkey", - "schema": "public", - "table": "Vendor", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Webhook_pkey", - "schema": "public", - "table": "Webhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WebhookExecution_pkey", - "schema": "public", - "table": "WebhookExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappBusinessAccount_pkey", - "schema": "public", - "table": "WhatsappBusinessAccount", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCall_pkey", - "schema": "public", - "table": "WhatsappCall", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCallPermission_pkey", - "schema": "public", - "table": "WhatsappCallPermission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCoexistStaging_pkey", - "schema": "public", - "table": "WhatsappCoexistStaging", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappFlow_pkey", - "schema": "public", - "table": "WhatsappFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappMessageTemplate_pkey", - "schema": "public", - "table": "WhatsappMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappSignupSession_pkey", - "schema": "public", - "table": "WhatsappSignupSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHours_pkey", - "schema": "public", - "table": "WorkingHours", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursDateOverride_pkey", - "schema": "public", - "table": "WorkingHoursDateOverride", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursInterval_pkey", - "schema": "public", - "table": "WorkingHoursInterval", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursMember_pkey", - "schema": "public", - "table": "WorkingHoursMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Workspace_pkey", - "schema": "public", - "table": "Workspace", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceApiToken_pkey", - "schema": "public", - "table": "WorkspaceApiToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMac_pkey", - "schema": "public", - "table": "WorkspaceMac", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMember_pkey", - "schema": "public", - "table": "WorkspaceMember", - "entityType": "pks" - }, - { - "nameExplicit": true, - "columns": [ - "contactInboxId", - "sourceId", - "createdAt" - ], - "nullsNotDistinct": false, - "name": "Message_source_dedup_idx", - "entityType": "uniques", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "parentId", - "name" - ], - "nullsNotDistinct": true, - "name": "ProductCategory_workspaceId_parent_name_key", - "entityType": "uniques", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "ResponseSlaPolicy_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": true, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "UserDeviceToken_token_key", - "entityType": "uniques", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - "id", - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkingHours_id_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "userId" - ], - "nullsNotDistinct": false, - "name": "WorkingHoursMember_workspaceId_userId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "tokenHash" - ], - "nullsNotDistinct": false, - "name": "WorkspaceApiToken_tokenHash_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "periodStart", - "periodEnd" - ], - "nullsNotDistinct": false, - "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "nullsNotDistinct": false, - "name": "UserQuota_userId_key", - "schema": "public", - "table": "UserQuota", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkspaceUsage_workspaceId_key", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "uniques" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", - "name": "AdsConversionEvent_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", - "name": "Broadcast_occurrence_pair_check", - "entityType": "checks", - "schema": "public", - "table": "Broadcast" - }, - { - "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", - "name": "ConnectSession_actor_at_most_one", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", - "name": "ConnectSession_status_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", - "name": "ConnectSession_purpose_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", - "name": "ConnectSession_errorCode_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", - "name": "ConnectSession_errorCode_terminal_failure_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", - "name": "ConnectSession_terminal_consumedAt_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", - "name": "ConnectSession_terminal_clears_encryptedAuth_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", - "name": "ConnectSession_active_reconnect_requires_target_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", - "name": "Connection_kind_relation_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", - "name": "Connection_inbox_integration_exclusive_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"kind\" IN ('channel', 'integration')", - "name": "Connection_kind_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", - "name": "Connection_status_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", - "name": "Connection_statusReason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", - "name": "Connection_status_reason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", - "name": "Connection_disconnectedAt_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", - "name": "DiscountCode_usedCount_check", - "entityType": "checks", - "schema": "public", - "table": "DiscountCode" - }, - { - "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", - "name": "EcommerceSettings_serviceFeePercent_check", - "entityType": "checks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sent_requires_request_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sending_requires_claim_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", - "name": "GoogleAdsConversionEvent_processing_status_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", - "name": "GoogleAdsConversionEvent_failure_stage_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", - "name": "GoogleAdsConversionEvent_value_currency_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"value\" IS NULL OR \"value\" >= 0", - "name": "GoogleAdsConversionEvent_value_non_negative_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "length(\"clickId\") BETWEEN 10 AND 512", - "name": "GoogleAdsConversionEvent_clickId_length_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", - "name": "GoogleAdsConversionEvent_uploadMethod_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", - "name": "GoogleAdsConversionEvent_attempt_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", - "name": "IntegrationWhatsapp_registrationStatus_error_consistent", - "entityType": "checks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdOperation_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdsConnection_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", - "name": "MetaCapiEvent_channel_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", - "name": "MetaCapiEvent_actionSource_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"contentType\" IN ('product', 'product_group')", - "name": "MetaCapiEvent_contentType_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", - "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", - "entityType": "checks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", - "name": "ResponseSlaPolicy_targets_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", - "name": "ResponseSlaPolicy_threshold_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", - "name": "Vendor_discountPercent_check", - "entityType": "checks", - "schema": "public", - "table": "Vendor" - }, - { - "value": "cardinality(\"candidatePhoneNumberIds\") > 0", - "name": "WhatsappSignupSession_candidates_not_empty", - "entityType": "checks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "value": "\"weekday\" BETWEEN 0 AND 6", - "name": "WorkingHoursInterval_weekday_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", - "name": "WorkingHoursInterval_minutes_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql b/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql deleted file mode 100644 index 89dafab5a6..0000000000 --- a/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ -DROP INDEX CONCURRENTLY IF EXISTS "MiniAppUpload_contactId_idx";--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MiniAppUpload_contactId_idx"') AND NOT indisvalid) THEN DROP INDEX "MiniAppUpload_contactId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "MiniAppUpload_contactId_idx" ON "MiniAppUpload" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_currentQuestionId_idx"') AND NOT indisvalid) THEN DROP INDEX "QuestionnaireSubmission_currentQuestionId_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_currentQuestionId_idx" ON "QuestionnaireSubmission" ("currentQuestionId") WHERE "currentQuestionId" IS NOT NULL; \ No newline at end of file diff --git a/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json b/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json deleted file mode 100644 index 61906d55b7..0000000000 --- a/packages/database/drizzle/20261024105230_add_questionnaire_purge_fk_index/snapshot.json +++ /dev/null @@ -1,62276 +0,0 @@ -{ - "version": "8", - "dialect": "postgres", - "id": "8866cec4-c4d7-446e-9a68-8e762c47b77c", - "prevIds": [ - "7e8a925f-4a67-49a0-bd91-03492cfc9814" - ], - "ddl": [ - { - "values": [ - "pending", - "sent", - "failed", - "skipped_no_scope", - "skipped_region" - ], - "name": "adsConversionCapiStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automatic", - "rule", - "trigger" - ], - "name": "adsConversionEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "facebook", - "messenger", - "instagram" - ], - "name": "adsConversionChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "lead", - "purchase" - ], - "name": "adsConversionEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiConversationEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "success", - "error" - ], - "name": "aiConversationSourceStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "document", - "image", - "url", - "web_search" - ], - "name": "aiConversationSourceType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "success", - "error", - "processing" - ], - "name": "aiEmbeddingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enable", - "disable" - ], - "name": "aiHandoverBulkAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "running", - "cancelling", - "completed", - "failed", - "cancelled" - ], - "name": "aiHandoverBulkStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "automated_response", - "ai_agent", - "flow", - "none" - ], - "name": "analyticsBotResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "success", - "fallback" - ], - "name": "analyticsBotResult", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flow", - "agent", - "fallback" - ], - "name": "analyticsBotRouteType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message:sent", - "message:delivered", - "message:seen", - "message:failed", - "flow:clicked" - ], - "name": "analyticsBroadcastEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contact_created", - "contact_deleted", - "contact_blocked" - ], - "name": "analyticsContactEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "human" - ], - "name": "analyticsContactSenderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "conversation_created", - "conversation_assigned", - "conversation_unassigned", - "conversation_transferred_to_human", - "conversation_transferred_to_bot", - "conversation_followed", - "conversation_unfollowed", - "conversation_archived", - "conversation_unarchived" - ], - "name": "analyticsConversationEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message_human_sent", - "message_bot_sent" - ], - "name": "analyticsMessageEventType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "ingested", - "failed" - ], - "name": "analyticsStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "synced", - "failed" - ], - "name": "appointmentExternalSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationTypeSnapshot", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "cancelled" - ], - "name": "appointmentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inPerson", - "phoneCall", - "onlineMeeting" - ], - "name": "appointmentLocationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rollingDays", - "dateRange", - "specificDay", - "anyFutureDate" - ], - "name": "appointmentScheduleWindowType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "minutes", - "hours", - "days" - ], - "name": "appointmentReminderTimingUnit", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sent", - "cancelled", - "failed" - ], - "name": "appointmentReminderDispatchStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "image", - "video", - "audio", - "gif", - "file" - ], - "name": "fileType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inbound", - "outbound" - ], - "name": "automatedResponseType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "defaultReply" - ], - "name": "automationThrottleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "now", - "future", - "recurring" - ], - "name": "broadcastScheduleType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "scheduled", - "sent", - "sending", - "cancelled", - "draft", - "failed", - "recurring" - ], - "name": "broadcastStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "created", - "skipped", - "missed" - ], - "name": "broadcastOccurrenceOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "catchUpSuperseded", - "paused", - "draft", - "blockedOwner", - "planLimit", - "noTargets", - "undeliverable", - "excludedDate" - ], - "name": "broadcastOccurrenceReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "coexistChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "messages" - ], - "name": "coexistMessengerSyncPhase", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "init", - "running", - "succeeded", - "failed", - "partial", - "waiting" - ], - "name": "coexistRunStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "coexist", - "contact_scan" - ], - "name": "coexistRunType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "instagramFacebook", - "threads", - "tiktok" - ], - "name": "commentAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "equal", - "contain" - ], - "name": "commentExcludeKeywordsType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "sent", - "failed" - ], - "name": "commentAutomationEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "public", - "private" - ], - "name": "commentAutomationReplyChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "AIAgent", - "text", - "flow", - "none" - ], - "name": "commentAutomationReplyType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "outsideSchedule", - "postNotMatched", - "commentIsReply", - "keywordsNotMatched", - "mentionCountNotMatched", - "contactNotNew", - "alreadyRepliedOnPost", - "engagedOnOtherPost" - ], - "name": "commentAutomationMissReason", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "male", - "female", - "unknown" - ], - "name": "gender", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "captured", - "unavailable", - "failed" - ], - "name": "contactInboxProfileSnapshotState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink", - "image", - "video", - "audio", - "gif", - "file", - "storyMention" - ], - "name": "lastUserInputType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inboundReceived", - "standbyReceived", - "controlPassed", - "controlTaken", - "taken", - "released", - "passed", - "serviceSent", - "serviceRejected" - ], - "name": "threadControlEvent", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owned", - "standby", - "idle" - ], - "name": "threadControlState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "scheduled", - "completed", - "failed", - "canceled" - ], - "name": "ContactOnSmartDelayStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "waitNode", - "followUp", - "quickReplyFollowUp" - ], - "name": "ContactOnSmartDelayType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "archived" - ], - "name": "couponTopicStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "shortText", - "email", - "phoneNumber", - "number", - "date", - "datetime", - "boolean", - "longText" - ], - "name": "customFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "passed", - "failed" - ], - "name": "DecisionConnectionTestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "typesafe", - "systemOneCompatible", - "openrouterDecision" - ], - "name": "DecisionProviderKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "enabled", - "disabled" - ], - "name": "DecisionProfileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "entireOrder", - "category", - "products" - ], - "name": "discountAppliesTo", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "everyone", - "specificCustomers" - ], - "name": "discountEligibility", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "amount", - "quantity" - ], - "name": "discountMinimumType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "percentage", - "fixedAmount", - "freeShipping" - ], - "name": "discountType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "externalLink", - "flow", - "productPage" - ], - "name": "checkoutMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "left", - "leftSpace", - "right", - "rightSpace" - ], - "name": "currencyPosition", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "flow", - "none" - ], - "name": "orderConfirmationMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bigSquare", - "mediumRectangle" - ], - "name": "productImageSize", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "delivery", - "pickup", - "deliveryAndPickup" - ], - "name": "shippingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "list", - "listWithoutImage", - "card", - "cardSquare", - "image", - "imageSquare" - ], - "name": "webshopProductView", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "import", - "generic", - "export" - ], - "name": "fileContextType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "uploaded", - "failed" - ], - "name": "fileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "tag", - "flow", - "customField", - "automatedResponse", - "trigger", - "webhook", - "sequence", - "emailTopic", - "fbComment", - "igComment", - "igStory", - "outboundAutomatedResponse" - ], - "name": "folderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "gclid", - "gbraid" - ], - "name": "googleAdsClickIdType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flowStep", - "triggerAction" - ], - "name": "googleAdsEventSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "sending", - "sent", - "processed", - "failed", - "skipped_no_account", - "skipped_expired" - ], - "name": "googleAdsEventStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "processing", - "timeout" - ], - "name": "googleAdsFailureStage", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "processing", - "success", - "partial_success", - "failed", - "unknown", - "timed_out" - ], - "name": "googleAdsProcessingStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "storyReply", - "storyMention" - ], - "name": "igStoryAutomationTrigger", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "instagram", - "instagramFacebook" - ], - "name": "igStoryAutomationType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "csv", - "xlsx", - "xls", - "json" - ], - "name": "importFormat", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "importStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "contacts", - "coupons", - "products", - "flow" - ], - "name": "importType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "received", - "processing", - "processed", - "completedWithErrors", - "skipped", - "failed" - ], - "name": "inboundWebhookRequestStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "oauth", - "fbe" - ], - "name": "metaCatalogAuthMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "active", - "invalid" - ], - "name": "metaCatalogConnectionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "idle", - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogImportStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallRecordingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "metaNative", - "browserWhisper" - ], - "name": "whatsappCallTranscriptionMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending_verification", - "registered", - "failed" - ], - "name": "whatsappRegistrationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "messenger", - "instagram", - "whatsapp", - "zalo", - "telegram", - "tiktok", - "threads", - "email", - "gamification" - ], - "name": "leaderboardPlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "active", - "paused", - "finished" - ], - "name": "leaderboardStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "adjust", - "resetOne", - "resetAll", - "ban", - "unban" - ], - "name": "leaderboardAuditAction", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "rule", - "flow", - "referral", - "manual", - "reset" - ], - "name": "leaderboardScoreSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "location", - "refLink" - ], - "name": "contentType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "message", - "comment" - ], - "name": "messageKind", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "incoming", - "outgoing", - "activity" - ], - "name": "messageType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bot", - "contact", - "system", - "user", - "api" - ], - "name": "senderType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "processing", - "completed", - "failed" - ], - "name": "MessageCleanupStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "whatsapp", - "messenger", - "instagram" - ], - "name": "messagingAdChannel", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "campaignCreated", - "adSetCreated", - "creativeCreated", - "adCreated", - "failed" - ], - "name": "messagingAdCreateState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "draft", - "publishing", - "published", - "pausing", - "paused", - "deleting", - "deleted", - "publishFailed" - ], - "name": "messagingAdPublishState", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "push", - "import" - ], - "name": "metaCatalogItemDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "all", - "category", - "selected" - ], - "name": "metaCatalogSyncScope", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "queued", - "running", - "succeeded", - "partial", - "failed" - ], - "name": "metaCatalogSyncStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "web" - ], - "name": "miniAppSubmissionSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "submitted" - ], - "name": "miniAppUploadStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "luckyWheel", - "jackpot", - "gashapon", - "drawLots", - "scratchOff" - ], - "name": "minigameType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "user", - "apiToken", - "system", - "contact" - ], - "name": "orderActorType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "webshop", - "api", - "manual" - ], - "name": "orderSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "accepted", - "shipped", - "concluded", - "cancelled" - ], - "name": "orderStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "cod" - ], - "name": "paymentMethod", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "unpaid", - "paid", - "refunded" - ], - "name": "paymentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "pickup" - ], - "name": "shippingType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "dont_track", - "track" - ], - "name": "inventoryPolicy", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "text", - "number", - "email", - "phone", - "multipleChoice", - "date", - "datetime", - "image", - "file", - "location", - "websiteLink" - ], - "name": "questionnaireQuestionType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "inProgress", - "completed", - "cancelled", - "failed", - "timeout" - ], - "name": "questionnaireSubmissionStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "refLink", - "qrCode" - ], - "name": "ReflinkType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "me" - ], - "name": "SystemFieldType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "creator", - "administrator", - "member", - "restricted", - "left", - "kicked" - ], - "name": "telegramBotChatStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "private", - "group", - "supergroup", - "channel" - ], - "name": "telegramChatType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "installing", - "completed", - "partial", - "failed" - ], - "name": "templateInstallationStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "flows", - "products", - "aiFunctions", - "aiAgents", - "calendars", - "webchats", - "keywords", - "entryPointLinks", - "triggers", - "fbCommentAutomations", - "settings", - "customFields", - "tags", - "productCategories" - ], - "name": "templateResourceCategory", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ios", - "android" - ], - "name": "devicePlatform", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "userInitiated", - "businessInitiated" - ], - "name": "whatsappCallDirection", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "completed", - "failed", - "rejected", - "canceled" - ], - "name": "whatsappCallOutcome", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "ringing", - "accepted", - "rejected", - "completed", - "failed" - ], - "name": "whatsappCallStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "accept", - "reject" - ], - "name": "whatsappCallPermissionResponse", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "allTime", - "oncePerHour", - "oncePerDay" - ], - "name": "defaultReplyFrequency", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "full", - "read_only" - ], - "name": "WorkspaceApiTokenPermission", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "owner", - "agent" - ], - "name": "workspaceMemberRole", - "entityType": "enums", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageShard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ShardTimeRange", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AdsConversionRule", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIAgent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIConversationSource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIEmbedding", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIFunction", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverBulkRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIHandoverSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AIMCPServer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsAgentResponseEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBotMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsBroadcastEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsContactEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsConversationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsFlowNodeEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsMessageEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsSequenceEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsEmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AnalyticsManifestStatus", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Appointment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarAvailability", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentCalendarReminder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AppointmentReminderDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Attachment", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Account", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Invitation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Jwk", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Session", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "User", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Verification", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomatedResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AutomationThrottle", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BotField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Broadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastRecurrenceOccurrence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "BroadcastTarget", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Cart", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ChannelPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CoexistSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationMiss", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CommentAutomationReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConnectSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Connection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Contact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveHourly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactActiveMonthly", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactCustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactInboxPost", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactNote", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnBroadcast", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactOnSmartDelay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ContactToTagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Conversation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ConversationParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Coupon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CouponTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DecisionProfile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCode", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DynamicImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOpenHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOrderCounter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EmailTopic", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "AuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "CustomDomain", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "License", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformAdmin", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tenant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TenantHelpItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserQuota", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceUsage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ErrorLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ExternalWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookLeadAdsLead", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FacebookMarketingMessagesAuth", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "File", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Flow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowAnalyticsSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowNodeStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "FlowVersion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Folder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsConversionEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "GoogleAdsSettings", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IgStoryAutomation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Import", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboundWebhookRequest", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Inbox", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxContactStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeam", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "InboxTeamMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationActiveCampaign", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationApi", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Integration", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationClaude", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDeepseek", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationDrip", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationFacebookAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGemini", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGetResponse", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleAds", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationGoogleSheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationInstagram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationKlaviyo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailchimp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMailerLite", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMessenger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMetaCatalog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationMoosend", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenai", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenaiCompatible", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOpenrouter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationOutlookCalendar", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSendGrid", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationSmtp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTelegram", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationThreads", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationTiktok", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWebchat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationWhatsapp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "IntegrationZalo", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Leaderboard", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardAuditLog", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardParticipant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "LeaderboardScoreEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MagicLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MediaLibraryFolder", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Message", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessageCleanup", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdOperation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessagingAdsConnection", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MessengerWelcomeMessageFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCapiEvent", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MetaCatalogSyncRun", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniApp", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppPublication", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MiniAppUpload", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Minigame", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigameContact", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "MinigamePlay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCodeRedemption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Order", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderStatusHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "PlatformCredential", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Product", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductAddon", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductCategory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariant", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ProductVariantOption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireAnswer", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Questionnaire", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireQuestion", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "QuestionnaireSubmission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "RefLinkStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Reflink", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "ResponseSlaPolicy", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReply", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SavedReplyImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Sequence", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceDispatch", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SequenceStep", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Spreadsheet", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "SystemField", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Tag", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TagChannel", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TelegramChat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Template", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstallation", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TemplateInstalledResource", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Trigger", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Condition", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerContactHistory", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "TriggerStat", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserDeviceToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "UserPersistentMenu", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Vendor", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Webhook", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WebhookExecution", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappBusinessAccount", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCall", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCallPermission", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappCoexistStaging", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappFlow", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappMessageTemplate", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WhatsappSignupSession", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursDateOverride", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursInterval", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkingHoursMember", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Workspace", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceApiToken", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMac", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "WorkspaceMember", - "entityType": "tables", - "schema": "public" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "host", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "5432", - "generated": null, - "identity": null, - "name": "port", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "database", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "user", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credentialRef", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'disable'", - "generated": null, - "identity": null, - "name": "sslMode", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isMain", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardKey", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readHost", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "readPort", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shardId", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'whatsapp'", - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ctwaClid", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contents", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceEventId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "adsConversionCapiStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationFacebookAdsId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "adsConversionEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "markAs", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionPrompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "actionRules", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isRichResponse", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "tools", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "webSearchAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "models", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkIndex", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "aiConversationEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attachmentId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "aiConversationSourceStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentHash", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "summary", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "vector(1536)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "aiEmbeddingStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiFileId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dataCollect", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outputMessage", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "aiHandoverBulkStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "message", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedUntil", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chunkSeq", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cursorContactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightFromId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inFlightToId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "scheduleEnabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timeRanges", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gotoFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "pauseBotWaitingForStaff", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "applyToAllCustomers", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "applyToAllRevision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "applyToAllRequestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "availableTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "selectedTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingSince", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "measuredFrom", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingResponseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isFirstResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "slaMet", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResponseType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotRouteType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "routeType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "analyticsBotResult", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "result", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiProvider", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "analyticsBroadcastEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "batchId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "analyticsConversationEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsMessageEventType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "analyticsContactSenderType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "objectKey", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "analyticsStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "timestamp", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ingestedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inviteeTimezone", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'scheduled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentLocationTypeSnapshot", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventIntegrationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventProviderCalendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "appointmentExternalSyncStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalSyncStatus", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "30", - "generated": null, - "identity": null, - "name": "durationMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "bufferAfterMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentLocationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "appointmentScheduleWindowType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'rollingDays'", - "generated": null, - "identity": null, - "name": "scheduleWindowType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "scheduleWindowConfig", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxAppointmentsPerUser", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "dailyLimitEnabled", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerDay", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowGroupMeeting", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxPerSlot", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationMessage", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "confirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancellationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalConnectionId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventTitleTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventDescriptionTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalEventAttendeesTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicLinkSlug", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingValue", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "appointmentReminderTimingUnit", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timingUnit", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reminderConfigId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "appointmentReminderDispatchStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "jobId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedReason", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageCreatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "fileType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "width", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "height", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnailPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "keepOriginal", - "entityType": "columns", - "schema": "public", - "table": "Attachment" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accessTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refreshTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idToken", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "password", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Account" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "invitedBy", - "entityType": "columns", - "schema": "public", - "table": "Invitation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "privateKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Session" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAnonymous", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "mustChangePassword", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "User" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "keywords", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "automatedResponseType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inbound'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "automationThrottleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "throttleType", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subjectId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "uuid", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BotField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'channel'", - "generated": null, - "identity": null, - "name": "targetMode", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "broadcastScheduleType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesType", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "schedulesAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactFilter", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subaction", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoffCompletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resumeCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeStart", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "audienceRangeEnd", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendRatePerMinute", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountedThroughAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "occurrenceCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOccurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pausedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recurrenceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "localSlot", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceOutcome", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "broadcastOccurrenceReason", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "childBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "materializedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "supersededCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "items", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedNotifiedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceAccountId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalPostId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "caption", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaType", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnail", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permalink", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataFetchedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadataAttemptedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'coexist'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistRunStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'init'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerSource", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentPageNumber", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedContactCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedMessageCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastChunkOrder", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "syncProgress", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "coexistMessengerSyncPhase", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contacts'", - "generated": null, - "identity": null, - "name": "messengerSyncPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pendingPatches", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scanFromAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resumeCursor", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'messenger'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sentCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clickedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "missedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "post", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"text\",\"value\":\"\"}'", - "generated": null, - "identity": null, - "name": "privateReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "publicReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "excludeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "commentExcludeKeywordsType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'contain'", - "generated": null, - "identity": null, - "name": "excludeKeywordsType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"replyToNewContactsOnly\":false,\"replyOncePerUserPerPost\":false,\"likeUserComment\":false,\"replyToUsersWhoCommentedOnOtherPosts\":true,\"ignoreCommentReplies\":true,\"trackUserTags\":false}'", - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"all\":false,\"hasPhoneNumber\":false,\"hasImage\":false,\"hasVideo\":false,\"hasLink\":false,\"hasKeywords\":false,\"hasGif\":false,\"hasEmoji\":false,\"keywords\":[],\"showCommentsAfter\":\"none\"}'", - "generated": null, - "identity": null, - "name": "hideComments", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"immediately\",\"value\":0}'", - "generated": null, - "identity": null, - "name": "replyAfter", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyChannel", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationReplyType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "replyText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "commentAutomationEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorDetail", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "commentAutomationMissReason", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetConnectionId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorTokenId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platformOwnerId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originHost", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "returnUrl", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stateNonceHash", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'authorize'", - "generated": null, - "identity": null, - "name": "step", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextAction", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "targetClaims", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "resultConnectionIds", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "results", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "kind", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "displayName", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "statusReason", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "authExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "avatar", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumber", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "emailOptIn", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "CASE\n WHEN \"firstName\" IS NULL AND \"lastName\" IS NULL THEN NULL\n WHEN \"firstName\" IS NULL THEN \"lastName\"\n WHEN \"lastName\" IS NULL THEN \"firstName\"\n ELSE \"firstName\" || ' ' || \"lastName\"\n END", - "type": "stored" - }, - "identity": null, - "name": "fullName", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "gender", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "gender", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "country", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "state", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "city", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "location", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "locale", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastSubscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "blockedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalNewTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Contact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hourBucket", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceMacId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "originalContactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followsBusiness", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessFollowsContact", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountVerified", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "followerCount", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "contactInboxProfileSnapshotState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotAttempts", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "profileSnapshotNextAttemptAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstInteractionAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastIncomingMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastOutboundMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referral", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastCommentMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "consecutiveFailedReply", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastInputFailure", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastErrorLog", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastBtnTitle", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInput", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "lastUserInputType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUserInputType", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webchatParentUrl", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceParentUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUsername", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceIdentityHistory", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlState", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerRole", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "threadControlEvent", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlLastEvent", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadOwnerExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadPreviousOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "commentedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "sent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "enrolledAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "ContactOnSmartDelayStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagChannelId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "botEnabled", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botResumeAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "archivedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "additionalAttributes", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "agentLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiContextLastMessageId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followed", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedInboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adminRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplySince", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "awaitingHumanReplyClosedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "assignedUserAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseDueAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaBreachingAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "responseSlaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "Conversation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedContactId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "issuedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "couponTopicStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasEverHadCoupon", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "customFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "showInInbox", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionProviderKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "providerKind", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endpoint", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "modelCatalog", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "DecisionConnectionTestStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestStatus", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastTestedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "DecisionProfileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'enabled'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "connectionId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contract", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thresholdConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "globalRouterEnabled", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "globalRouterConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoApply", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountAppliesTo", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'entireOrder'", - "generated": null, - "identity": null, - "name": "appliesTo", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productIds", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountMinimumType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'none'", - "generated": null, - "identity": null, - "name": "minimumType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "usageLimit", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "usedCount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "oncePerCustomer", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "discountEligibility", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'everyone'", - "generated": null, - "identity": null, - "name": "eligibility", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerFilter", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "data", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "backgroundUrl", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "lastNumber", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderingAvailable", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "webshopProductView", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webshopProductView", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "searchProducts", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookPixelId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartDelayMinutes", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "abandonedCartFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productButtons", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "productImageSize", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productImageSize", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "allowRateOrders", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "notifyOnCartStatusChange", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "paymentMethods", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "currencyPosition", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyPosition", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencySymbol", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeePercent", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "shippingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingCountries", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultShippingCountry", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveryCost", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "checkoutMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutLink", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "checkoutFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "orderConfirmationMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'default'", - "generated": null, - "identity": null, - "name": "orderConfirmationMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderConfirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireName", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireEmail", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requirePhone", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireState", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requireZip", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sendsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "deliveredsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "seensTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "clicksTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "domain", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfHostnameId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfOwnershipValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cfAcmeValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "licenseId", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "License" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'super-admin'", - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disabledReason", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandName", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoLightPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logoDarkPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "faviconPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customJs", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "theme", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storageUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "policyUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "termsOfServiceUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "signupEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "forgotPasswordEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "magicLinkEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "accountCredentialsEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hiddenChannels", - "entityType": "columns", - "schema": "public", - "table": "Tenant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "icon", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspacesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "workspacesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "teamMembersLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "macLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "monthlyBotMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "monthlyBotMessagesPeriodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesTopUpGranted", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "whiteLabel", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "ssoSaml", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "saasMode", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planName", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "planStatus", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selectedTrialPlanId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelsTornDownAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stackTrace", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'make'", - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "event", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "fieldMapping", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "leadsHandledCount", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leadgenId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyOffset", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetType", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "budgetMinorUnits", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "content", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "campaignId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileContextType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contextType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileSize", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "fileStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadedAt", - "entityType": "columns", - "schema": "public", - "table": "File" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableInInbox", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "draftVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Flow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "nodes", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "edges", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isDraft", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isLatest", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startNodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "folderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderType", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isTrash", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "paths", - "entityType": "columns", - "schema": "public", - "table": "Folder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationGoogleAdsId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionName", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionCategory", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lookbackWindowDays", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsClickIdType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickIdType", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "googleClickReceivedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transactionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadMethod", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsEventStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "requestId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsFailureStage", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failureStage", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "googleAdsProcessingStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingStatus", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingAttempts", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextProcessingCheckAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processingDetail", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "settings", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "igStoryAutomationTrigger", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'storyReply'", - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "story", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", - "generated": null, - "identity": null, - "name": "reply", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", - "generated": null, - "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileId", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importFormat", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "format", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "importStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "errorSample", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxResolution", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "identifiers", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldMappings", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sampleJson", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "requestCount", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboundWebhookId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clientIp", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "inboundWebhookRequestStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'received'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "skipReason", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fieldErrors", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actionResults", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "markReadOnOutbound", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "disconnectReason", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadControlSeenAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callbackUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationType", - "entityType": "columns", - "schema": "public", - "table": "Integration" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "descriptiveName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedCustomerDataTerms", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActions", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionsSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupErrorAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "igId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'instagram'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "personas", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogAuthMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'oauth'", - "generated": null, - "identity": null, - "name": "authMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogConnectionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "metaCatalogImportStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'idle'", - "generated": null, - "identity": null, - "name": "importStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importTotalCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "importFailedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "importError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastImportedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'VND'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReplyVoice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "voice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiAgentId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "baseURL", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "preset", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromAddress", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "threadsUserId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enable", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "authorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideHeader", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "showLogo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hideMessageInput", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "displayPhoneNumber", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "inboundCallsEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callHours", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callRecordingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "90", - "generated": null, - "identity": null, - "name": "callRecordingRetentionDays", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "callTranscriptionEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallRecordingMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callRecordingMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappCallTranscriptionMode", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'metaNative'", - "generated": null, - "identity": null, - "name": "callTranscriptionMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callAnnouncementLanguage", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "callRecordingPurpose", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isCoexist", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "platformType", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "historyDeclined", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "whatsappRegistrationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending_verification'", - "generated": null, - "identity": null, - "name": "registrationStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "registrationError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verificationCodeRequestedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "oaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fallbackFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "coverImageUrl", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "leaderboardPlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rules", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "followersOnly", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagIds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'22:00'", - "generated": null, - "identity": null, - "name": "resetTime", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "cooldownSeconds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referralWelcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardSettings", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardsTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardRecipients", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "leaderboardAuditAction", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "score", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isBanned", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "scoredAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "date", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyBucket", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "dailyCounts", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "breakdown", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "leaderboardScoreSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceRef", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isFavourite", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAccessedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentAttributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "contentType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "senderType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "senderId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "timestamp with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "messageKind", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'message'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attributes", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendError", - "entityType": "columns", - "schema": "public", - "table": "Message" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationIds", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sinceTime", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "MessageCleanupStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdCreateState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "createState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "messagingAdPublishState", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'draft'", - "generated": null, - "identity": null, - "name": "publishState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaCampaignId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdSetId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdCreativeId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaAdId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "input", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cleanupError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "messagingAdChannel", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'active'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'POSITIONAL'", - "generated": null, - "identity": null, - "name": "parameterFormat", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "metaFlowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'current'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "eventName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentCategory", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "numeric", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'business_messaging'", - "generated": null, - "identity": null, - "name": "actionSource", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contentIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiError", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedFingerprint", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'push'", - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogSyncScope", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'all'", - "generated": null, - "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "selectedProductIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "handles", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionLeaseId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "succeededCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "itemErrors", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "skippedItems", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "pollAttempt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "definition", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowJson", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "submissionsCount", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "whatsappFlowId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "miniAppSubmissionSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answers", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inputName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "uploadToken", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "miniAppUploadStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "minigameType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "generalSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "appearance", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "playerSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "winningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nonWinningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "playsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "participantsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "winnersCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "played", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "remaining", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "isWinning", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeName", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "variantLabel", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorName", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "unitPrice", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "quantity", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "stockTaken", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lineTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "number", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderSource", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentMethod", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'cod'", - "generated": null, - "identity": null, - "name": "paymentMethod", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "paymentStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'unpaid'", - "generated": null, - "identity": null, - "name": "paymentStatus", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subtotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "serviceFeeTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "couponDiscount", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "total", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerName", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerEmail", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerPhone", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "shippingType", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippingAddress", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rating", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ratingComment", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shippedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "concludedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelReason", - "entityType": "columns", - "schema": "public", - "table": "Order" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "fromStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "toStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "orderActorType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorType", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publicConfig", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "livemode", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "usePlatformCredential", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isVerified", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastUsedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "longDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "taxes", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "discount", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'USD'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productUrl", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "inventoryPolicy", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'dont_track'", - "generated": null, - "identity": null, - "name": "inventoryPolicy", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "inventoryQuantity", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowOutOfStockPurchase", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "images", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "tags", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isSearchable", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "allowSpecialRequest", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isAddonOnly", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Product" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "''", - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "maxSelections", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "addonProductIds", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isVisible", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "double precision", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isEnabled", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "values", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionIdSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTitleSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionTypeSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "labelSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pointsEarned", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "attemptCount", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "answeredAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableScore", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "enableRetryMessages", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enableCustomFieldMapping", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "questionnaireQuestionType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "orderNo", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "point", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "retryMessage", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "systemFieldKey", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "questionnaireSubmissionStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'inProgress'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "totalPoints", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currentQuestionSentAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastAnsweredMessageId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "ReflinkType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'refLink'", - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "qrStyles", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", - "generated": null, - "identity": null, - "name": "widgetHiddenInboxIds", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoFileId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandName", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetBrandUrl", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "widgetLogoBackgroundColor", - "entityType": "columns", - "schema": "public", - "table": "Reflink" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "nextResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "25", - "generated": null, - "identity": null, - "name": "breachingThresholdPercent", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortcut", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "savedReplyId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaLibraryFileId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "subscribers", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "runAtMs", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "bucket", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "enrollmentId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, - "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "order", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "delayMinutes", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "delayUnit", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "specificDateTime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "anytime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeStart", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sendTimeEnd", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", - "generated": null, - "identity": null, - "name": "sendDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "spreadsheetId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "SystemFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Tag" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channelType", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalLabelId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "chatId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramChatType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "telegramBotChatStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "botStatus", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publisherName", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "youtubeVideoId", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "testLink", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "selection", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryCounts", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareToken", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "shareEnabled", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shareExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultPermissions", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "createInstallFolder", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "defaultAutoUpdate", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "installCount", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "templateName", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceWorkspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "templateInstallationStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "warnings", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "warningCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resourceCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installFolderId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoUpdate", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installedBy", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installationId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "templateResourceCategory", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceKind", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "resourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceResourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "wasExisting", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "varchar(255)", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "operator", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Condition" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "firstEnteredAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failureCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalExecutions", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "devicePlatform", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "menus", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phone", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "numeric(19,4)", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'0'", - "generated": null, - "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "10", - "generated": null, - "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Vendor" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "grantedScopes", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "provisionedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "creditLineId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wacid", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "attemptId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallDirection", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'ringing'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "whatsappCallOutcome", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "durationSeconds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answeredByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "initiatedByUserId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingRequested", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingFailureReason", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingPath", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcript", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcribedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcriptSegments", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummary", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummarizedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummaryProvider", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "whatsappCallPermissionResponse", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "response", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isPermanent", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "respondedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payloadHash", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parseFailedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "categories", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "completedCount", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "screens", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAccessToken", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "apiVersion", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "candidatePhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "claimedPhoneNumberIds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHours" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "date", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultReply", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "defaultReplyFrequency", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'allTime'", - "generated": null, - "identity": null, - "name": "defaultReplyFrequency", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetCountry", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'en'", - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'UTC'", - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'#016DFF'", - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "developmentMode", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "smartResponseDelaySeconds", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scheduledDeletionAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purgeStartedAt", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "supportAccessUntil", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "capiLimitedDataUse", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Workspace" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "WorkspaceApiTokenPermission", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permission", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedToken", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "scopes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macCount", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "workspaceMemberRole", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationChannels", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationTypes", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "onlineSince", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isActive", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_isActive_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageShard_shardKey_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "startTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "endTime", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_time_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ShardTimeRange_shardId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'whatsapp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'messenger'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceEventId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"channel\" = 'instagram'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "enabled", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AdsConversionRule_workspaceId_channel_enabled_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIAgent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIAgent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chunkIndex", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_sourceId_chunkIndex_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "embedding", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "vector_cosine_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "hnsw", - "concurrently": false, - "name": "AIConversationEmbedding_embedding_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationEmbedding_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_messageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIConversationSource_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIEmbedding_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "aiFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIEmbedding_aiFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_live_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "revision", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_revision_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"createdAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_live_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "requestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_requestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "applyToAllRequestedByUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "gotoFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverSettings_gotoFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "aiProvider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "hasResponse", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "result", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "toAssignee", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "senderType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_token_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"conversationId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactInboxId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsEmailTopic_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "objectKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AnalyticsManifestStatus_objectKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsManifestStatus" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_workspaceId_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "startAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_calendarId_status_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Appointment_contactId_calendarId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "publicLinkSlug", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendar_publicLinkSlug_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarAvailability_calendarId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingValue", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingUnit", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentCalendarReminder_dedupe_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "jobId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_jobId_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sendAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_status_sendAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AppointmentReminderDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "messageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "messageCreatedAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_message_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Attachment_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "providerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "accountId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Account_providerId_accountId_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Invitation_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Session_token_key", - "entityType": "indexes", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_email_tenant_key", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "User_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomatedResponse_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastTriggeredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_lastTriggeredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AutomationThrottle_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BotField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "schedulesAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_schedulesAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"deletedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_parentBroadcastId_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_broadcastId_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"nextRunAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrence_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "localSlot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "childBroadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "BroadcastTarget_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_workspaceId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastActivityAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"abandonedNotifiedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Cart_abandoned_scan_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalPostId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_channel_externalPostId_key", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_workspaceId_sortAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ChannelPost_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "\"startedAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "status IN ('succeeded', 'partial')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_resume_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "status = 'init' AND type = 'coexist'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_integration_init_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "type = 'contact_scan' AND status IN ('init', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_active_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "type = 'contact_scan'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CoexistSyncRun_contact_scan_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "replyChannel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_private_unseen_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'failed'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationEvent_failed_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationMiss_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CommentAutomationReply_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "consumedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"consumedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_consumedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stateNonceHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConnectSession_stateNonceHash_key", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_workspaceId_provider_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_provider_sourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Connection_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastSubscribedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_broadcast_subscribed_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_created_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_email", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_phone_number", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_workspace_full_name_md5", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "firstName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_firstName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "lastName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_lastName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_email_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumber", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "gin", - "concurrently": false, - "name": "Contact_phoneNumber_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_contactId_customFieldId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactCustomField_customFieldId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceParentUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceParentUserId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_sourceParentUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "profileSnapshotNextAttemptAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"profileSnapshotState\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_profileSnapshot_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_inboxId_id_ai_held_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastIncomingMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastOutboundMessageAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'ctwaClid')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'ctwaClid' IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_ctwaClid_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "(\"referral\"->>'adId')", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInbox_referral_adId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactInboxPost_workspaceId_postId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactNote_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_contact_id", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "isRead", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "idx_contact_on_broadcast_is_read", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"sent\" = false AND \"failedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnBroadcast_unsent_order_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_status_triggerAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "appointmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_followUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTag_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ContactToTagChannel_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"sourceId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_dm_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "responseDueAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"responseDueAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_responseDueAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "aiContextLastMessageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_aiContextLastMessageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastActivityAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Conversation_workspaceId_lastActivityAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ConversationParticipant_conversationId_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"issuedContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "issuedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_code_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "issuedContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "usedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_status_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "CouponTopic_workspaceId_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "connectionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_connectionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"globalRouterEnabled\" = true", - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_globalRouter_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"code\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCode_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DynamicImage_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceOpenHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "abandonedCartFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_abandonedCartFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "checkoutFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_checkoutFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderConfirmationFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EcommerceSettings_orderConfirmationFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "EmailTopic_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_workspaceId_userId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AuditLog_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_tenantId_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "domain", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_domain_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "licenseId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "License_licenseId_key", - "entityType": "indexes", - "schema": "public", - "table": "License" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformAdmin_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "ownerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tenant_ownerId_key", - "entityType": "indexes", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "position", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TenantHelpItem_tenantId_position_idx", - "entityType": "indexes", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelsTornDownAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_channelsTornDownAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_due_expired_trial_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ErrorLog_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_idx", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "url", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_url_key", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "formId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_automationId_leadgenId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leadgenId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_leadgenId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookLeadAdsLead_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "campaignId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessage_campaignId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FacebookMarketingMessagesAuth_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_path_key", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contextType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_contextType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "subType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "File_workspaceId_subType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Flow_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_workspaceId_flowId_key", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowAnalyticsSession_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_1_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowNodeStat_filter_2_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowVersionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowRun_flowVersionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowVersion_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "FlowVersion_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Folder_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "transactionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextProcessingCheckAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsConversionEvent_status_claimedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IgStoryAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_workspaceId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_inboxId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_fileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_products_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "token", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_token_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"idempotencyKey\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboundWebhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'received'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_received_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "claimedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'processing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_claimedAt_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Inbox_workspaceId_channel_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboxTeam_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboxTeam" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationActiveCampaign_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tokenHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationApi_tokenHash_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Integration_workspaceId_integrationType_key", - "entityType": "indexes", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDeepseek_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGetResponse_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGoogleSheet_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "igId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationInstagram_igId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailchimp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMailerLite_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "pageId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMessenger_pageId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMetaCatalog_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenAI_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "preset", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"preset\" <> 'custom'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOpenrouter_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationOutlookCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSendGrid_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationSmtp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "botId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_botId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "threadsUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationThreads_threadsUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTiktok_openId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "welcomeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWebchat_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "handoverResumeFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationWhatsapp_phoneNumberId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "fallbackFlowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_fallbackFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "oaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_oaId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Leaderboard_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardAuditLog_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "score", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "scoredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "NOT \"isBanned\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_ranking_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referrerContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardParticipant_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "LeaderboardScoreEvent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLink_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFolder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversation_history_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_workspace_created_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_contactInboxId_sourceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversationId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parentId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_status_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationWhatsappId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationInstagramId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationMessengerId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationInstagramId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'current'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_current_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_channel_integrationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "retailerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_retailer_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_product_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" IN ('queued', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_miniAppId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "uploadToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_uploadToken_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_path_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "inputName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_miniAppId_inputName_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_submissionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "referrerContactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"referrerContactId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"contactInboxId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_minigameId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_orderId_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_orderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "variantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_variantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "number", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_number_key", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_discountCodeId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_orderId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "actorUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_actorUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_user_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"userId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_platform_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductAddon_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariant_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariantOption_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "questionIdSnapshot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_questionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "orderNo", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_customFieldId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"conversationId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "currentQuestionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"currentQuestionId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_currentQuestionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"status\" = 'inProgress'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Reflink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReply_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReply" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_mediaLibraryFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_bucket_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "enrollmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_enrollmentId_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspace_sequence_step_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_bucket_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "updatedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" in ('completed', 'failed', 'canceled')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_terminal_updatedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_tag_integration_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalLabelId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_external_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_workspace_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chatId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_inboxId_chatId_key", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "shareToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_shareToken_key", - "entityType": "indexes", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "templateId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_templateId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "installationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_installationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceKind", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_source_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_key", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserDeviceToken_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserPersistentMenu_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_webhookId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "wabaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "wacid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"wacid\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_wacid_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "attemptId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"attemptId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_attemptId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_ringing_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_resumableRinging_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "recordedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"recordingPath\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_recording_inboxId_recordedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_pendingOutbound_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phoneNumberId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "payloadHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phone_hash_uq", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "processedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"processedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_processedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "parseFailedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": "\"parseFailedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_parseFailedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspace_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"workingHoursId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_schedule_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursInterval_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursMember_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "scheduledDeletionAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_scheduledDeletionAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "supportAccessUntil", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_supportAccessUntil_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"isDefault\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_default_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceMember_workspaceId_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "shardId" - ], - "schemaTo": "public", - "tableTo": "MessageShard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ShardTimeRange_shardId_MessageShard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ShardTimeRange" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_k99JXbMObQIn_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationFacebookAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationFacebookAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_3zzAptVRRuZD_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_HUibBtSUZbML_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIAgent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIAgent" - }, - { - "nameExplicit": false, - "columns": [ - "sourceId" - ], - "schemaTo": "public", - "tableTo": "AIConversationSource", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIConversationSource_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "aiFileId" - ], - "schemaTo": "public", - "tableTo": "AIFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIEmbedding_aiFileId_AIFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFile" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIFunction_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIFunction_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "gotoFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "applyToAllRequestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AIMCPServer_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIMCPServer" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "EmailTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Appointment_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "confirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "cancellationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "externalConnectionId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarAvailability" - }, - { - "nameExplicit": false, - "columns": [ - "calendarId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendar", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "reminderConfigId" - ], - "schemaTo": "public", - "tableTo": "AppointmentCalendarReminder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Account_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Account_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "invitedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_invitedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Session_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Session" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "User_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "User" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BotField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BotField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Broadcast_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "parentBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "recurrenceId" - ], - "schemaTo": "public", - "tableTo": "BroadcastRecurrence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "childBroadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastTarget_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Cart_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Cart_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ChannelPost_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" - }, - { - "nameExplicit": false, - "columns": [ - "requestedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CoexistSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "CommentAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "targetConnectionId" - ], - "schemaTo": "public", - "tableTo": "Connection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConnectSession_targetConnectionId_Connection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "actorTokenId" - ], - "schemaTo": "public", - "tableTo": "WorkspaceApiToken", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Connection_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Connection_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Contact_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Contact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactCustomField_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactInbox_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" - }, - { - "nameExplicit": false, - "columns": [ - "broadcastId" - ], - "schemaTo": "public", - "tableTo": "Broadcast", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "appointmentId" - ], - "schemaTo": "public", - "tableTo": "Appointment", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTag_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagChannelId" - ], - "schemaTo": "public", - "tableTo": "TagChannel", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "assignedUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "assignedInboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Conversation_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ConversationParticipant_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "topicId" - ], - "schemaTo": "public", - "tableTo": "CouponTopic", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_topicId_CouponTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "issuedContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Coupon_issuedContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CouponTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "createdById" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CouponTopic_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CustomField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DecisionProfile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "connectionId" - ], - "schemaTo": "public", - "tableTo": "DecisionConnection", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCode_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCode_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DynamicImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DynamicImage_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOpenHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOrderCounter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "abandonedCartFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "checkoutFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "orderConfirmationFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "EmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EmailTopic_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AuditLog_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": true, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AuditLog_userId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomDomain_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "PlatformAdmin_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformAdmin" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Tenant_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tenant" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TenantHelpItem_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TenantHelpItem" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "UserQuota_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceUsage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ErrorLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ErrorLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ExternalWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "automationId" - ], - "schemaTo": "public", - "tableTo": "FacebookLeadAdsAutomation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "File_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "File_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Flow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Flow_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowNodeStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "flowVersionId" - ], - "schemaTo": "public", - "tableTo": "FlowVersion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Folder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Folder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationGoogleAdsId" - ], - "schemaTo": "public", - "tableTo": "IntegrationGoogleAds", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IgStoryAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IgStoryAutomation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Import_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "fileId" - ], - "schemaTo": "public", - "tableTo": "File", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Import_fileId_File_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboundWebhookId" - ], - "schemaTo": "public", - "tableTo": "InboundWebhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Inbox_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Inbox" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxContactStat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxContactStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeam_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeam" - }, - { - "nameExplicit": false, - "columns": [ - "inboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Integration_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Integration" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_inboxId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": true, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationInstagram_welcomeFlowId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "aiAgentId" - ], - "schemaTo": "public", - "tableTo": "AIAgent", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" - }, - { - "nameExplicit": false, - "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "fallbackFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Leaderboard_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "referralWelcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" - }, - { - "nameExplicit": false, - "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "MagicLink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_linkId_MagicLink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFolder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_LwL2ykeZegup_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MessagingAdOperation_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_wJXyKUssR08y_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniApp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniApp" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "whatsappFlowId" - ], - "schemaTo": "public", - "tableTo": "WhatsappFlow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "MiniAppSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Minigame_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Minigame" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" - }, - { - "nameExplicit": false, - "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "variantId" - ], - "schemaTo": "public", - "tableTo": "ProductVariant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_variantId_ProductVariant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Order_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" - }, - { - "nameExplicit": false, - "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderStatusHistory_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Credential_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformCredential" - }, - { - "nameExplicit": false, - "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Product_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductAddon_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductAddon" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "parentId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_parentId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariant_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariant" - }, - { - "nameExplicit": false, - "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariantOption_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariantOption" - }, - { - "nameExplicit": false, - "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireSubmission", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "questionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" - }, - { - "nameExplicit": false, - "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Questionnaire_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Questionnaire_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "currentQuestionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "Reflink", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_linkId_Reflink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "widgetLogoFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReply" - }, - { - "nameExplicit": false, - "columns": [ - "savedReplyId" - ], - "schemaTo": "public", - "tableTo": "SavedReply", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "mediaLibraryFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SavedReplyImage" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Sequence_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Sequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Sequence" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "stepId" - ], - "schemaTo": "public", - "tableTo": "SequenceStep", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": true, - "columns": [ - "enrollmentId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "ContactOnSequence", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_enrollment_workspace_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "SequenceStep_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceStep_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "SequenceStep" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Spreadsheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Spreadsheet" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Tag_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Tag_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tag" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TagChannel" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TelegramChat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Template_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Template_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Template_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Template" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "templateId" - ], - "schemaTo": "public", - "tableTo": "Template", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_templateId_Template_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installFolderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installFolderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstallation" - }, - { - "nameExplicit": false, - "columns": [ - "installationId" - ], - "schemaTo": "public", - "tableTo": "TemplateInstallation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TemplateInstalledResource" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Trigger_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Trigger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Trigger" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Condition" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerExecution" - }, - { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_triggerId_Trigger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TriggerStat" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserPersistentMenu" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Vendor_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Vendor" - }, - { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Webhook_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Webhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Webhook" - }, - { - "nameExplicit": false, - "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_webhookId_Webhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WebhookExecution" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappBusinessAccount" - }, - { - "nameExplicit": false, - "columns": [ - "answeredByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_answeredByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "initiatedByUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_initiatedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "nameExplicit": false, - "columns": [ - "workingHoursId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Workspace" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsAgentResponseEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsBotMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "columns": [ - "broadcastId", - "contactInboxId", - "batchId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsBroadcastEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsContactEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsConversationEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "columns": [ - "flowId", - "analyticsId", - "nodeId", - "buttonId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsFlowNodeEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "columns": [ - "sequenceId", - "stepId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsSequenceEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Attachment_pkey", - "entityType": "pks", - "schema": "public", - "table": "Attachment" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "throttleType", - "subjectId" - ], - "nameExplicit": true, - "name": "AutomationThrottle_pkey", - "entityType": "pks", - "schema": "public", - "table": "AutomationThrottle" - }, - { - "columns": [ - "broadcastId", - "inboxId" - ], - "nameExplicit": true, - "name": "BroadcastTarget_pkey", - "entityType": "pks", - "schema": "public", - "table": "BroadcastTarget" - }, - { - "columns": [ - "workspaceId", - "hourBucket", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveHourly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveHourly" - }, - { - "columns": [ - "workspaceId", - "periodStart", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveMonthly_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactActiveMonthly" - }, - { - "columns": [ - "workspaceId", - "contactInboxId", - "postId" - ], - "nameExplicit": true, - "name": "ContactInboxPost_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactInboxPost" - }, - { - "columns": [ - "broadcastId", - "contactId" - ], - "nameExplicit": true, - "name": "ContactsOnBroadcast_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnBroadcast" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "ContactOnSequence_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactOnSequence" - }, - { - "columns": [ - "contactId", - "tagId" - ], - "nameExplicit": false, - "name": "ContactToTag_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTag" - }, - { - "columns": [ - "tagChannelId", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactToTagChannel_pkey", - "entityType": "pks", - "schema": "public", - "table": "ContactToTagChannel" - }, - { - "columns": [ - "leaderboardId", - "contactId" - ], - "nameExplicit": false, - "name": "LeaderboardParticipant_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardParticipant" - }, - { - "columns": [ - "createdAt", - "id" - ], - "nameExplicit": false, - "name": "LeaderboardScoreEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "LeaderboardScoreEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Message_pkey", - "entityType": "pks", - "schema": "public", - "table": "Message" - }, - { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "SequenceDispatch_pkey", - "entityType": "pks", - "schema": "public", - "table": "SequenceDispatch" - }, - { - "columns": [ - "id", - "contactId" - ], - "nameExplicit": true, - "name": "TriggerContactHistory_pkey", - "entityType": "pks", - "schema": "public", - "table": "TriggerContactHistory" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageShard_pkey", - "schema": "public", - "table": "MessageShard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ShardTimeRange_pkey", - "schema": "public", - "table": "ShardTimeRange", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionEvent_pkey", - "schema": "public", - "table": "AdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionRule_pkey", - "schema": "public", - "table": "AdsConversionRule", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIAgent_pkey", - "schema": "public", - "table": "AIAgent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationEmbedding_pkey", - "schema": "public", - "table": "AIConversationEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationSource_pkey", - "schema": "public", - "table": "AIConversationSource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIEmbedding_pkey", - "schema": "public", - "table": "AIEmbedding", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFile_pkey", - "schema": "public", - "table": "AIFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIFunction_pkey", - "schema": "public", - "table": "AIFunction", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverBulkRun_pkey", - "schema": "public", - "table": "AIHandoverBulkRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIHandoverSettings_pkey", - "schema": "public", - "table": "AIHandoverSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIMCPServer_pkey", - "schema": "public", - "table": "AIMCPServer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AnalyticsEmailTopic_pkey", - "schema": "public", - "table": "AnalyticsEmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Appointment_pkey", - "schema": "public", - "table": "Appointment", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendar_pkey", - "schema": "public", - "table": "AppointmentCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarAvailability_pkey", - "schema": "public", - "table": "AppointmentCalendarAvailability", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarReminder_pkey", - "schema": "public", - "table": "AppointmentCalendarReminder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentReminderDispatch_pkey", - "schema": "public", - "table": "AppointmentReminderDispatch", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Account_pkey", - "schema": "public", - "table": "Account", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Invitation_pkey", - "schema": "public", - "table": "Invitation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Jwk_pkey", - "schema": "public", - "table": "Jwk", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Session_pkey", - "schema": "public", - "table": "Session", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "User_pkey", - "schema": "public", - "table": "User", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Verification_pkey", - "schema": "public", - "table": "Verification", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AutomatedResponse_pkey", - "schema": "public", - "table": "AutomatedResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BotField_pkey", - "schema": "public", - "table": "BotField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Broadcast_pkey", - "schema": "public", - "table": "Broadcast", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrenceOccurrence_pkey", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Cart_pkey", - "schema": "public", - "table": "Cart", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ChannelPost_pkey", - "schema": "public", - "table": "ChannelPost", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CoexistSyncRun_pkey", - "schema": "public", - "table": "CoexistSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomation_pkey", - "schema": "public", - "table": "CommentAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationEvent_pkey", - "schema": "public", - "table": "CommentAutomationEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationMiss_pkey", - "schema": "public", - "table": "CommentAutomationMiss", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationReply_pkey", - "schema": "public", - "table": "CommentAutomationReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConnectSession_pkey", - "schema": "public", - "table": "ConnectSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Connection_pkey", - "schema": "public", - "table": "Connection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Contact_pkey", - "schema": "public", - "table": "Contact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactCustomField_pkey", - "schema": "public", - "table": "ContactCustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactInbox_pkey", - "schema": "public", - "table": "ContactInbox", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactNote_pkey", - "schema": "public", - "table": "ContactNote", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactOnSmartDelay_pkey", - "schema": "public", - "table": "ContactOnSmartDelay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Conversation_pkey", - "schema": "public", - "table": "Conversation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConversationParticipant_pkey", - "schema": "public", - "table": "ConversationParticipant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Coupon_pkey", - "schema": "public", - "table": "Coupon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CouponTopic_pkey", - "schema": "public", - "table": "CouponTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomField_pkey", - "schema": "public", - "table": "CustomField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionConnection_pkey", - "schema": "public", - "table": "DecisionConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionProfile_pkey", - "schema": "public", - "table": "DecisionProfile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCode_pkey", - "schema": "public", - "table": "DiscountCode", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DynamicImage_pkey", - "schema": "public", - "table": "DynamicImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceOpenHours_pkey", - "schema": "public", - "table": "EcommerceOpenHours", - "entityType": "pks" - }, - { - "columns": [ - "workspaceId" - ], - "nameExplicit": false, - "name": "EcommerceOrderCounter_pkey", - "schema": "public", - "table": "EcommerceOrderCounter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceSettings_pkey", - "schema": "public", - "table": "EcommerceSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EmailTopic_pkey", - "schema": "public", - "table": "EmailTopic", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AuditLog_pkey", - "schema": "public", - "table": "AuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomDomain_pkey", - "schema": "public", - "table": "CustomDomain", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "License_pkey", - "schema": "public", - "table": "License", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "PlatformAdmin_pkey", - "schema": "public", - "table": "PlatformAdmin", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tenant_pkey", - "schema": "public", - "table": "Tenant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TenantHelpItem_pkey", - "schema": "public", - "table": "TenantHelpItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserQuota_pkey", - "schema": "public", - "table": "UserQuota", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceUsage_pkey", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ErrorLog_pkey", - "schema": "public", - "table": "ErrorLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ExternalWebhook_pkey", - "schema": "public", - "table": "ExternalWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsAutomation_pkey", - "schema": "public", - "table": "FacebookLeadAdsAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookLeadAdsLead_pkey", - "schema": "public", - "table": "FacebookLeadAdsLead", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessage_pkey", - "schema": "public", - "table": "FacebookMarketingMessage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FacebookMarketingMessagesAuth_pkey", - "schema": "public", - "table": "FacebookMarketingMessagesAuth", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "File_pkey", - "schema": "public", - "table": "File", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Flow_pkey", - "schema": "public", - "table": "Flow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowAnalyticsSession_pkey", - "schema": "public", - "table": "FlowAnalyticsSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowNodeStat_pkey", - "schema": "public", - "table": "FlowNodeStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowRun_pkey", - "schema": "public", - "table": "FlowRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "FlowVersion_pkey", - "schema": "public", - "table": "FlowVersion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Folder_pkey", - "schema": "public", - "table": "Folder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsConversionEvent_pkey", - "schema": "public", - "table": "GoogleAdsConversionEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsSettings_pkey", - "schema": "public", - "table": "GoogleAdsSettings", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IgStoryAutomation_pkey", - "schema": "public", - "table": "IgStoryAutomation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Import_pkey", - "schema": "public", - "table": "Import", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhook_pkey", - "schema": "public", - "table": "InboundWebhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhookRequest_pkey", - "schema": "public", - "table": "InboundWebhookRequest", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Inbox_pkey", - "schema": "public", - "table": "Inbox", - "entityType": "pks" - }, - { - "columns": [ - "inboxId" - ], - "nameExplicit": false, - "name": "InboxContactStat_pkey", - "schema": "public", - "table": "InboxContactStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeam_pkey", - "schema": "public", - "table": "InboxTeam", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeamMember_pkey", - "schema": "public", - "table": "InboxTeamMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationActiveCampaign_pkey", - "schema": "public", - "table": "IntegrationActiveCampaign", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationApi_pkey", - "schema": "public", - "table": "IntegrationApi", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Integration_pkey", - "schema": "public", - "table": "Integration", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationClaude_pkey", - "schema": "public", - "table": "IntegrationClaude", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDeepseek_pkey", - "schema": "public", - "table": "IntegrationDeepseek", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationDrip_pkey", - "schema": "public", - "table": "IntegrationDrip", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationFacebookAds_pkey", - "schema": "public", - "table": "IntegrationFacebookAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGemini_pkey", - "schema": "public", - "table": "IntegrationGemini", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGetResponse_pkey", - "schema": "public", - "table": "IntegrationGetResponse", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleAds_pkey", - "schema": "public", - "table": "IntegrationGoogleAds", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleCalendar_pkey", - "schema": "public", - "table": "IntegrationGoogleCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleSheet_pkey", - "schema": "public", - "table": "IntegrationGoogleSheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationInstagram_pkey", - "schema": "public", - "table": "IntegrationInstagram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationKlaviyo_pkey", - "schema": "public", - "table": "IntegrationKlaviyo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailchimp_pkey", - "schema": "public", - "table": "IntegrationMailchimp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailerLite_pkey", - "schema": "public", - "table": "IntegrationMailerLite", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMessenger_pkey", - "schema": "public", - "table": "IntegrationMessenger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMetaCatalog_pkey", - "schema": "public", - "table": "IntegrationMetaCatalog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMoosend_pkey", - "schema": "public", - "table": "IntegrationMoosend", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenai_pkey", - "schema": "public", - "table": "IntegrationOpenai", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenaiCompatible_pkey", - "schema": "public", - "table": "IntegrationOpenaiCompatible", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenrouter_pkey", - "schema": "public", - "table": "IntegrationOpenrouter", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOutlookCalendar_pkey", - "schema": "public", - "table": "IntegrationOutlookCalendar", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSendGrid_pkey", - "schema": "public", - "table": "IntegrationSendGrid", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSmtp_pkey", - "schema": "public", - "table": "IntegrationSmtp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTelegram_pkey", - "schema": "public", - "table": "IntegrationTelegram", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationThreads_pkey", - "schema": "public", - "table": "IntegrationThreads", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTiktok_pkey", - "schema": "public", - "table": "IntegrationTiktok", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWebchat_pkey", - "schema": "public", - "table": "IntegrationWebchat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWhatsapp_pkey", - "schema": "public", - "table": "IntegrationWhatsapp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationZalo_pkey", - "schema": "public", - "table": "IntegrationZalo", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Leaderboard_pkey", - "schema": "public", - "table": "Leaderboard", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "LeaderboardAuditLog_pkey", - "schema": "public", - "table": "LeaderboardAuditLog", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MagicLink_pkey", - "schema": "public", - "table": "MagicLink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFile_pkey", - "schema": "public", - "table": "MediaLibraryFile", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MediaLibraryFolder_pkey", - "schema": "public", - "table": "MediaLibraryFolder", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageCleanup_pkey", - "schema": "public", - "table": "MessageCleanup", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdOperation_pkey", - "schema": "public", - "table": "MessagingAdOperation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessagingAdsConnection_pkey", - "schema": "public", - "table": "MessagingAdsConnection", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerMessageTemplate_pkey", - "schema": "public", - "table": "MessengerMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessengerWelcomeMessageFlow_pkey", - "schema": "public", - "table": "MessengerWelcomeMessageFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCapiEvent_pkey", - "schema": "public", - "table": "MetaCapiEvent", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogItem_pkey", - "schema": "public", - "table": "MetaCatalogItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MetaCatalogSyncRun_pkey", - "schema": "public", - "table": "MetaCatalogSyncRun", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniApp_pkey", - "schema": "public", - "table": "MiniApp", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppPublication_pkey", - "schema": "public", - "table": "MiniAppPublication", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppSubmission_pkey", - "schema": "public", - "table": "MiniAppSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppUpload_pkey", - "schema": "public", - "table": "MiniAppUpload", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Minigame_pkey", - "schema": "public", - "table": "Minigame", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigameContact_pkey", - "schema": "public", - "table": "MinigameContact", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigamePlay_pkey", - "schema": "public", - "table": "MinigamePlay", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCodeRedemption_pkey", - "schema": "public", - "table": "DiscountCodeRedemption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderItem_pkey", - "schema": "public", - "table": "OrderItem", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Order_pkey", - "schema": "public", - "table": "Order", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderStatusHistory_pkey", - "schema": "public", - "table": "OrderStatusHistory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Credential_pkey", - "schema": "public", - "table": "PlatformCredential", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Product_pkey", - "schema": "public", - "table": "Product", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductAddon_pkey", - "schema": "public", - "table": "ProductAddon", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductCategory_pkey", - "schema": "public", - "table": "ProductCategory", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariant_pkey", - "schema": "public", - "table": "ProductVariant", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariantOption_pkey", - "schema": "public", - "table": "ProductVariantOption", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireAnswer_pkey", - "schema": "public", - "table": "QuestionnaireAnswer", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Questionnaire_pkey", - "schema": "public", - "table": "Questionnaire", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireQuestion_pkey", - "schema": "public", - "table": "QuestionnaireQuestion", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireSubmission_pkey", - "schema": "public", - "table": "QuestionnaireSubmission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Reflink_pkey", - "schema": "public", - "table": "Reflink", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ResponseSlaPolicy_pkey", - "schema": "public", - "table": "ResponseSlaPolicy", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReply_pkey", - "schema": "public", - "table": "SavedReply", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReplyImage_pkey", - "schema": "public", - "table": "SavedReplyImage", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Sequence_pkey", - "schema": "public", - "table": "Sequence", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SequenceStep_pkey", - "schema": "public", - "table": "SequenceStep", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Spreadsheet_pkey", - "schema": "public", - "table": "Spreadsheet", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SystemField_pkey", - "schema": "public", - "table": "SystemField", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tag_pkey", - "schema": "public", - "table": "Tag", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TagChannel_pkey", - "schema": "public", - "table": "TagChannel", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TelegramChat_pkey", - "schema": "public", - "table": "TelegramChat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Template_pkey", - "schema": "public", - "table": "Template", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstallation_pkey", - "schema": "public", - "table": "TemplateInstallation", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstalledResource_pkey", - "schema": "public", - "table": "TemplateInstalledResource", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Trigger_pkey", - "schema": "public", - "table": "Trigger", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Condition_pkey", - "schema": "public", - "table": "Condition", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerExecution_pkey", - "schema": "public", - "table": "TriggerExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerStat_pkey", - "schema": "public", - "table": "TriggerStat", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserDeviceToken_pkey", - "schema": "public", - "table": "UserDeviceToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserPersistentMenu_pkey", - "schema": "public", - "table": "UserPersistentMenu", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Vendor_pkey", - "schema": "public", - "table": "Vendor", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Webhook_pkey", - "schema": "public", - "table": "Webhook", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WebhookExecution_pkey", - "schema": "public", - "table": "WebhookExecution", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappBusinessAccount_pkey", - "schema": "public", - "table": "WhatsappBusinessAccount", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCall_pkey", - "schema": "public", - "table": "WhatsappCall", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCallPermission_pkey", - "schema": "public", - "table": "WhatsappCallPermission", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappCoexistStaging_pkey", - "schema": "public", - "table": "WhatsappCoexistStaging", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappFlow_pkey", - "schema": "public", - "table": "WhatsappFlow", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappMessageTemplate_pkey", - "schema": "public", - "table": "WhatsappMessageTemplate", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WhatsappSignupSession_pkey", - "schema": "public", - "table": "WhatsappSignupSession", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHours_pkey", - "schema": "public", - "table": "WorkingHours", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursDateOverride_pkey", - "schema": "public", - "table": "WorkingHoursDateOverride", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursInterval_pkey", - "schema": "public", - "table": "WorkingHoursInterval", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursMember_pkey", - "schema": "public", - "table": "WorkingHoursMember", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Workspace_pkey", - "schema": "public", - "table": "Workspace", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceApiToken_pkey", - "schema": "public", - "table": "WorkspaceApiToken", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMac_pkey", - "schema": "public", - "table": "WorkspaceMac", - "entityType": "pks" - }, - { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMember_pkey", - "schema": "public", - "table": "WorkspaceMember", - "entityType": "pks" - }, - { - "nameExplicit": true, - "columns": [ - "contactInboxId", - "sourceId", - "createdAt" - ], - "nullsNotDistinct": false, - "name": "Message_source_dedup_idx", - "entityType": "uniques", - "schema": "public", - "table": "Message" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "parentId", - "name" - ], - "nullsNotDistinct": true, - "name": "ProductCategory_workspaceId_parent_name_key", - "entityType": "uniques", - "schema": "public", - "table": "ProductCategory" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "ResponseSlaPolicy_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "nameExplicit": true, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "UserDeviceToken_token_key", - "entityType": "uniques", - "schema": "public", - "table": "UserDeviceToken" - }, - { - "nameExplicit": true, - "columns": [ - "id", - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkingHours_id_workspaceId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHours" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "userId" - ], - "nullsNotDistinct": false, - "name": "WorkingHoursMember_workspaceId_userId_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkingHoursMember" - }, - { - "nameExplicit": true, - "columns": [ - "tokenHash" - ], - "nullsNotDistinct": false, - "name": "WorkspaceApiToken_tokenHash_key", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceApiToken" - }, - { - "nameExplicit": true, - "columns": [ - "workspaceId", - "periodStart", - "periodEnd" - ], - "nullsNotDistinct": false, - "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", - "entityType": "uniques", - "schema": "public", - "table": "WorkspaceMac" - }, - { - "nameExplicit": false, - "columns": [ - "userId" - ], - "nullsNotDistinct": false, - "name": "UserQuota_userId_key", - "schema": "public", - "table": "UserQuota", - "entityType": "uniques" - }, - { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkspaceUsage_workspaceId_key", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "uniques" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", - "name": "AdsConversionEvent_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", - "name": "Broadcast_occurrence_pair_check", - "entityType": "checks", - "schema": "public", - "table": "Broadcast" - }, - { - "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", - "name": "ConnectSession_actor_at_most_one", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", - "name": "ConnectSession_status_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", - "name": "ConnectSession_purpose_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", - "name": "ConnectSession_errorCode_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", - "name": "ConnectSession_errorCode_terminal_failure_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", - "name": "ConnectSession_terminal_consumedAt_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", - "name": "ConnectSession_terminal_clears_encryptedAuth_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", - "name": "ConnectSession_active_reconnect_requires_target_check", - "entityType": "checks", - "schema": "public", - "table": "ConnectSession" - }, - { - "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", - "name": "Connection_kind_relation_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", - "name": "Connection_inbox_integration_exclusive_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"kind\" IN ('channel', 'integration')", - "name": "Connection_kind_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", - "name": "Connection_status_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", - "name": "Connection_statusReason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", - "name": "Connection_status_reason_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", - "name": "Connection_disconnectedAt_check", - "entityType": "checks", - "schema": "public", - "table": "Connection" - }, - { - "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", - "name": "DiscountCode_usedCount_check", - "entityType": "checks", - "schema": "public", - "table": "DiscountCode" - }, - { - "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", - "name": "EcommerceSettings_serviceFeePercent_check", - "entityType": "checks", - "schema": "public", - "table": "EcommerceSettings" - }, - { - "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sent_requires_request_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sending_requires_claim_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", - "name": "GoogleAdsConversionEvent_processing_status_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", - "name": "GoogleAdsConversionEvent_failure_stage_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", - "name": "GoogleAdsConversionEvent_value_currency_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"value\" IS NULL OR \"value\" >= 0", - "name": "GoogleAdsConversionEvent_value_non_negative_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "length(\"clickId\") BETWEEN 10 AND 512", - "name": "GoogleAdsConversionEvent_clickId_length_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", - "name": "GoogleAdsConversionEvent_uploadMethod_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", - "name": "GoogleAdsConversionEvent_attempt_check", - "entityType": "checks", - "schema": "public", - "table": "GoogleAdsConversionEvent" - }, - { - "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", - "name": "IntegrationWhatsapp_registrationStatus_error_consistent", - "entityType": "checks", - "schema": "public", - "table": "IntegrationWhatsapp" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdOperation_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdOperation" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdsConnection_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "MessagingAdsConnection" - }, - { - "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", - "name": "MetaCapiEvent_channel_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", - "name": "MetaCapiEvent_actionSource_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "\"contentType\" IN ('product', 'product_group')", - "name": "MetaCapiEvent_contentType_check", - "entityType": "checks", - "schema": "public", - "table": "MetaCapiEvent" - }, - { - "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", - "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", - "entityType": "checks", - "schema": "public", - "table": "QuestionnaireQuestion" - }, - { - "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", - "name": "ResponseSlaPolicy_targets_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", - "name": "ResponseSlaPolicy_threshold_check", - "entityType": "checks", - "schema": "public", - "table": "ResponseSlaPolicy" - }, - { - "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", - "name": "Vendor_discountPercent_check", - "entityType": "checks", - "schema": "public", - "table": "Vendor" - }, - { - "value": "cardinality(\"candidatePhoneNumberIds\") > 0", - "name": "WhatsappSignupSession_candidates_not_empty", - "entityType": "checks", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "value": "\"weekday\" BETWEEN 0 AND 6", - "name": "WorkingHoursInterval_weekday_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - }, - { - "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", - "name": "WorkingHoursInterval_minutes_check", - "entityType": "checks", - "schema": "public", - "table": "WorkingHoursInterval" - } - ], - "renames": [] -} \ No newline at end of file diff --git a/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql b/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql deleted file mode 100644 index 3e1866fe62..0000000000 --- a/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ -DROP INDEX "WorkspaceDeletionRecord_workspaceName_idx";--> statement-breakpoint -DROP INDEX "WorkspaceDeletionRecord_deletionRequestedByEmail_idx"; \ No newline at end of file diff --git a/packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql b/packages/database/drizzle/20261025020711_add_workspace_purge_partitioned_indexes/migration.sql similarity index 100% rename from packages/database/drizzle/20261024091012_add_purge_fk_indexes_partitioned/migration.sql rename to packages/database/drizzle/20261025020711_add_workspace_purge_partitioned_indexes/migration.sql diff --git a/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/snapshot.json b/packages/database/drizzle/20261025020711_add_workspace_purge_partitioned_indexes/snapshot.json similarity index 81% rename from packages/database/drizzle/20261024103711_add_workspace_purge_indexes/snapshot.json rename to packages/database/drizzle/20261025020711_add_workspace_purge_partitioned_indexes/snapshot.json index ca55e7ac98..ab6933e83e 100644 --- a/packages/database/drizzle/20261024103711_add_workspace_purge_indexes/snapshot.json +++ b/packages/database/drizzle/20261025020711_add_workspace_purge_partitioned_indexes/snapshot.json @@ -1,12 +1,13 @@ { - "version": "8", - "dialect": "postgres", - "id": "e49563dc-20d4-4b98-9f88-db1819b4eb62", + "id": "9ca0f238-71f7-4aba-a8a8-8bdc3b0bb367", "prevIds": [ - "40cf9d2a-d989-4410-a8f6-1ba0485e39de" + "edf6de11-00e6-44b1-8ce9-4a886d9a7a65" ], + "version": "8", + "dialect": "postgres", "ddl": [ { + "schema": "public", "values": [ "pending", "sent", @@ -15,20 +16,20 @@ "skipped_region" ], "name": "adsConversionCapiStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "automatic", "rule", "trigger" ], "name": "adsConversionEventSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "whatsapp", "facebook", @@ -36,19 +37,19 @@ "instagram" ], "name": "adsConversionChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "lead", "purchase" ], "name": "adsConversionEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "success", @@ -56,10 +57,10 @@ "processing" ], "name": "aiConversationEmbeddingStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "processing", @@ -67,10 +68,10 @@ "error" ], "name": "aiConversationSourceStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "document", "image", @@ -78,10 +79,10 @@ "web_search" ], "name": "aiConversationSourceType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "success", @@ -89,19 +90,19 @@ "processing" ], "name": "aiEmbeddingStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "enable", "disable" ], "name": "aiHandoverBulkAction", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "running", @@ -111,10 +112,10 @@ "cancelled" ], "name": "aiHandoverBulkStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "automated_response", "ai_agent", @@ -122,29 +123,29 @@ "none" ], "name": "analyticsBotResponseType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "success", "fallback" ], "name": "analyticsBotResult", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "flow", "agent", "fallback" ], "name": "analyticsBotRouteType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "message:sent", "message:delivered", @@ -153,29 +154,29 @@ "flow:clicked" ], "name": "analyticsBroadcastEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "contact_created", "contact_deleted", "contact_blocked" ], "name": "analyticsContactEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "bot", "human" ], "name": "analyticsContactSenderType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "conversation_created", "conversation_assigned", @@ -188,68 +189,68 @@ "conversation_unarchived" ], "name": "analyticsConversationEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "message_human_sent", "message_bot_sent" ], "name": "analyticsMessageEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "processing", "ingested", "failed" ], "name": "analyticsStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "synced", "failed" ], "name": "appointmentExternalSyncStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inPerson", "phoneCall", "onlineMeeting" ], "name": "appointmentLocationTypeSnapshot", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "scheduled", "cancelled" ], "name": "appointmentStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inPerson", "phoneCall", "onlineMeeting" ], "name": "appointmentLocationType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "rollingDays", "dateRange", @@ -257,20 +258,20 @@ "anyFutureDate" ], "name": "appointmentScheduleWindowType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "minutes", "hours", "days" ], "name": "appointmentReminderTimingUnit", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "sent", @@ -278,10 +279,10 @@ "failed" ], "name": "appointmentReminderDispatchStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "image", "video", @@ -290,37 +291,37 @@ "file" ], "name": "fileType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inbound", "outbound" ], "name": "automatedResponseType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "defaultReply" ], "name": "automationThrottleType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "now", "future", "recurring" ], "name": "broadcastScheduleType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "scheduled", "sent", @@ -331,20 +332,20 @@ "recurring" ], "name": "broadcastStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "created", "skipped", "missed" ], "name": "broadcastOccurrenceOutcome", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "catchUpSuperseded", "paused", @@ -356,29 +357,29 @@ "excludedDate" ], "name": "broadcastOccurrenceReason", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "whatsapp", "messenger", "instagram" ], "name": "coexistChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "contacts", "messages" ], "name": "coexistMessengerSyncPhase", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "init", "running", @@ -388,19 +389,19 @@ "waiting" ], "name": "coexistRunStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "coexist", "contact_scan" ], "name": "coexistRunType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "messenger", "instagram", @@ -409,37 +410,37 @@ "tiktok" ], "name": "commentAutomationType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "equal", "contain" ], "name": "commentExcludeKeywordsType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "sent", "failed" ], "name": "commentAutomationEventStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "public", "private" ], "name": "commentAutomationReplyChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "AIAgent", "text", @@ -447,10 +448,10 @@ "none" ], "name": "commentAutomationReplyType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "outsideSchedule", "postNotMatched", @@ -462,20 +463,20 @@ "engagedOnOtherPost" ], "name": "commentAutomationMissReason", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "male", "female", "unknown" ], "name": "gender", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "captured", @@ -483,10 +484,10 @@ "failed" ], "name": "contactInboxProfileSnapshotState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "text", "location", @@ -499,10 +500,10 @@ "storyMention" ], "name": "lastUserInputType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inboundReceived", "standbyReceived", @@ -515,20 +516,20 @@ "serviceRejected" ], "name": "threadControlEvent", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "owned", "standby", "idle" ], "name": "threadControlState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "scheduled", @@ -537,29 +538,29 @@ "canceled" ], "name": "ContactOnSmartDelayStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "waitNode", "followUp", "quickReplyFollowUp" ], "name": "ContactOnSmartDelayType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "active", "archived" ], "name": "couponTopicStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "shortText", "email", @@ -571,171 +572,67 @@ "longText" ], "name": "customFieldType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "enabled", "disabled" ], "name": "DecisionConnectionStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "passed", "failed" ], "name": "DecisionConnectionTestStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "typesafe", "systemOneCompatible", "openrouterDecision" ], "name": "DecisionProviderKind", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "enabled", "disabled" ], "name": "DecisionProfileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "entireOrder", - "category", - "products" - ], - "name": "discountAppliesTo", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "everyone", - "specificCustomers" - ], - "name": "discountEligibility", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "amount", - "quantity" - ], - "name": "discountMinimumType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "percentage", - "fixedAmount", - "freeShipping" - ], - "name": "discountType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "externalLink", - "flow", - "productPage" - ], - "name": "checkoutMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "left", - "leftSpace", - "right", - "rightSpace" - ], - "name": "currencyPosition", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "flow", - "none" - ], - "name": "orderConfirmationMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bigSquare", - "mediumRectangle" - ], - "name": "productImageSize", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "delivery", - "pickup", - "deliveryAndPickup" - ], - "name": "shippingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "list", - "listWithoutImage", - "card", - "cardSquare", - "image", - "imageSquare" - ], - "name": "webshopProductView", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "import", "generic", "export" ], "name": "fileContextType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "uploaded", "failed" ], "name": "fileStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "tag", "flow", @@ -751,28 +648,28 @@ "outboundAutomatedResponse" ], "name": "folderType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "gclid", "gbraid" ], "name": "googleAdsClickIdType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "flowStep", "triggerAction" ], "name": "googleAdsEventSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "sending", @@ -783,20 +680,20 @@ "skipped_expired" ], "name": "googleAdsEventStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "delivery", "processing", "timeout" ], "name": "googleAdsFailureStage", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "processing", "success", @@ -806,28 +703,28 @@ "timed_out" ], "name": "googleAdsProcessingStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "storyReply", "storyMention" ], "name": "igStoryAutomationTrigger", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "instagram", "instagramFacebook" ], "name": "igStoryAutomationType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "csv", "xlsx", @@ -835,10 +732,10 @@ "json" ], "name": "importFormat", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "processing", @@ -846,10 +743,10 @@ "failed" ], "name": "importStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "contacts", "coupons", @@ -857,10 +754,10 @@ "flow" ], "name": "importType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "received", "processing", @@ -870,28 +767,28 @@ "failed" ], "name": "inboundWebhookRequestStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "oauth", "fbe" ], "name": "metaCatalogAuthMode", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "active", "invalid" ], "name": "metaCatalogConnectionStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "idle", "queued", @@ -901,38 +798,38 @@ "failed" ], "name": "metaCatalogImportStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "metaNative", "browserWhisper" ], "name": "whatsappCallRecordingMode", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "metaNative", "browserWhisper" ], "name": "whatsappCallTranscriptionMode", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending_verification", "registered", "failed" ], "name": "whatsappRegistrationStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "messenger", "instagram", @@ -945,10 +842,10 @@ "gamification" ], "name": "leaderboardPlatform", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "draft", "active", @@ -956,10 +853,10 @@ "finished" ], "name": "leaderboardStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "adjust", "resetOne", @@ -968,10 +865,10 @@ "unban" ], "name": "leaderboardAuditAction", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "rule", "flow", @@ -980,39 +877,39 @@ "reset" ], "name": "leaderboardScoreSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "text", "location", "refLink" ], "name": "contentType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "message", "comment" ], "name": "messageKind", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "incoming", "outgoing", "activity" ], "name": "messageType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "bot", "contact", @@ -1021,10 +918,10 @@ "api" ], "name": "senderType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "processing", @@ -1032,20 +929,20 @@ "failed" ], "name": "MessageCleanupStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "whatsapp", "messenger", "instagram" ], "name": "messagingAdChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "campaignCreated", @@ -1055,10 +952,10 @@ "failed" ], "name": "messagingAdCreateState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "draft", "publishing", @@ -1070,29 +967,29 @@ "publishFailed" ], "name": "messagingAdPublishState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "push", "import" ], "name": "metaCatalogItemDirection", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "all", "category", "selected" ], "name": "metaCatalogSyncScope", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "queued", "running", @@ -1101,27 +998,27 @@ "failed" ], "name": "metaCatalogSyncStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "web" ], "name": "miniAppSubmissionSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "submitted" ], "name": "miniAppUploadStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "luckyWheel", "jackpot", @@ -1130,79 +1027,19 @@ "scratchOff" ], "name": "minigameType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "user", - "apiToken", - "system", - "contact" - ], - "name": "orderActorType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "webshop", - "api", - "manual" - ], - "name": "orderSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "accepted", - "shipped", - "concluded", - "cancelled" - ], - "name": "orderStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "cod" - ], - "name": "paymentMethod", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "unpaid", - "paid", - "refunded" - ], - "name": "paymentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "pickup" - ], - "name": "shippingType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "dont_track", "track" ], "name": "inventoryPolicy", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "text", "number", @@ -1217,10 +1054,10 @@ "websiteLink" ], "name": "questionnaireQuestionType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inProgress", "completed", @@ -1229,27 +1066,27 @@ "timeout" ], "name": "questionnaireSubmissionStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "refLink", "qrCode" ], "name": "ReflinkType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "me" ], "name": "SystemFieldType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "creator", "administrator", @@ -1259,10 +1096,10 @@ "kicked" ], "name": "telegramBotChatStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "private", "group", @@ -1270,10 +1107,10 @@ "channel" ], "name": "telegramChatType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "installing", @@ -1282,10 +1119,10 @@ "failed" ], "name": "templateInstallationStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "flows", "products", @@ -1303,28 +1140,28 @@ "productCategories" ], "name": "templateResourceCategory", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "ios", "android" ], "name": "devicePlatform", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "userInitiated", "businessInitiated" ], "name": "whatsappCallDirection", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "completed", "failed", @@ -1332,10 +1169,10 @@ "canceled" ], "name": "whatsappCallOutcome", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "ringing", "accepted", @@ -1344,1349 +1181,1290 @@ "failed" ], "name": "whatsappCallStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "accept", "reject" ], "name": "whatsappCallPermissionResponse", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "allTime", "oncePerHour", "oncePerDay" ], "name": "defaultReplyFrequency", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "full", "read_only" ], "name": "WorkspaceApiTokenPermission", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "owner", "agent" ], "name": "workspaceMemberRole", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessageShard", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ShardTimeRange", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AdsConversionEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AdsConversionRule", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIAgent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIConversationEmbedding", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIConversationSource", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIEmbedding", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIFile", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIFunction", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIHandoverBulkRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIHandoverSettings", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIMCPServer", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsAgentResponseEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsBotMessageEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsBroadcastEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsContactEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsConversationEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsFlowNodeEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsMessageEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsSequenceEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsEmailTopic", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsManifestStatus", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Appointment", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentCalendar", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentCalendarAvailability", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentCalendarReminder", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentReminderDispatch", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Attachment", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Account", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Invitation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Jwk", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Session", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "User", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Verification", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AutomatedResponse", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AutomationThrottle", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BotField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Broadcast", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BroadcastRecurrence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BroadcastRecurrenceOccurrence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BroadcastTarget", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Cart", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ChannelPost", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CoexistSyncRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomationEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomationMiss", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomationReply", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ConnectSession", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Connection", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Contact", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactActiveHourly", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactActiveMonthly", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactCustomField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactInbox", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactInboxPost", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactNote", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactOnBroadcast", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactOnSequence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactOnSmartDelay", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactToTag", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactToTagChannel", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Conversation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ConversationParticipant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Coupon", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CouponTopic", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CustomField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "DecisionConnection", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "DecisionProfile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCode", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "DynamicImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOpenHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOrderCounter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceSettings", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "EmailTopic", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AuditLog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CustomDomain", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "License", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "PlatformAdmin", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Tenant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TenantHelpItem", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "UserQuota", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceUsage", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ErrorLog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ExternalWebhook", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookLeadAdsAutomation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookLeadAdsLead", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookMarketingMessage", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookMarketingMessagesAuth", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "File", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Flow", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowAnalyticsSession", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowNodeStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowVersion", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Folder", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "GoogleAdsConversionEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "GoogleAdsSettings", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IgStoryAutomation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Import", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboundWebhook", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboundWebhookRequest", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Inbox", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboxContactStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboxTeam", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboxTeamMember", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationActiveCampaign", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationApi", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Integration", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationClaude", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationDeepseek", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationDrip", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationFacebookAds", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGemini", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGetResponse", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGoogleAds", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGoogleCalendar", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGoogleSheet", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationInstagram", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationKlaviyo", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMailchimp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMailerLite", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMessenger", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMetaCatalog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMoosend", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOpenai", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOpenaiCompatible", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOpenrouter", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOutlookCalendar", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationSendGrid", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationSmtp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationTelegram", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationThreads", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationTiktok", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationWebchat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationWhatsapp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationZalo", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Leaderboard", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "LeaderboardAuditLog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "LeaderboardParticipant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "LeaderboardScoreEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MagicLink", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MagicLinkStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MediaLibraryFile", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MediaLibraryFolder", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Message", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessageCleanup", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessagingAdOperation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessagingAdsConnection", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessengerMessageTemplate", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessengerWelcomeMessageFlow", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MetaCapiEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MetaCatalogItem", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MetaCatalogSyncRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniApp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniAppPublication", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniAppSubmission", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniAppUpload", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Minigame", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MinigameContact", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MinigamePlay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCodeRedemption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Order", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderStatusHistory", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "PlatformCredential", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Product", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductAddon", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductCategory", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductVariant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductVariantOption", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "QuestionnaireAnswer", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Questionnaire", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "QuestionnaireQuestion", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "QuestionnaireSubmission", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "RefLinkStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Reflink", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ResponseSlaPolicy", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SavedReply", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SavedReplyImage", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Sequence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SequenceDispatch", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SequenceStep", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Spreadsheet", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SystemField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Tag", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TagChannel", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TelegramChat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Template", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TemplateInstallation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TemplateInstalledResource", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Trigger", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Condition", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TriggerContactHistory", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TriggerExecution", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TriggerStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "UserDeviceToken", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "UserPersistentMenu", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Vendor", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Webhook", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WebhookExecution", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappBusinessAccount", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappCall", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappCallPermission", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappCoexistStaging", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappFlow", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappMessageTemplate", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappSignupSession", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHours", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHoursDateOverride", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHoursInterval", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHoursMember", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Workspace", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceApiToken", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceMac", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceMember", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", + "table": "MessageShard", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2695,11 +2473,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2708,11 +2486,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2721,11 +2499,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2734,11 +2512,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2747,11 +2525,11 @@ "generated": null, "identity": null, "name": "host", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "integer", "typeSchema": null, "notNull": false, @@ -2760,11 +2538,11 @@ "generated": null, "identity": null, "name": "port", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2773,11 +2551,11 @@ "generated": null, "identity": null, "name": "database", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2786,11 +2564,11 @@ "generated": null, "identity": null, "name": "user", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": false, @@ -2799,11 +2577,11 @@ "generated": null, "identity": null, "name": "credentialRef", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": false, @@ -2812,11 +2590,11 @@ "generated": null, "identity": null, "name": "sslMode", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "boolean", "typeSchema": null, "notNull": false, @@ -2825,11 +2603,11 @@ "generated": null, "identity": null, "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "boolean", "typeSchema": null, "notNull": false, @@ -2838,11 +2616,11 @@ "generated": null, "identity": null, "name": "isMain", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "integer", "typeSchema": null, "notNull": false, @@ -2851,11 +2629,11 @@ "generated": null, "identity": null, "name": "shardKey", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": false, @@ -2864,11 +2642,11 @@ "generated": null, "identity": null, "name": "readHost", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "integer", "typeSchema": null, "notNull": false, @@ -2877,11 +2655,11 @@ "generated": null, "identity": null, "name": "readPort", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2890,11 +2668,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2903,11 +2681,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2916,11 +2694,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2929,11 +2707,11 @@ "generated": null, "identity": null, "name": "shardId", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2942,11 +2720,11 @@ "generated": null, "identity": null, "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -2955,11 +2733,11 @@ "generated": null, "identity": null, "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2968,11 +2746,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2981,11 +2759,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2994,11 +2772,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3007,11 +2785,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionChannel", "typeSchema": "public", "notNull": true, @@ -3020,11 +2798,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3033,11 +2811,11 @@ "generated": null, "identity": null, "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3046,11 +2824,11 @@ "generated": null, "identity": null, "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3059,11 +2837,11 @@ "generated": null, "identity": null, "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3072,11 +2850,11 @@ "generated": null, "identity": null, "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionEventSource", "typeSchema": "public", "notNull": true, @@ -3085,11 +2863,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionEventType", "typeSchema": "public", "notNull": true, @@ -3098,11 +2876,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3111,11 +2889,11 @@ "generated": null, "identity": null, "name": "ctwaClid", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3124,11 +2902,11 @@ "generated": null, "identity": null, "name": "adId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3137,11 +2915,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3150,11 +2928,11 @@ "generated": null, "identity": null, "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "numeric", "typeSchema": null, "notNull": false, @@ -3163,11 +2941,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3176,11 +2954,11 @@ "generated": null, "identity": null, "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -3189,11 +2967,11 @@ "generated": null, "identity": null, "name": "contents", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3202,11 +2980,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -3215,11 +2993,11 @@ "generated": null, "identity": null, "name": "sourceEventId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionCapiStatus", "typeSchema": "public", "notNull": true, @@ -3228,11 +3006,11 @@ "generated": null, "identity": null, "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -3241,11 +3019,11 @@ "generated": null, "identity": null, "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3254,11 +3032,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3267,11 +3045,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3280,11 +3058,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3293,11 +3071,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "adsConversionChannel", "typeSchema": "public", "notNull": true, @@ -3306,11 +3084,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3319,11 +3097,11 @@ "generated": null, "identity": null, "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3332,11 +3110,11 @@ "generated": null, "identity": null, "name": "integrationFacebookAdsId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3345,11 +3123,11 @@ "generated": null, "identity": null, "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3358,11 +3136,11 @@ "generated": null, "identity": null, "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "text", "typeSchema": null, "notNull": false, @@ -3371,11 +3149,11 @@ "generated": null, "identity": null, "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "adsConversionEventType", "typeSchema": "public", "notNull": true, @@ -3384,11 +3162,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3397,11 +3175,11 @@ "generated": null, "identity": null, "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "text", "typeSchema": null, "notNull": false, @@ -3410,11 +3188,11 @@ "generated": null, "identity": null, "name": "markAs", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "boolean", "typeSchema": null, "notNull": true, @@ -3423,11 +3201,11 @@ "generated": null, "identity": null, "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3436,11 +3214,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3449,11 +3227,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3462,11 +3240,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3475,11 +3253,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": true, @@ -3488,11 +3266,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": false, @@ -3501,11 +3279,11 @@ "generated": null, "identity": null, "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": false, @@ -3514,11 +3292,11 @@ "generated": null, "identity": null, "name": "actionPrompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3527,11 +3305,11 @@ "generated": null, "identity": null, "name": "actionRules", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3540,11 +3318,11 @@ "generated": null, "identity": null, "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -3553,11 +3331,11 @@ "generated": null, "identity": null, "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -3566,11 +3344,11 @@ "generated": null, "identity": null, "name": "isRichResponse", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": true, @@ -3579,11 +3357,11 @@ "generated": null, "identity": null, "name": "tools", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": true, @@ -3592,11 +3370,11 @@ "generated": null, "identity": null, "name": "webSearchAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3605,11 +3383,11 @@ "generated": null, "identity": null, "name": "models", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "double precision", "typeSchema": null, "notNull": true, @@ -3618,11 +3396,11 @@ "generated": null, "identity": null, "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "integer", "typeSchema": null, "notNull": true, @@ -3631,11 +3409,11 @@ "generated": null, "identity": null, "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3644,11 +3422,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3657,11 +3435,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3670,11 +3448,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3683,11 +3461,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3696,11 +3474,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3709,11 +3487,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "integer", "typeSchema": null, "notNull": true, @@ -3722,11 +3500,11 @@ "generated": null, "identity": null, "name": "chunkIndex", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "text", "typeSchema": null, "notNull": true, @@ -3735,11 +3513,11 @@ "generated": null, "identity": null, "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "vector(1536)", "typeSchema": null, "notNull": false, @@ -3748,11 +3526,11 @@ "generated": null, "identity": null, "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "aiConversationEmbeddingStatus", "typeSchema": "public", "notNull": true, @@ -3761,11 +3539,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "text", "typeSchema": null, "notNull": false, @@ -3774,11 +3552,11 @@ "generated": null, "identity": null, "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3787,11 +3565,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3800,11 +3578,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3813,11 +3591,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3826,11 +3604,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3839,11 +3617,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3852,11 +3630,11 @@ "generated": null, "identity": null, "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3865,11 +3643,11 @@ "generated": null, "identity": null, "name": "attachmentId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "aiConversationSourceType", "typeSchema": "public", "notNull": true, @@ -3878,11 +3656,11 @@ "generated": null, "identity": null, "name": "sourceType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "aiConversationSourceStatus", "typeSchema": "public", "notNull": true, @@ -3891,11 +3669,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": true, @@ -3904,11 +3682,11 @@ "generated": null, "identity": null, "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3917,11 +3695,11 @@ "generated": null, "identity": null, "name": "contentHash", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3930,11 +3708,11 @@ "generated": null, "identity": null, "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3943,11 +3721,11 @@ "generated": null, "identity": null, "name": "title", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -3956,11 +3734,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3969,11 +3747,11 @@ "generated": null, "identity": null, "name": "summary", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3982,11 +3760,11 @@ "generated": null, "identity": null, "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3995,11 +3773,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4008,11 +3786,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4021,11 +3799,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "text", "typeSchema": null, "notNull": true, @@ -4034,11 +3812,11 @@ "generated": null, "identity": null, "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "vector(1536)", "typeSchema": null, "notNull": false, @@ -4047,11 +3825,11 @@ "generated": null, "identity": null, "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "aiEmbeddingStatus", "typeSchema": "public", "notNull": true, @@ -4060,11 +3838,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4073,11 +3851,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4086,11 +3864,11 @@ "generated": null, "identity": null, "name": "aiFileId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4099,11 +3877,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4112,11 +3890,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4125,11 +3903,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "text", "typeSchema": null, "notNull": true, @@ -4138,11 +3916,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "text", "typeSchema": null, "notNull": true, @@ -4151,11 +3929,11 @@ "generated": null, "identity": null, "name": "path", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "integer", "typeSchema": null, "notNull": true, @@ -4164,11 +3942,11 @@ "generated": null, "identity": null, "name": "size", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "text", "typeSchema": null, "notNull": true, @@ -4177,11 +3955,11 @@ "generated": null, "identity": null, "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4190,11 +3968,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4203,11 +3981,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4216,11 +3994,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4229,11 +4007,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "text", "typeSchema": null, "notNull": true, @@ -4242,11 +4020,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "text", "typeSchema": null, "notNull": false, @@ -4255,11 +4033,11 @@ "generated": null, "identity": null, "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -4268,11 +4046,11 @@ "generated": null, "identity": null, "name": "dataCollect", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "text", "typeSchema": null, "notNull": false, @@ -4281,11 +4059,11 @@ "generated": null, "identity": null, "name": "outputMessage", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4294,11 +4072,11 @@ "generated": null, "identity": null, "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4307,11 +4085,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4320,11 +4098,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4333,11 +4111,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4346,11 +4124,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4359,11 +4137,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4372,11 +4150,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": true, @@ -4385,11 +4163,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4398,11 +4176,11 @@ "generated": null, "identity": null, "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "aiHandoverBulkAction", "typeSchema": "public", "notNull": true, @@ -4411,11 +4189,11 @@ "generated": null, "identity": null, "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "aiHandoverBulkStatus", "typeSchema": "public", "notNull": true, @@ -4424,11 +4202,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4437,11 +4215,11 @@ "generated": null, "identity": null, "name": "message", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4450,11 +4228,11 @@ "generated": null, "identity": null, "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4463,11 +4241,11 @@ "generated": null, "identity": null, "name": "requestedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4476,11 +4254,11 @@ "generated": null, "identity": null, "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4489,11 +4267,11 @@ "generated": null, "identity": null, "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4502,11 +4280,11 @@ "generated": null, "identity": null, "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4515,11 +4293,11 @@ "generated": null, "identity": null, "name": "pausedUntil", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4528,11 +4306,11 @@ "generated": null, "identity": null, "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4541,11 +4319,11 @@ "generated": null, "identity": null, "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4554,11 +4332,11 @@ "generated": null, "identity": null, "name": "chunkSeq", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": false, @@ -4567,11 +4345,11 @@ "generated": null, "identity": null, "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4580,11 +4358,11 @@ "generated": null, "identity": null, "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4593,11 +4371,11 @@ "generated": null, "identity": null, "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4606,11 +4384,11 @@ "generated": null, "identity": null, "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4619,11 +4397,11 @@ "generated": null, "identity": null, "name": "cursorContactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4632,11 +4410,11 @@ "generated": null, "identity": null, "name": "inFlightFromId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4645,11 +4423,11 @@ "generated": null, "identity": null, "name": "inFlightToId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4658,11 +4436,11 @@ "generated": null, "identity": null, "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4671,11 +4449,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4684,11 +4462,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4697,11 +4475,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4710,11 +4488,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4723,11 +4501,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "text", "typeSchema": null, "notNull": true, @@ -4736,11 +4514,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4749,11 +4527,11 @@ "generated": null, "identity": null, "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4762,11 +4540,11 @@ "generated": null, "identity": null, "name": "scheduleEnabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -4775,11 +4553,11 @@ "generated": null, "identity": null, "name": "timeRanges", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4788,11 +4566,11 @@ "generated": null, "identity": null, "name": "gotoFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "text", "typeSchema": null, "notNull": false, @@ -4801,11 +4579,11 @@ "generated": null, "identity": null, "name": "returnMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4814,11 +4592,11 @@ "generated": null, "identity": null, "name": "pauseBotWaitingForStaff", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4827,11 +4605,11 @@ "generated": null, "identity": null, "name": "applyToAllCustomers", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "integer", "typeSchema": null, "notNull": true, @@ -4840,11 +4618,11 @@ "generated": null, "identity": null, "name": "applyToAllRevision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "text", "typeSchema": null, "notNull": false, @@ -4853,11 +4631,11 @@ "generated": null, "identity": null, "name": "applyToAllMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4866,11 +4644,11 @@ "generated": null, "identity": null, "name": "applyToAllRequestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4879,11 +4657,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4892,11 +4670,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4905,11 +4683,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "text", "typeSchema": null, "notNull": true, @@ -4918,11 +4696,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "text", "typeSchema": null, "notNull": true, @@ -4931,11 +4709,11 @@ "generated": null, "identity": null, "name": "url", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -4944,11 +4722,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -4957,11 +4735,11 @@ "generated": null, "identity": null, "name": "availableTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "text", "typeSchema": null, "notNull": true, @@ -4970,11 +4748,11 @@ "generated": null, "identity": null, "name": "selectedTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4983,11 +4761,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -4996,11 +4774,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5009,11 +4787,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5022,11 +4800,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5035,11 +4813,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5048,11 +4826,11 @@ "generated": null, "identity": null, "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5061,11 +4839,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5074,11 +4852,11 @@ "generated": null, "identity": null, "name": "awaitingSince", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5087,11 +4865,11 @@ "generated": null, "identity": null, "name": "measuredFrom", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "integer", "typeSchema": null, "notNull": true, @@ -5100,11 +4878,11 @@ "generated": null, "identity": null, "name": "responseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "integer", "typeSchema": null, "notNull": false, @@ -5113,11 +4891,11 @@ "generated": null, "identity": null, "name": "workingResponseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -5126,11 +4904,11 @@ "generated": null, "identity": null, "name": "isFirstResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5139,11 +4917,11 @@ "generated": null, "identity": null, "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "integer", "typeSchema": null, "notNull": false, @@ -5152,11 +4930,11 @@ "generated": null, "identity": null, "name": "slaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "boolean", "typeSchema": null, "notNull": false, @@ -5165,11 +4943,11 @@ "generated": null, "identity": null, "name": "slaMet", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5178,11 +4956,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5191,11 +4969,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5204,11 +4982,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5217,11 +4995,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5230,11 +5008,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5243,11 +5021,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5256,11 +5034,11 @@ "generated": null, "identity": null, "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5269,11 +5047,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5282,11 +5060,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -5295,11 +5073,11 @@ "generated": null, "identity": null, "name": "hasResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "analyticsBotResponseType", "typeSchema": "public", "notNull": false, @@ -5308,11 +5086,11 @@ "generated": null, "identity": null, "name": "responseType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "analyticsBotRouteType", "typeSchema": "public", "notNull": false, @@ -5321,11 +5099,11 @@ "generated": null, "identity": null, "name": "routeType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "analyticsBotResult", "typeSchema": "public", "notNull": false, @@ -5334,11 +5112,11 @@ "generated": null, "identity": null, "name": "result", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5347,11 +5125,11 @@ "generated": null, "identity": null, "name": "aiProvider", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5360,11 +5138,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5373,11 +5151,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5386,11 +5164,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5399,11 +5177,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5412,11 +5190,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5425,11 +5203,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5438,11 +5216,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5451,11 +5229,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "analyticsBroadcastEventType", "typeSchema": "public", "notNull": true, @@ -5464,11 +5242,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5477,11 +5255,11 @@ "generated": null, "identity": null, "name": "batchId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5490,11 +5268,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5503,11 +5281,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5516,11 +5294,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5529,11 +5307,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5542,11 +5320,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "analyticsContactEventType", "typeSchema": "public", "notNull": true, @@ -5555,11 +5333,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5568,11 +5346,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5581,11 +5359,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5594,11 +5372,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5607,11 +5385,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5620,11 +5398,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5633,11 +5411,11 @@ "generated": null, "identity": null, "name": "language", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5646,11 +5424,11 @@ "generated": null, "identity": null, "name": "country", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "analyticsContactSenderType", "typeSchema": "public", "notNull": false, @@ -5659,11 +5437,11 @@ "generated": null, "identity": null, "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5672,11 +5450,11 @@ "generated": null, "identity": null, "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5685,11 +5463,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5698,11 +5476,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5711,11 +5489,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5724,11 +5502,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5737,11 +5515,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "analyticsConversationEventType", "typeSchema": "public", "notNull": true, @@ -5750,11 +5528,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5763,11 +5541,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5776,11 +5554,11 @@ "generated": null, "identity": null, "name": "fromAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5789,11 +5567,11 @@ "generated": null, "identity": null, "name": "toAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5802,11 +5580,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5815,11 +5593,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5828,11 +5606,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5841,11 +5619,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5854,11 +5632,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5867,11 +5645,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5880,11 +5658,11 @@ "generated": null, "identity": null, "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5893,11 +5671,11 @@ "generated": null, "identity": null, "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5906,11 +5684,11 @@ "generated": null, "identity": null, "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5919,11 +5697,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5932,11 +5710,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5945,11 +5723,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5958,11 +5736,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5971,11 +5749,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5984,11 +5762,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5997,11 +5775,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "analyticsMessageEventType", "typeSchema": "public", "notNull": true, @@ -6010,11 +5788,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6023,11 +5801,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "analyticsContactSenderType", "typeSchema": "public", "notNull": false, @@ -6036,11 +5814,11 @@ "generated": null, "identity": null, "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6049,11 +5827,11 @@ "generated": null, "identity": null, "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -6062,11 +5840,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6075,11 +5853,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -6088,11 +5866,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -6101,11 +5879,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -6114,11 +5892,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6127,11 +5905,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6140,11 +5918,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6153,11 +5931,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -6166,11 +5944,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6179,11 +5957,11 @@ "generated": null, "identity": null, "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6192,11 +5970,11 @@ "generated": null, "identity": null, "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6205,11 +5983,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6218,11 +5996,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6231,11 +6009,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6244,11 +6022,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6257,24 +6035,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6283,11 +6048,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6296,11 +6061,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6309,11 +6074,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6322,11 +6087,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "text", "typeSchema": null, "notNull": true, @@ -6335,11 +6100,11 @@ "generated": null, "identity": null, "name": "email", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "text", "typeSchema": null, "notNull": true, @@ -6348,11 +6113,11 @@ "generated": null, "identity": null, "name": "token", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6361,11 +6126,11 @@ "generated": null, "identity": null, "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6374,11 +6139,11 @@ "generated": null, "identity": null, "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6387,11 +6152,11 @@ "generated": null, "identity": null, "name": "firstSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6400,11 +6165,11 @@ "generated": null, "identity": null, "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "integer", "typeSchema": null, "notNull": true, @@ -6413,11 +6178,11 @@ "generated": null, "identity": null, "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6426,11 +6191,11 @@ "generated": null, "identity": null, "name": "firstClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6439,11 +6204,11 @@ "generated": null, "identity": null, "name": "lastClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "integer", "typeSchema": null, "notNull": true, @@ -6452,11 +6217,11 @@ "generated": null, "identity": null, "name": "clickCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "text", "typeSchema": null, "notNull": true, @@ -6465,11 +6230,11 @@ "generated": null, "identity": null, "name": "objectKey", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "analyticsStatus", "typeSchema": "public", "notNull": true, @@ -6478,11 +6243,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "integer", "typeSchema": null, "notNull": true, @@ -6491,11 +6256,11 @@ "generated": null, "identity": null, "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "timestamp", "typeSchema": null, "notNull": false, @@ -6504,11 +6269,11 @@ "generated": null, "identity": null, "name": "ingestedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "text", "typeSchema": null, "notNull": false, @@ -6517,11 +6282,11 @@ "generated": null, "identity": null, "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6530,11 +6295,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6543,11 +6308,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6556,11 +6321,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6569,11 +6334,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6582,11 +6347,11 @@ "generated": null, "identity": null, "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6595,11 +6360,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6608,11 +6373,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6621,11 +6386,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6634,11 +6399,11 @@ "generated": null, "identity": null, "name": "startAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6647,11 +6412,11 @@ "generated": null, "identity": null, "name": "endAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": true, @@ -6660,11 +6425,11 @@ "generated": null, "identity": null, "name": "inviteeTimezone", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "appointmentStatus", "typeSchema": "public", "notNull": true, @@ -6673,11 +6438,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "appointmentLocationTypeSnapshot", "typeSchema": "public", "notNull": true, @@ -6686,11 +6451,11 @@ "generated": null, "identity": null, "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": false, @@ -6699,11 +6464,11 @@ "generated": null, "identity": null, "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": false, @@ -6712,11 +6477,11 @@ "generated": null, "identity": null, "name": "externalEventId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6725,11 +6490,11 @@ "generated": null, "identity": null, "name": "externalEventIntegrationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": false, @@ -6738,11 +6503,11 @@ "generated": null, "identity": null, "name": "externalEventProviderCalendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "appointmentExternalSyncStatus", "typeSchema": "public", "notNull": false, @@ -6751,11 +6516,11 @@ "generated": null, "identity": null, "name": "externalSyncStatus", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6764,11 +6529,11 @@ "generated": null, "identity": null, "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6777,11 +6542,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6790,11 +6555,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6803,11 +6568,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6816,11 +6581,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6829,11 +6594,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": true, @@ -6842,11 +6607,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -6855,11 +6620,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "boolean", "typeSchema": null, "notNull": true, @@ -6868,11 +6633,11 @@ "generated": null, "identity": null, "name": "active", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": true, @@ -6881,11 +6646,11 @@ "generated": null, "identity": null, "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": true, @@ -6894,11 +6659,11 @@ "generated": null, "identity": null, "name": "durationMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -6907,11 +6672,11 @@ "generated": null, "identity": null, "name": "bufferAfterMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "appointmentLocationType", "typeSchema": "public", "notNull": true, @@ -6920,11 +6685,11 @@ "generated": null, "identity": null, "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -6933,11 +6698,11 @@ "generated": null, "identity": null, "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "appointmentScheduleWindowType", "typeSchema": "public", "notNull": true, @@ -6946,11 +6711,11 @@ "generated": null, "identity": null, "name": "scheduleWindowType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -6959,11 +6724,11 @@ "generated": null, "identity": null, "name": "scheduleWindowConfig", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -6972,11 +6737,11 @@ "generated": null, "identity": null, "name": "maxAppointmentsPerUser", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "boolean", "typeSchema": null, "notNull": true, @@ -6985,11 +6750,11 @@ "generated": null, "identity": null, "name": "dailyLimitEnabled", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -6998,11 +6763,11 @@ "generated": null, "identity": null, "name": "maxPerDay", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "boolean", "typeSchema": null, "notNull": true, @@ -7011,11 +6776,11 @@ "generated": null, "identity": null, "name": "allowGroupMeeting", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -7024,11 +6789,11 @@ "generated": null, "identity": null, "name": "maxPerSlot", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7037,11 +6802,11 @@ "generated": null, "identity": null, "name": "confirmationMessage", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7050,11 +6815,11 @@ "generated": null, "identity": null, "name": "confirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7063,11 +6828,11 @@ "generated": null, "identity": null, "name": "cancellationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7076,11 +6841,11 @@ "generated": null, "identity": null, "name": "externalConnectionId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7089,11 +6854,11 @@ "generated": null, "identity": null, "name": "externalEventTitleTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7102,11 +6867,11 @@ "generated": null, "identity": null, "name": "externalEventDescriptionTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7115,11 +6880,11 @@ "generated": null, "identity": null, "name": "externalEventAttendeesTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": true, @@ -7128,11 +6893,11 @@ "generated": null, "identity": null, "name": "publicLinkSlug", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7141,11 +6906,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7154,11 +6919,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7167,11 +6932,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7180,11 +6945,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7193,11 +6958,11 @@ "generated": null, "identity": null, "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "integer", "typeSchema": null, "notNull": true, @@ -7206,11 +6971,11 @@ "generated": null, "identity": null, "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "integer", "typeSchema": null, "notNull": true, @@ -7219,11 +6984,11 @@ "generated": null, "identity": null, "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "integer", "typeSchema": null, "notNull": true, @@ -7232,11 +6997,11 @@ "generated": null, "identity": null, "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7245,11 +7010,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7258,11 +7023,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7271,11 +7036,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7284,11 +7049,11 @@ "generated": null, "identity": null, "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7297,11 +7062,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "integer", "typeSchema": null, "notNull": true, @@ -7310,11 +7075,11 @@ "generated": null, "identity": null, "name": "timingValue", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "appointmentReminderTimingUnit", "typeSchema": "public", "notNull": true, @@ -7323,11 +7088,11 @@ "generated": null, "identity": null, "name": "timingUnit", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7336,11 +7101,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7349,11 +7114,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7362,11 +7127,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7375,11 +7140,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7388,11 +7153,11 @@ "generated": null, "identity": null, "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7401,11 +7166,11 @@ "generated": null, "identity": null, "name": "reminderConfigId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7414,11 +7179,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7427,11 +7192,11 @@ "generated": null, "identity": null, "name": "sendAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "appointmentReminderDispatchStatus", "typeSchema": "public", "notNull": true, @@ -7440,11 +7205,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "text", "typeSchema": null, "notNull": true, @@ -7453,11 +7218,11 @@ "generated": null, "identity": null, "name": "jobId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7466,11 +7231,11 @@ "generated": null, "identity": null, "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7479,11 +7244,11 @@ "generated": null, "identity": null, "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "text", "typeSchema": null, "notNull": false, @@ -7492,11 +7257,11 @@ "generated": null, "identity": null, "name": "failedReason", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7505,11 +7270,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7518,11 +7283,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7531,11 +7296,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7544,11 +7309,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7557,11 +7322,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7570,11 +7335,11 @@ "generated": null, "identity": null, "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7583,11 +7348,11 @@ "generated": null, "identity": null, "name": "messageCreatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "fileType", "typeSchema": "public", "notNull": true, @@ -7596,11 +7361,11 @@ "generated": null, "identity": null, "name": "fileType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": false, @@ -7609,11 +7374,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": true, @@ -7622,11 +7387,11 @@ "generated": null, "identity": null, "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "integer", "typeSchema": null, "notNull": false, @@ -7635,11 +7400,11 @@ "generated": null, "identity": null, "name": "width", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "integer", "typeSchema": null, "notNull": false, @@ -7648,11 +7413,11 @@ "generated": null, "identity": null, "name": "height", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "integer", "typeSchema": null, "notNull": true, @@ -7661,11 +7426,11 @@ "generated": null, "identity": null, "name": "size", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": false, @@ -7674,11 +7439,11 @@ "generated": null, "identity": null, "name": "thumbnailPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": true, @@ -7687,11 +7452,11 @@ "generated": null, "identity": null, "name": "originPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": false, @@ -7700,24 +7465,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "keepOriginal", - "entityType": "columns", "schema": "public", - "table": "Attachment" - }, - { + "table": "Account", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7726,11 +7478,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7739,11 +7491,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7752,11 +7504,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": true, @@ -7765,11 +7517,11 @@ "generated": null, "identity": null, "name": "accountId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": true, @@ -7778,11 +7530,11 @@ "generated": null, "identity": null, "name": "providerId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7791,11 +7543,11 @@ "generated": null, "identity": null, "name": "accessToken", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7804,11 +7556,11 @@ "generated": null, "identity": null, "name": "accessTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7817,11 +7569,11 @@ "generated": null, "identity": null, "name": "refreshToken", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7830,11 +7582,11 @@ "generated": null, "identity": null, "name": "refreshTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7843,11 +7595,11 @@ "generated": null, "identity": null, "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7856,11 +7608,11 @@ "generated": null, "identity": null, "name": "idToken", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7869,11 +7621,11 @@ "generated": null, "identity": null, "name": "password", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7882,11 +7634,11 @@ "generated": null, "identity": null, "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7895,11 +7647,11 @@ "generated": null, "identity": null, "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7908,11 +7660,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7921,11 +7673,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7934,11 +7686,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "text", "typeSchema": null, "notNull": true, @@ -7947,11 +7699,11 @@ "generated": null, "identity": null, "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -7960,11 +7712,11 @@ "generated": null, "identity": null, "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7973,11 +7725,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7986,11 +7738,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7999,11 +7751,11 @@ "generated": null, "identity": null, "name": "invitedBy", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8012,11 +7764,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8025,11 +7777,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8038,11 +7790,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "text", "typeSchema": null, "notNull": true, @@ -8051,11 +7803,11 @@ "generated": null, "identity": null, "name": "publicKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "text", "typeSchema": null, "notNull": true, @@ -8064,11 +7816,11 @@ "generated": null, "identity": null, "name": "privateKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -8077,11 +7829,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8090,11 +7842,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8103,11 +7855,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8116,11 +7868,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8129,11 +7881,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "text", "typeSchema": null, "notNull": true, @@ -8142,11 +7894,11 @@ "generated": null, "identity": null, "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "text", "typeSchema": null, "notNull": false, @@ -8155,11 +7907,11 @@ "generated": null, "identity": null, "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "text", "typeSchema": null, "notNull": false, @@ -8168,11 +7920,11 @@ "generated": null, "identity": null, "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8181,11 +7933,11 @@ "generated": null, "identity": null, "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8194,11 +7946,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8207,11 +7959,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8220,11 +7972,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "text", "typeSchema": null, "notNull": false, @@ -8233,11 +7985,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "text", "typeSchema": null, "notNull": true, @@ -8246,11 +7998,11 @@ "generated": null, "identity": null, "name": "email", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8259,11 +8011,11 @@ "generated": null, "identity": null, "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "text", "typeSchema": null, "notNull": false, @@ -8272,11 +8024,11 @@ "generated": null, "identity": null, "name": "image", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8285,11 +8037,11 @@ "generated": null, "identity": null, "name": "isAnonymous", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8298,11 +8050,11 @@ "generated": null, "identity": null, "name": "mustChangePassword", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8311,11 +8063,11 @@ "generated": null, "identity": null, "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8324,11 +8076,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8337,11 +8089,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8350,11 +8102,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "text", "typeSchema": null, "notNull": true, @@ -8363,11 +8115,11 @@ "generated": null, "identity": null, "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "text", "typeSchema": null, "notNull": true, @@ -8376,11 +8128,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8389,11 +8141,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8402,11 +8154,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8415,11 +8167,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8428,11 +8180,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8441,11 +8193,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8454,11 +8206,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "text", "typeSchema": null, "notNull": true, @@ -8467,11 +8219,11 @@ "generated": null, "identity": null, "name": "keywords", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8480,11 +8232,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "text", "typeSchema": null, "notNull": false, @@ -8493,11 +8245,11 @@ "generated": null, "identity": null, "name": "text", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8506,11 +8258,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "automatedResponseType", "typeSchema": "public", "notNull": true, @@ -8519,11 +8271,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8532,11 +8284,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8545,11 +8297,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "automationThrottleType", "typeSchema": "public", "notNull": true, @@ -8558,11 +8310,11 @@ "generated": null, "identity": null, "name": "throttleType", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8571,11 +8323,11 @@ "generated": null, "identity": null, "name": "subjectId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8584,11 +8336,11 @@ "generated": null, "identity": null, "name": "lastTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "uuid", "typeSchema": null, "notNull": true, @@ -8597,11 +8349,11 @@ "generated": null, "identity": null, "name": "claimId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8610,11 +8362,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8623,11 +8375,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8636,11 +8388,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "text", "typeSchema": null, "notNull": true, @@ -8649,11 +8401,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "customFieldType", "typeSchema": "public", "notNull": true, @@ -8662,11 +8414,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "text", "typeSchema": null, "notNull": false, @@ -8675,11 +8427,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "text", "typeSchema": null, "notNull": false, @@ -8688,11 +8440,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8701,11 +8453,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8714,11 +8466,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8727,11 +8479,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8740,11 +8492,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8753,11 +8505,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8766,11 +8518,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8779,11 +8531,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8792,11 +8544,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8805,11 +8557,11 @@ "generated": null, "identity": null, "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8818,11 +8570,11 @@ "generated": null, "identity": null, "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8831,11 +8583,11 @@ "generated": null, "identity": null, "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -8844,11 +8596,11 @@ "generated": null, "identity": null, "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8857,11 +8609,11 @@ "generated": null, "identity": null, "name": "targetMode", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "broadcastStatus", "typeSchema": "public", "notNull": true, @@ -8870,11 +8622,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "broadcastScheduleType", "typeSchema": "public", "notNull": true, @@ -8883,11 +8635,11 @@ "generated": null, "identity": null, "name": "schedulesType", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8896,11 +8648,11 @@ "generated": null, "identity": null, "name": "schedulesAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -8909,11 +8661,11 @@ "generated": null, "identity": null, "name": "contactFilter", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8922,11 +8674,11 @@ "generated": null, "identity": null, "name": "subaction", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8935,11 +8687,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -8948,11 +8700,11 @@ "generated": null, "identity": null, "name": "contactCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -8961,11 +8713,11 @@ "generated": null, "identity": null, "name": "handoffCompletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -8974,11 +8726,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": true, @@ -8987,11 +8739,11 @@ "generated": null, "identity": null, "name": "resumeCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -9000,11 +8752,11 @@ "generated": null, "identity": null, "name": "audienceRangeStart", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -9013,11 +8765,11 @@ "generated": null, "identity": null, "name": "audienceRangeEnd", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -9026,11 +8778,11 @@ "generated": null, "identity": null, "name": "sendRatePerMinute", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9039,11 +8791,11 @@ "generated": null, "identity": null, "name": "parentBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9052,11 +8804,11 @@ "generated": null, "identity": null, "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9065,11 +8817,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9078,11 +8830,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9091,11 +8843,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9104,11 +8856,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9117,11 +8869,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -9130,11 +8882,11 @@ "generated": null, "identity": null, "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9143,11 +8895,11 @@ "generated": null, "identity": null, "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9156,11 +8908,11 @@ "generated": null, "identity": null, "name": "accountedThroughAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "integer", "typeSchema": null, "notNull": true, @@ -9169,11 +8921,11 @@ "generated": null, "identity": null, "name": "occurrenceCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9182,11 +8934,11 @@ "generated": null, "identity": null, "name": "lastOccurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9195,11 +8947,11 @@ "generated": null, "identity": null, "name": "pausedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9208,11 +8960,11 @@ "generated": null, "identity": null, "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9221,11 +8973,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9234,11 +8986,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9247,11 +8999,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9260,11 +9012,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9273,11 +9025,11 @@ "generated": null, "identity": null, "name": "recurrenceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "text", "typeSchema": null, "notNull": true, @@ -9286,11 +9038,11 @@ "generated": null, "identity": null, "name": "localSlot", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9299,11 +9051,11 @@ "generated": null, "identity": null, "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "broadcastOccurrenceOutcome", "typeSchema": "public", "notNull": true, @@ -9312,11 +9064,11 @@ "generated": null, "identity": null, "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "broadcastOccurrenceReason", "typeSchema": "public", "notNull": false, @@ -9325,11 +9077,11 @@ "generated": null, "identity": null, "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9338,11 +9090,11 @@ "generated": null, "identity": null, "name": "childBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9351,11 +9103,11 @@ "generated": null, "identity": null, "name": "materializedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "integer", "typeSchema": null, "notNull": true, @@ -9364,11 +9116,11 @@ "generated": null, "identity": null, "name": "supersededCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9377,11 +9129,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9390,11 +9142,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9403,11 +9155,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9416,11 +9168,11 @@ "generated": null, "identity": null, "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -9429,11 +9181,11 @@ "generated": null, "identity": null, "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9442,11 +9194,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9455,11 +9207,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9468,11 +9220,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9481,11 +9233,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9493,259 +9245,129 @@ "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "inboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "channel", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "ChannelPost", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "items", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "sourceAccountId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "externalPostId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "abandonedNotifiedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "caption", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "mediaType", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "thumbnail", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "permalink", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ChannelPost", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "publishedAt", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceAccountId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalPostId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "caption", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaType", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnail", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permalink", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", "schema": "public", - "table": "ChannelPost" - }, - { + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9754,11 +9376,11 @@ "generated": null, "identity": null, "name": "metadataFetchedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9767,11 +9389,11 @@ "generated": null, "identity": null, "name": "metadataAttemptedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9780,11 +9402,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9793,11 +9415,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9806,11 +9428,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9819,11 +9441,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9832,11 +9454,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistChannel", "typeSchema": "public", "notNull": true, @@ -9845,11 +9467,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistRunType", "typeSchema": "public", "notNull": true, @@ -9858,11 +9480,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistRunStatus", "typeSchema": "public", "notNull": true, @@ -9871,11 +9493,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": true, @@ -9884,11 +9506,11 @@ "generated": null, "identity": null, "name": "triggerSource", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9897,11 +9519,11 @@ "generated": null, "identity": null, "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9910,11 +9532,11 @@ "generated": null, "identity": null, "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9923,11 +9545,11 @@ "generated": null, "identity": null, "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -9936,11 +9558,11 @@ "generated": null, "identity": null, "name": "totalScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -9949,11 +9571,11 @@ "generated": null, "identity": null, "name": "currentScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -9962,11 +9584,11 @@ "generated": null, "identity": null, "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9975,11 +9597,11 @@ "generated": null, "identity": null, "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -9988,11 +9610,11 @@ "generated": null, "identity": null, "name": "currentPageNumber", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10001,11 +9623,11 @@ "generated": null, "identity": null, "name": "importedContactCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10014,11 +9636,11 @@ "generated": null, "identity": null, "name": "importedMessageCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10027,11 +9649,11 @@ "generated": null, "identity": null, "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10040,11 +9662,11 @@ "generated": null, "identity": null, "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10053,11 +9675,11 @@ "generated": null, "identity": null, "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -10066,11 +9688,11 @@ "generated": null, "identity": null, "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": false, @@ -10079,11 +9701,11 @@ "generated": null, "identity": null, "name": "lastPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": false, @@ -10092,11 +9714,11 @@ "generated": null, "identity": null, "name": "lastChunkOrder", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10105,11 +9727,11 @@ "generated": null, "identity": null, "name": "syncProgress", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistMessengerSyncPhase", "typeSchema": "public", "notNull": true, @@ -10118,11 +9740,11 @@ "generated": null, "identity": null, "name": "messengerSyncPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -10131,11 +9753,11 @@ "generated": null, "identity": null, "name": "pendingPatches", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -10144,11 +9766,11 @@ "generated": null, "identity": null, "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10157,11 +9779,11 @@ "generated": null, "identity": null, "name": "scanFromAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10170,11 +9792,11 @@ "generated": null, "identity": null, "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -10183,11 +9805,11 @@ "generated": null, "identity": null, "name": "resumeCursor", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10196,11 +9818,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10209,11 +9831,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10222,11 +9844,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -10235,11 +9857,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10248,11 +9870,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10261,11 +9883,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "commentAutomationType", "typeSchema": "public", "notNull": true, @@ -10274,11 +9896,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10287,11 +9909,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "boolean", "typeSchema": null, "notNull": true, @@ -10300,11 +9922,11 @@ "generated": null, "identity": null, "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": false, @@ -10313,11 +9935,11 @@ "generated": null, "identity": null, "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": false, @@ -10326,11 +9948,11 @@ "generated": null, "identity": null, "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10339,11 +9961,11 @@ "generated": null, "identity": null, "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10352,11 +9974,11 @@ "generated": null, "identity": null, "name": "sentCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10365,11 +9987,11 @@ "generated": null, "identity": null, "name": "deliveredCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10378,11 +10000,11 @@ "generated": null, "identity": null, "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10391,11 +10013,11 @@ "generated": null, "identity": null, "name": "clickedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10404,11 +10026,11 @@ "generated": null, "identity": null, "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10417,11 +10039,11 @@ "generated": null, "identity": null, "name": "missedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10430,11 +10052,11 @@ "generated": null, "identity": null, "name": "post", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10443,11 +10065,11 @@ "generated": null, "identity": null, "name": "privateReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10456,11 +10078,11 @@ "generated": null, "identity": null, "name": "publicReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10469,11 +10091,11 @@ "generated": null, "identity": null, "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -10482,11 +10104,11 @@ "generated": null, "identity": null, "name": "excludeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "commentExcludeKeywordsType", "typeSchema": "public", "notNull": true, @@ -10495,11 +10117,11 @@ "generated": null, "identity": null, "name": "excludeKeywordsType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10508,11 +10130,11 @@ "generated": null, "identity": null, "name": "options", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10521,11 +10143,11 @@ "generated": null, "identity": null, "name": "hideComments", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10534,11 +10156,11 @@ "generated": null, "identity": null, "name": "replyAfter", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10547,11 +10169,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10560,11 +10182,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10573,11 +10195,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10586,11 +10208,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10599,11 +10221,11 @@ "generated": null, "identity": null, "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10612,11 +10234,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10625,11 +10247,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -10638,11 +10260,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -10651,11 +10273,11 @@ "generated": null, "identity": null, "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10664,11 +10286,11 @@ "generated": null, "identity": null, "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "commentAutomationReplyChannel", "typeSchema": "public", "notNull": true, @@ -10677,11 +10299,11 @@ "generated": null, "identity": null, "name": "replyChannel", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "commentAutomationReplyType", "typeSchema": "public", "notNull": true, @@ -10690,11 +10312,11 @@ "generated": null, "identity": null, "name": "replyType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10703,11 +10325,11 @@ "generated": null, "identity": null, "name": "replyText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "commentAutomationEventStatus", "typeSchema": "public", "notNull": true, @@ -10716,11 +10338,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10729,11 +10351,11 @@ "generated": null, "identity": null, "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10742,11 +10364,11 @@ "generated": null, "identity": null, "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10755,11 +10377,11 @@ "generated": null, "identity": null, "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10768,11 +10390,11 @@ "generated": null, "identity": null, "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10781,11 +10403,11 @@ "generated": null, "identity": null, "name": "errorDetail", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10794,11 +10416,11 @@ "generated": null, "identity": null, "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10807,11 +10429,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10820,11 +10442,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10833,11 +10455,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10846,11 +10468,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10859,11 +10481,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10872,11 +10494,11 @@ "generated": null, "identity": null, "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10885,11 +10507,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10898,11 +10520,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "text", "typeSchema": null, "notNull": true, @@ -10911,11 +10533,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "text", "typeSchema": null, "notNull": true, @@ -10924,11 +10546,11 @@ "generated": null, "identity": null, "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "text", "typeSchema": null, "notNull": false, @@ -10937,11 +10559,11 @@ "generated": null, "identity": null, "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "commentAutomationMissReason", "typeSchema": "public", "notNull": true, @@ -10950,11 +10572,11 @@ "generated": null, "identity": null, "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10963,11 +10585,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10976,11 +10598,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10989,11 +10611,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11002,11 +10624,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11015,11 +10637,11 @@ "generated": null, "identity": null, "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11028,11 +10650,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "text", "typeSchema": null, "notNull": true, @@ -11041,11 +10663,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11054,11 +10676,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11067,11 +10689,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11080,11 +10702,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11093,11 +10715,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11106,11 +10728,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11119,11 +10741,11 @@ "generated": null, "identity": null, "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11132,11 +10754,11 @@ "generated": null, "identity": null, "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11145,11 +10767,11 @@ "generated": null, "identity": null, "name": "targetConnectionId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11158,11 +10780,11 @@ "generated": null, "identity": null, "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11171,11 +10793,11 @@ "generated": null, "identity": null, "name": "actorTokenId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11184,11 +10806,11 @@ "generated": null, "identity": null, "name": "platformOwnerId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11197,11 +10819,11 @@ "generated": null, "identity": null, "name": "originHost", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11210,11 +10832,11 @@ "generated": null, "identity": null, "name": "returnUrl", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11223,11 +10845,11 @@ "generated": null, "identity": null, "name": "stateNonceHash", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11236,11 +10858,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11249,11 +10871,11 @@ "generated": null, "identity": null, "name": "step", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -11262,11 +10884,11 @@ "generated": null, "identity": null, "name": "nextAction", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -11275,11 +10897,11 @@ "generated": null, "identity": null, "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -11288,11 +10910,11 @@ "generated": null, "identity": null, "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -11301,11 +10923,11 @@ "generated": null, "identity": null, "name": "targetClaims", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11314,11 +10936,11 @@ "generated": null, "identity": null, "name": "resultConnectionIds", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -11327,11 +10949,11 @@ "generated": null, "identity": null, "name": "results", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11340,11 +10962,11 @@ "generated": null, "identity": null, "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11353,11 +10975,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11366,11 +10988,11 @@ "generated": null, "identity": null, "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11379,11 +11001,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11392,11 +11014,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11405,11 +11027,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11418,11 +11040,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11431,11 +11053,11 @@ "generated": null, "identity": null, "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11444,11 +11066,11 @@ "generated": null, "identity": null, "name": "kind", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": false, @@ -11457,11 +11079,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11470,11 +11092,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11483,11 +11105,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11496,11 +11118,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11509,11 +11131,11 @@ "generated": null, "identity": null, "name": "displayName", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11522,11 +11144,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": false, @@ -11535,11 +11157,11 @@ "generated": null, "identity": null, "name": "statusReason", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": false, @@ -11548,11 +11170,11 @@ "generated": null, "identity": null, "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11561,11 +11183,11 @@ "generated": null, "identity": null, "name": "authExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11574,11 +11196,11 @@ "generated": null, "identity": null, "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11587,11 +11209,11 @@ "generated": null, "identity": null, "name": "connectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11600,11 +11222,11 @@ "generated": null, "identity": null, "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11613,11 +11235,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11626,11 +11248,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11639,11 +11261,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11652,11 +11274,11 @@ "generated": null, "identity": null, "name": "avatar", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11665,11 +11287,11 @@ "generated": null, "identity": null, "name": "phoneNumber", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11678,11 +11300,11 @@ "generated": null, "identity": null, "name": "email", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "boolean", "typeSchema": null, "notNull": true, @@ -11691,11 +11313,11 @@ "generated": null, "identity": null, "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "boolean", "typeSchema": null, "notNull": true, @@ -11704,11 +11326,11 @@ "generated": null, "identity": null, "name": "emailOptIn", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11717,11 +11339,11 @@ "generated": null, "identity": null, "name": "firstName", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11730,11 +11352,11 @@ "generated": null, "identity": null, "name": "lastName", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11746,11 +11368,11 @@ }, "identity": null, "name": "fullName", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "gender", "typeSchema": "public", "notNull": false, @@ -11759,11 +11381,11 @@ "generated": null, "identity": null, "name": "gender", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11772,11 +11394,11 @@ "generated": null, "identity": null, "name": "lastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11785,11 +11407,11 @@ "generated": null, "identity": null, "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11798,11 +11420,11 @@ "generated": null, "identity": null, "name": "country", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11811,11 +11433,11 @@ "generated": null, "identity": null, "name": "state", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11824,11 +11446,11 @@ "generated": null, "identity": null, "name": "city", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -11837,11 +11459,11 @@ "generated": null, "identity": null, "name": "location", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11850,11 +11472,11 @@ "generated": null, "identity": null, "name": "locale", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11863,11 +11485,11 @@ "generated": null, "identity": null, "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11876,11 +11498,11 @@ "generated": null, "identity": null, "name": "subscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11889,11 +11511,11 @@ "generated": null, "identity": null, "name": "broadcastSubscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11902,11 +11524,11 @@ "generated": null, "identity": null, "name": "blockedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "integer", "typeSchema": null, "notNull": true, @@ -11915,11 +11537,11 @@ "generated": null, "identity": null, "name": "totalTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "integer", "typeSchema": null, "notNull": true, @@ -11928,11 +11550,11 @@ "generated": null, "identity": null, "name": "totalNewTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11941,11 +11563,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11954,11 +11576,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11967,11 +11589,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11980,11 +11602,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11993,11 +11615,11 @@ "generated": null, "identity": null, "name": "hourBucket", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12006,11 +11628,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12019,11 +11641,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12032,11 +11654,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12045,11 +11667,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12058,11 +11680,11 @@ "generated": null, "identity": null, "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12071,11 +11693,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12084,11 +11706,11 @@ "generated": null, "identity": null, "name": "workspaceMacId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12097,11 +11719,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12110,11 +11732,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12123,11 +11745,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "text", "typeSchema": null, "notNull": true, @@ -12136,11 +11758,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12149,11 +11771,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12162,11 +11784,11 @@ "generated": null, "identity": null, "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12175,11 +11797,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12188,11 +11810,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12201,11 +11823,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12214,11 +11836,11 @@ "generated": null, "identity": null, "name": "originalContactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12227,11 +11849,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12240,11 +11862,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": true, @@ -12253,11 +11875,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": true, @@ -12266,11 +11888,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": true, @@ -12279,11 +11901,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "boolean", "typeSchema": null, "notNull": false, @@ -12292,11 +11914,11 @@ "generated": null, "identity": null, "name": "followsBusiness", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "boolean", "typeSchema": null, "notNull": false, @@ -12305,11 +11927,11 @@ "generated": null, "identity": null, "name": "businessFollowsContact", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "boolean", "typeSchema": null, "notNull": false, @@ -12318,11 +11940,11 @@ "generated": null, "identity": null, "name": "accountVerified", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "integer", "typeSchema": null, "notNull": false, @@ -12331,11 +11953,11 @@ "generated": null, "identity": null, "name": "followerCount", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "contactInboxProfileSnapshotState", "typeSchema": "public", "notNull": false, @@ -12344,11 +11966,11 @@ "generated": null, "identity": null, "name": "profileSnapshotState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "integer", "typeSchema": null, "notNull": false, @@ -12357,11 +11979,11 @@ "generated": null, "identity": null, "name": "profileSnapshotAttempts", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12370,11 +11992,11 @@ "generated": null, "identity": null, "name": "profileSnapshotNextAttemptAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12383,11 +12005,11 @@ "generated": null, "identity": null, "name": "language", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12396,11 +12018,11 @@ "generated": null, "identity": null, "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12409,11 +12031,11 @@ "generated": null, "identity": null, "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12422,11 +12044,11 @@ "generated": null, "identity": null, "name": "firstInteractionAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12435,11 +12057,11 @@ "generated": null, "identity": null, "name": "lastMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12448,11 +12070,11 @@ "generated": null, "identity": null, "name": "lastIncomingMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12461,11 +12083,11 @@ "generated": null, "identity": null, "name": "lastOutboundMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -12474,11 +12096,11 @@ "generated": null, "identity": null, "name": "referral", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12487,11 +12109,11 @@ "generated": null, "identity": null, "name": "lastCommentMessageId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12500,11 +12122,11 @@ "generated": null, "identity": null, "name": "lastCommentMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "integer", "typeSchema": null, "notNull": true, @@ -12513,11 +12135,11 @@ "generated": null, "identity": null, "name": "consecutiveFailedReply", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12526,11 +12148,11 @@ "generated": null, "identity": null, "name": "lastInputFailure", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12539,11 +12161,11 @@ "generated": null, "identity": null, "name": "lastErrorLog", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12552,11 +12174,11 @@ "generated": null, "identity": null, "name": "lastBtnTitle", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12565,11 +12187,11 @@ "generated": null, "identity": null, "name": "lastUserInput", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "lastUserInputType", "typeSchema": "public", "notNull": false, @@ -12578,11 +12200,11 @@ "generated": null, "identity": null, "name": "lastUserInputType", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12591,11 +12213,11 @@ "generated": null, "identity": null, "name": "webchatParentUrl", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12604,11 +12226,11 @@ "generated": null, "identity": null, "name": "sourceUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12617,11 +12239,11 @@ "generated": null, "identity": null, "name": "sourceParentUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12630,11 +12252,11 @@ "generated": null, "identity": null, "name": "sourceUsername", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -12643,11 +12265,11 @@ "generated": null, "identity": null, "name": "sourceIdentityHistory", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "threadControlState", "typeSchema": "public", "notNull": false, @@ -12656,11 +12278,11 @@ "generated": null, "identity": null, "name": "threadControlState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12669,11 +12291,11 @@ "generated": null, "identity": null, "name": "threadOwnerRole", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12682,11 +12304,11 @@ "generated": null, "identity": null, "name": "threadControlUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "threadControlEvent", "typeSchema": "public", "notNull": false, @@ -12695,11 +12317,11 @@ "generated": null, "identity": null, "name": "threadControlLastEvent", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12708,11 +12330,11 @@ "generated": null, "identity": null, "name": "threadOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12721,11 +12343,11 @@ "generated": null, "identity": null, "name": "threadOwnerExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12734,11 +12356,11 @@ "generated": null, "identity": null, "name": "threadPreviousOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12747,11 +12369,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12760,11 +12382,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12773,11 +12395,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12786,11 +12408,11 @@ "generated": null, "identity": null, "name": "commentedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12799,11 +12421,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12812,11 +12434,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12825,11 +12447,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "text", "typeSchema": null, "notNull": true, @@ -12838,11 +12460,11 @@ "generated": null, "identity": null, "name": "text", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12851,11 +12473,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "bigint", "typeSchema": null, "notNull": false, @@ -12864,11 +12486,11 @@ "generated": null, "identity": null, "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12877,11 +12499,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12890,11 +12512,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12903,11 +12525,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12916,11 +12538,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "boolean", "typeSchema": null, "notNull": true, @@ -12929,11 +12551,11 @@ "generated": null, "identity": null, "name": "sent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12942,11 +12564,11 @@ "generated": null, "identity": null, "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12955,11 +12577,11 @@ "generated": null, "identity": null, "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12968,11 +12590,11 @@ "generated": null, "identity": null, "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12981,11 +12603,11 @@ "generated": null, "identity": null, "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "text", "typeSchema": null, "notNull": false, @@ -12994,11 +12616,11 @@ "generated": null, "identity": null, "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "boolean", "typeSchema": null, "notNull": false, @@ -13010,11 +12632,11 @@ }, "identity": null, "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13023,11 +12645,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13036,11 +12658,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13049,11 +12671,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13062,11 +12684,11 @@ "generated": null, "identity": null, "name": "enrolledAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13075,11 +12697,11 @@ "generated": null, "identity": null, "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "integer", "typeSchema": null, "notNull": true, @@ -13088,11 +12710,11 @@ "generated": null, "identity": null, "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "text", "typeSchema": null, "notNull": false, @@ -13101,11 +12723,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13114,11 +12736,11 @@ "generated": null, "identity": null, "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13127,11 +12749,11 @@ "generated": null, "identity": null, "name": "lastStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13140,11 +12762,11 @@ "generated": null, "identity": null, "name": "nextStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13153,11 +12775,11 @@ "generated": null, "identity": null, "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "text", "typeSchema": null, "notNull": false, @@ -13166,11 +12788,11 @@ "generated": null, "identity": null, "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "text", "typeSchema": null, "notNull": false, @@ -13179,11 +12801,11 @@ "generated": null, "identity": null, "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13192,11 +12814,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13205,11 +12827,11 @@ "generated": null, "identity": null, "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13218,11 +12840,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13231,11 +12853,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13244,11 +12866,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13257,11 +12879,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13270,11 +12892,11 @@ "generated": null, "identity": null, "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13283,11 +12905,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13296,11 +12918,11 @@ "generated": null, "identity": null, "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13309,11 +12931,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "text", "typeSchema": null, "notNull": false, @@ -13322,11 +12944,11 @@ "generated": null, "identity": null, "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "text", "typeSchema": null, "notNull": false, @@ -13335,11 +12957,11 @@ "generated": null, "identity": null, "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -13348,11 +12970,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "ContactOnSmartDelayType", "typeSchema": "public", "notNull": true, @@ -13361,11 +12983,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13374,11 +12996,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13387,11 +13009,11 @@ "generated": null, "identity": null, "name": "triggerAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "ContactOnSmartDelayStatus", "typeSchema": "public", "notNull": true, @@ -13400,11 +13022,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTag", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13413,11 +13035,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTag", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13426,11 +13048,11 @@ "generated": null, "identity": null, "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13439,11 +13061,11 @@ "generated": null, "identity": null, "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13452,11 +13074,11 @@ "generated": null, "identity": null, "name": "tagChannelId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13465,11 +13087,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13478,11 +13100,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13491,11 +13113,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13504,11 +13126,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13517,11 +13139,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "boolean", "typeSchema": null, "notNull": true, @@ -13530,11 +13152,11 @@ "generated": null, "identity": null, "name": "botEnabled", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13543,11 +13165,11 @@ "generated": null, "identity": null, "name": "botResumeAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13556,11 +13178,11 @@ "generated": null, "identity": null, "name": "archivedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -13569,11 +13191,11 @@ "generated": null, "identity": null, "name": "additionalAttributes", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13582,11 +13204,11 @@ "generated": null, "identity": null, "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13595,11 +13217,11 @@ "generated": null, "identity": null, "name": "agentLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13608,11 +13230,11 @@ "generated": null, "identity": null, "name": "aiContextLastMessageId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13621,11 +13243,11 @@ "generated": null, "identity": null, "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "boolean", "typeSchema": null, "notNull": true, @@ -13634,11 +13256,11 @@ "generated": null, "identity": null, "name": "followed", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13647,11 +13269,11 @@ "generated": null, "identity": null, "name": "assignedUserId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13660,11 +13282,11 @@ "generated": null, "identity": null, "name": "assignedInboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13673,11 +13295,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13686,11 +13308,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "text", "typeSchema": null, "notNull": false, @@ -13699,11 +13321,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "text", "typeSchema": null, "notNull": false, @@ -13712,11 +13334,11 @@ "generated": null, "identity": null, "name": "lastStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "text", "typeSchema": null, "notNull": false, @@ -13725,11 +13347,11 @@ "generated": null, "identity": null, "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13738,11 +13360,11 @@ "generated": null, "identity": null, "name": "adminRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13751,11 +13373,11 @@ "generated": null, "identity": null, "name": "contactRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13764,11 +13386,11 @@ "generated": null, "identity": null, "name": "awaitingHumanReplySince", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13777,11 +13399,11 @@ "generated": null, "identity": null, "name": "awaitingHumanReplyClosedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13790,11 +13412,11 @@ "generated": null, "identity": null, "name": "assignedUserAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13803,11 +13425,11 @@ "generated": null, "identity": null, "name": "responseDueAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13816,11 +13438,11 @@ "generated": null, "identity": null, "name": "responseSlaBreachingAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "integer", "typeSchema": null, "notNull": false, @@ -13829,11 +13451,11 @@ "generated": null, "identity": null, "name": "responseSlaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13842,11 +13464,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13855,11 +13477,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13868,11 +13490,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13881,11 +13503,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13894,11 +13516,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13907,11 +13529,11 @@ "generated": null, "identity": null, "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13920,11 +13542,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13933,11 +13555,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13946,11 +13568,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13959,11 +13581,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13972,11 +13594,11 @@ "generated": null, "identity": null, "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "text", "typeSchema": null, "notNull": true, @@ -13985,11 +13607,11 @@ "generated": null, "identity": null, "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13998,11 +13620,11 @@ "generated": null, "identity": null, "name": "issuedContactId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14011,11 +13633,11 @@ "generated": null, "identity": null, "name": "issuedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14024,11 +13646,11 @@ "generated": null, "identity": null, "name": "usedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14037,11 +13659,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14050,11 +13672,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14063,11 +13685,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14076,11 +13698,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "text", "typeSchema": null, "notNull": true, @@ -14089,11 +13711,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "text", "typeSchema": null, "notNull": false, @@ -14102,11 +13724,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14115,11 +13737,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "couponTopicStatus", "typeSchema": "public", "notNull": true, @@ -14128,11 +13750,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14141,11 +13763,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "boolean", "typeSchema": null, "notNull": true, @@ -14154,11 +13776,11 @@ "generated": null, "identity": null, "name": "hasEverHadCoupon", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -14167,11 +13789,11 @@ "generated": null, "identity": null, "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14180,11 +13802,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14193,11 +13815,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14206,11 +13828,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "text", "typeSchema": null, "notNull": true, @@ -14219,11 +13841,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "customFieldType", "typeSchema": "public", "notNull": true, @@ -14232,11 +13854,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "text", "typeSchema": null, "notNull": false, @@ -14245,11 +13867,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "bigint", "typeSchema": null, "notNull": false, @@ -14258,11 +13880,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "boolean", "typeSchema": null, "notNull": true, @@ -14271,11 +13893,11 @@ "generated": null, "identity": null, "name": "showInInbox", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14284,11 +13906,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14297,11 +13919,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14310,11 +13932,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14323,11 +13945,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14336,11 +13958,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "text", "typeSchema": null, "notNull": true, @@ -14349,11 +13971,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "DecisionProviderKind", "typeSchema": "public", "notNull": true, @@ -14362,11 +13984,11 @@ "generated": null, "identity": null, "name": "providerKind", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "text", "typeSchema": null, "notNull": false, @@ -14375,11 +13997,11 @@ "generated": null, "identity": null, "name": "endpoint", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -14388,11 +14010,11 @@ "generated": null, "identity": null, "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -14401,11 +14023,11 @@ "generated": null, "identity": null, "name": "modelCatalog", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "text", "typeSchema": null, "notNull": false, @@ -14414,11 +14036,11 @@ "generated": null, "identity": null, "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "DecisionConnectionStatus", "typeSchema": "public", "notNull": true, @@ -14427,11 +14049,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "DecisionConnectionTestStatus", "typeSchema": "public", "notNull": false, @@ -14440,11 +14062,11 @@ "generated": null, "identity": null, "name": "lastTestStatus", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14453,11 +14075,11 @@ "generated": null, "identity": null, "name": "lastTestedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14466,11 +14088,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14479,11 +14101,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14492,11 +14114,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14505,11 +14127,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "text", "typeSchema": null, "notNull": true, @@ -14518,11 +14140,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "text", "typeSchema": null, "notNull": false, @@ -14531,11 +14153,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "DecisionProfileStatus", "typeSchema": "public", "notNull": true, @@ -14544,11 +14166,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14557,11 +14179,11 @@ "generated": null, "identity": null, "name": "connectionId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "text", "typeSchema": null, "notNull": true, @@ -14570,11 +14192,11 @@ "generated": null, "identity": null, "name": "model", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -14583,11 +14205,11 @@ "generated": null, "identity": null, "name": "contract", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -14596,11 +14218,11 @@ "generated": null, "identity": null, "name": "thresholdConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "boolean", "typeSchema": null, "notNull": true, @@ -14609,11 +14231,11 @@ "generated": null, "identity": null, "name": "globalRouterEnabled", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -14622,11 +14244,11 @@ "generated": null, "identity": null, "name": "globalRouterConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DynamicImage", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14635,11 +14257,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "entityType": "columns" }, { + "schema": "public", + "table": "DynamicImage", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14648,11 +14270,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "entityType": "columns" }, { + "schema": "public", + "table": "DynamicImage", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14661,245 +14283,219 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "DynamicImage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "DynamicImage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "DynamicImage", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoApply", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "customFieldId", + "entityType": "columns" }, { - "type": "discountType", - "typeSchema": "public", + "schema": "public", + "table": "DynamicImage", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "data", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "DynamicImage", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'0'", + "default": null, "generated": null, "identity": null, - "name": "discountValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "backgroundUrl", + "entityType": "columns" }, { - "type": "discountAppliesTo", - "typeSchema": "public", + "schema": "public", + "table": "DynamicImage", + "type": "boolean", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'entireOrder'", + "default": "true", "generated": null, "identity": null, - "name": "appliesTo", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "enabled", + "entityType": "columns" }, { + "schema": "public", + "table": "EmailTopic", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "EmailTopic", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "productIds", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "createdAt", + "entityType": "columns" }, { - "type": "discountMinimumType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'none'", - "generated": null, - "identity": null, - "name": "minimumType", - "entityType": "columns", "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", + "table": "EmailTopic", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "now()", "generated": null, "identity": null, - "name": "minimumValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "EmailTopic", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "usageLimit", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "EmailTopic", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "usedCount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "EmailTopic", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "oncePerCustomer", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "folderId", + "entityType": "columns" }, { - "type": "discountEligibility", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'everyone'", - "generated": null, - "identity": null, - "name": "eligibility", - "entityType": "columns", "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "customerFilter", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "sendsTotal", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "deliveredsTotal", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "seensTotal", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "0", "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "clicksTotal", + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14908,11 +14504,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14921,11 +14517,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14934,11 +14530,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "text", "typeSchema": null, "notNull": true, @@ -14946,51 +14542,51 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "action", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "AuditLog", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "detail", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "AuditLog", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "ipAddress", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "AuditLog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "data", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "userAgent", + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "text", "typeSchema": null, "notNull": false, @@ -14998,25 +14594,38 @@ "default": null, "generated": null, "identity": null, - "name": "backgroundUrl", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "source", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "AuditLog", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "DynamicImage" + "table": "AuditLog", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15025,11 +14634,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15038,11 +14647,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15051,11 +14660,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15063,12 +14672,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "tenantId", + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "text", "typeSchema": null, "notNull": true, @@ -15076,51 +14685,77 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "domain", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "CustomDomain", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'pending'", "generated": null, "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "CustomDomain", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", + "name": "verifiedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceOrderCounter" + "table": "CustomDomain", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "CustomDomain", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "lastNumber", - "entityType": "columns", + "name": "cfOwnershipValue", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceOrderCounter" + "table": "CustomDomain", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns" }, { + "schema": "public", + "table": "License", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15129,11 +14764,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "License", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15142,11 +14777,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "License", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15155,206 +14790,206 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "License", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "licenseId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "License", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderingAvailable", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "token", + "entityType": "columns" }, { - "type": "webshopProductView", - "typeSchema": "public", + "schema": "public", + "table": "License", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "webshopProductView", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "expiresAt", + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformAdmin", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "PlatformAdmin", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "searchProducts", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformAdmin", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "facebookPixelId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "PlatformAdmin", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "abandonedCartDelayMinutes", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "userId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformAdmin", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'super-admin'", "generated": null, "identity": null, - "name": "abandonedCartFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "role", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Tenant", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "productButtons", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "id", + "entityType": "columns" }, { - "type": "productImageSize", - "typeSchema": "public", + "schema": "public", + "table": "Tenant", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "productImageSize", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tenant", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "allowRateOrders", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tenant", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "notifyOnCartStatusChange", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "ownerId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "paymentMethods", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "disabledReason", + "entityType": "columns" }, { - "type": "currencyPosition", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currencyPosition", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "brandName", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15362,38 +14997,38 @@ "default": null, "generated": null, "identity": null, - "name": "currencySymbol", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "logoLightPath", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "serviceFeePercent", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "logoDarkPath", + "entityType": "columns" }, { - "type": "shippingMode", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "faviconPath", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15401,25 +15036,25 @@ "default": null, "generated": null, "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "customCss", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shippingCountries", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "customJs", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15427,38 +15062,38 @@ "default": null, "generated": null, "identity": null, - "name": "defaultShippingCountry", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "theme", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deliveryCost", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "storageUrl", + "entityType": "columns" }, { - "type": "checkoutMode", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "checkoutMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "policyUrl", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15466,129 +15101,181 @@ "default": null, "generated": null, "identity": null, - "name": "checkoutLink", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "termsOfServiceUrl", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Tenant", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "checkoutFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "signupEmailTemplate", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Tenant", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "forgotPasswordEmailTemplate", + "entityType": "columns" }, { - "type": "orderConfirmationMode", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "jsonb", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'default'", + "default": null, "generated": null, "identity": null, - "name": "orderConfirmationMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "magicLinkEmailTemplate", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Tenant", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderConfirmationFlowId", - "entityType": "columns", + "name": "accountCredentialsEmailTemplate", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceSettings" + "table": "Tenant", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requireName", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "requireEmail", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceSettings" + "table": "TenantHelpItem", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requirePhone", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "tenantId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requireState", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "name", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requireZip", - "entityType": "columns", + "name": "url", + "entityType": "columns" + }, + { + "schema": "public", + "table": "TenantHelpItem", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceSettings" + "table": "TenantHelpItem", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15597,11 +15284,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15610,11 +15297,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15623,24 +15310,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "EmailTopic" - }, - { + "table": "UserQuota", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15648,25 +15322,25 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "userId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "contactsLimit", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, "notNull": true, @@ -15674,25 +15348,25 @@ "default": "0", "generated": null, "identity": null, - "name": "sendsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "contactsUsed", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "deliveredsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "workspacesLimit", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, "notNull": true, @@ -15700,285 +15374,298 @@ "default": "0", "generated": null, "identity": null, - "name": "seensTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "workspacesUsed", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "clicksTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "channelsLimit", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "channelsUsed", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "teamMembersLimit", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "teamMembersUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "macLimit", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "macUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "botMessagesLimit", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "botMessagesUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "monthlyBotMessagesLimit", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "monthlyBotMessagesUsed", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "botMessagesTopUpGranted", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "whiteLabel", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "ssoSaml", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "saasMode", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "domain", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "planName", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "planStatus", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "selectedTrialPlanId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cfHostnameId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "periodStart", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cfOwnershipValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "periodEnd", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cfAcmeValue", - "entityType": "columns", + "name": "channelsTornDownAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "CustomDomain" + "table": "UserQuota", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceUsage", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15987,11 +15674,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "License" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceUsage", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16000,12 +15687,12 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "License" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, @@ -16013,115 +15700,102 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "License" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "licenseId", - "entityType": "columns", "schema": "public", - "table": "License" - }, - { - "type": "text", + "table": "WorkspaceUsage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "License" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "License" + "name": "contactsUsed", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "channelsUsed", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "teamMembersUsed", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "botMessagesUsed", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "macUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceUsage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'super-admin'", + "default": "now()", "generated": null, "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "syncedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16130,11 +15804,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16143,11 +15817,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16156,50 +15830,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "action", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "disabledReason", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "detail", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": false, @@ -16207,38 +15868,38 @@ "default": null, "generated": null, "identity": null, - "name": "brandName", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "httpCode", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ErrorLog", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "logoLightPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ErrorLog", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "logoDarkPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": false, @@ -16246,12 +15907,12 @@ "default": null, "generated": null, "identity": null, - "name": "faviconPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "sourceId", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": false, @@ -16259,142 +15920,103 @@ "default": null, "generated": null, "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "stackTrace", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ExternalWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customJs", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ExternalWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "theme", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ExternalWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "storageUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "ExternalWebhook", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'make'", "generated": null, "identity": null, - "name": "policyUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "provider", + "entityType": "columns" }, { + "schema": "public", + "table": "ExternalWebhook", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "termsOfServiceUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "event", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "signupEmailTemplate", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", + "table": "ExternalWebhook", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "forgotPasswordEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "url", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "magicLinkEmailTemplate", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", + "table": "ExternalWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "accountCredentialsEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hiddenChannels", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { + "table": "FacebookLeadAdsAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16403,11 +16025,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16416,11 +16038,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16429,11 +16051,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "TenantHelpItem" + "table": "FacebookLeadAdsAutomation", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16441,12 +16076,12 @@ "default": null, "generated": null, "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -16454,12 +16089,25 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", + "name": "pageId", + "entityType": "columns" + }, + { "schema": "public", - "table": "TenantHelpItem" + "table": "FacebookLeadAdsAutomation", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -16467,12 +16115,12 @@ "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "name": "formId", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "text", "typeSchema": null, "notNull": false, @@ -16480,12 +16128,25 @@ "default": null, "generated": null, "identity": null, - "name": "icon", - "entityType": "columns", + "name": "formName", + "entityType": "columns" + }, + { "schema": "public", - "table": "TenantHelpItem" + "table": "FacebookLeadAdsAutomation", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -16493,12 +16154,12 @@ "default": "0", "generated": null, "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "name": "leadsHandledCount", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16507,11 +16168,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16520,11 +16181,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16533,11 +16194,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16545,337 +16206,350 @@ "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", + "name": "automationId", + "entityType": "columns" + }, + { "schema": "public", - "table": "UserQuota" + "table": "FacebookLeadAdsLead", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookLeadAdsLead", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "contactId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "workspacesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "workspacesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channelsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "teamMembersLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "pageId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "adAccountId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "macLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "currency", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "currencyOffset", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "botMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "budgetType", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "budgetMinorUnits", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "monthlyBotMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "content", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "monthlyBotMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "campaignId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "monthlyBotMessagesPeriodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "facebookUserId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "botMessagesTopUpGranted", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "whiteLabel", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "ssoSaml", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "saasMode", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "planName", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "planStatus", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "tokenExpiresAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "selectedTrialPlanId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "facebookUserId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "File", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "channelsTornDownAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16883,142 +16557,155 @@ "default": "now()", "generated": null, "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "File", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "userId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "File", + "type": "fileContextType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "contextType", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "subType", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "path", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "fileName", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "mimeType", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "fileSize", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "File", + "type": "fileStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": "'pending'", "generated": null, "identity": null, - "name": "macUsed", - "entityType": "columns", + "name": "status", + "entityType": "columns" + }, + { "schema": "public", - "table": "WorkspaceUsage" + "table": "File", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "uploadedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17027,11 +16714,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17040,11 +16727,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17053,11 +16740,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "text", "typeSchema": null, "notNull": true, @@ -17065,51 +16752,51 @@ "default": null, "generated": null, "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "active", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "enableInInbox", + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "currentVersionId", + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "bigint", "typeSchema": null, "notNull": false, @@ -17117,38 +16804,38 @@ "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "draftVersionId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "stackTrace", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "folderId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17157,11 +16844,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17170,11 +16857,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17183,63 +16870,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'make'", - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", + "table": "FlowAnalyticsSession", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "event", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowAnalyticsSession", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowAnalyticsSession", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "name": "deletedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17248,11 +16922,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17261,11 +16935,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17274,24 +16948,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { + "table": "FlowNodeStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17300,37 +16961,37 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "analyticsId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "text", "typeSchema": null, "notNull": true, @@ -17338,12 +16999,12 @@ "default": null, "generated": null, "identity": null, - "name": "formId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "nodeId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "text", "typeSchema": null, "notNull": false, @@ -17351,116 +17012,116 @@ "default": null, "generated": null, "identity": null, - "name": "formName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "buttonId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "fieldMapping", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "contactId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "leadsHandledCount", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowNodeStat", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "eventType", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "FlowNodeStat", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "errorContent", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowNodeStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "seenAt", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "leadgenId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "refId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowNodeStat", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "refType", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17469,11 +17130,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17482,11 +17143,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17495,11 +17156,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17508,141 +17169,180 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowRun", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowRun", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "flowVersionId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowRun", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "conversationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FlowVersion", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "currencyOffset", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessage" + "table": "FlowVersion", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "budgetType", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "budgetMinorUnits", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "flowId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowVersion", "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, + "dimensions": 1, "default": null, "generated": null, "identity": null, - "name": "content", - "entityType": "columns", + "name": "nodes", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessage" + "table": "FlowVersion", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "campaignId", - "entityType": "columns", + "name": "isDraft", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessage" + "table": "FlowVersion", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "startNodeId", + "entityType": "columns" }, { + "schema": "public", + "table": "Folder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17651,11 +17351,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "entityType": "columns" }, { + "schema": "public", + "table": "Folder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17664,11 +17364,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "entityType": "columns" }, { + "schema": "public", + "table": "Folder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17677,76 +17377,89 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Folder", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "name", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "Folder", + "type": "folderType", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "folderType", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Folder", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "parentId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Folder", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Folder", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "facebookUserId", - "entityType": "columns", + "name": "isTrash", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "table": "Folder", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17755,11 +17468,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17768,11 +17481,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17781,24 +17494,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -17806,51 +17519,51 @@ "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "integrationGoogleAdsId", + "entityType": "columns" }, { - "type": "fileContextType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contextType", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "contactInboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "subType", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "customerId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "loginCustomerId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -17858,12 +17571,12 @@ "default": null, "generated": null, "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionCustomerId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -17871,103 +17584,103 @@ "default": null, "generated": null, "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionActionId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fileSize", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionActionName", + "entityType": "columns" }, { - "type": "fileStatus", - "typeSchema": "public", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionActionCategory", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "lookbackWindowDays", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "uploadedAt", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "channel", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsEventSource", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "source", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "scopeId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsClickIdType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "clickIdType", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -17975,155 +17688,142 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "clickId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "googleClickReceivedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enableInInbox", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "numeric", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currentVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "value", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "draftVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "currency", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "transactionId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "options", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "uploadMethod", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "table": "GoogleAdsConversionEvent", + "type": "googleAdsEventStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "attempt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "claimToken", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -18131,129 +17831,129 @@ "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "claimedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "requestId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "sentAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "error", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "failureStage", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingStatus", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingCheckedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingAttempts", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "nextProcessingCheckAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingDetail", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18261,90 +17961,64 @@ "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsSettings", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsSettings", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", + "table": "GoogleAdsSettings", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refId", - "entityType": "columns", "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "integer", + "table": "GoogleAdsSettings", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "refType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "settings", + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18353,11 +18027,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18366,11 +18040,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18379,37 +18053,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", + "table": "IgStoryAutomation", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18417,12 +18078,12 @@ "default": null, "generated": null, "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -18430,142 +18091,142 @@ "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "name": "folderId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IgStoryAutomation", + "type": "igStoryAutomationType", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "type", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "IgStoryAutomation", + "type": "igStoryAutomationTrigger", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'storyReply'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "trigger", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IgStoryAutomation", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "inboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IgStoryAutomation", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "isActive", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IgStoryAutomation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "startTime", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IgStoryAutomation", + "type": "text", "typeSchema": null, - "notNull": true, - "dimensions": 1, + "notNull": false, + "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nodes", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "endTime", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IgStoryAutomation", + "type": "integer", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": null, + "dimensions": 0, + "default": "0", "generated": null, "identity": null, - "name": "edges", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "repliesCount", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IgStoryAutomation", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'{\"type\":\"all\",\"value\":[]}'", "generated": null, "identity": null, - "name": "isDraft", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "story", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IgStoryAutomation", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "'{\"type\":\"none\",\"value\":null}'", "generated": null, "identity": null, - "name": "isLatest", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "reply", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IgStoryAutomation", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'{\"type\":\"all\",\"value\":[]}'", "generated": null, "identity": null, - "name": "startNodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "includeKeywords", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18574,11 +18235,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18587,11 +18248,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18600,37 +18261,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Import", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "folderType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Import", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderType", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "bigint", "typeSchema": null, "notNull": false, @@ -18638,12 +18299,12 @@ "default": null, "generated": null, "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "userId", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18651,207 +18312,207 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "fileId", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, + "schema": "public", + "table": "Import", + "type": "importType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isTrash", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "type", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "Import", + "type": "importFormat", + "typeSchema": "public", "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "paths", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "format", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "Import", + "type": "importStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Import", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "meta", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "totalCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "processedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "integrationGoogleAdsId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "successCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "failedCount", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorMessage", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Import", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorSample", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Import", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "completedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversionActionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "conversionActionName", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "conversionActionCategory", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "InboundWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lookbackWindowDays", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhook", "type": "text", "typeSchema": null, "notNull": true, @@ -18859,25 +18520,25 @@ "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "name", + "entityType": "columns" }, { - "type": "googleAdsEventSource", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhook", + "type": "boolean", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "active", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhook", "type": "text", "typeSchema": null, "notNull": true, @@ -18885,155 +18546,155 @@ "default": null, "generated": null, "identity": null, - "name": "scopeId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "token", + "entityType": "columns" }, { - "type": "googleAdsClickIdType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clickIdType", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "inboxResolution", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clickId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "identifiers", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "googleClickReceivedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "fieldMappings", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "actions", + "entityType": "columns" }, { - "type": "numeric", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "sampleJson", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "requestCount", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "transactionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "uploadMethod", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "googleAdsEventStatus", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "inboundWebhookId", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "text", "typeSchema": null, "notNull": false, @@ -19041,25 +18702,25 @@ "default": null, "generated": null, "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "idempotencyKey", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "clientIp", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "text", "typeSchema": null, "notNull": false, @@ -19067,25 +18728,25 @@ "default": null, "generated": null, "identity": null, - "name": "requestId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "userAgent", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "InboundWebhookRequest", + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'received'", "generated": null, "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "text", "typeSchema": null, "notNull": false, @@ -19093,155 +18754,168 @@ "default": null, "generated": null, "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "claimToken", + "entityType": "columns" }, { - "type": "googleAdsFailureStage", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "failureStage", - "entityType": "columns", + "name": "claimedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "InboundWebhookRequest", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns" }, { - "type": "googleAdsProcessingStatus", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", + "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingStatus", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "skipReason", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorCode", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingAttempts", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorMessage", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nextProcessingCheckAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingDetail", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "payload", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "fieldErrors", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "actionResults", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "settings", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "processedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19250,11 +18924,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19263,11 +18937,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19276,11 +18950,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "text", "typeSchema": null, "notNull": true, @@ -19289,102 +18963,89 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Inbox", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "channel", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Inbox", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "sourceId", + "entityType": "columns" }, { - "type": "igStoryAutomationType", - "typeSchema": "public", + "schema": "public", + "table": "Inbox", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "igStoryAutomationTrigger", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'storyReply'", - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", + "table": "Inbox", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'connected'", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "false", "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "markReadOnOutbound", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Inbox", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "disconnectedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "text", "typeSchema": null, "notNull": false, @@ -19392,64 +19053,64 @@ "default": null, "generated": null, "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "disconnectReason", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Inbox", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "threadControlSeenAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxContactStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", + "default": null, "generated": null, "identity": null, - "name": "story", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxContactStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", + "default": "0", "generated": null, "identity": null, - "name": "reply", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "totalContacts", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxContactStat", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", + "default": "now()", "generated": null, "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19458,11 +19119,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19471,11 +19132,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19484,11 +19145,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19497,37 +19158,24 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", "schema": "public", - "table": "Import" - }, - { - "type": "bigint", + "table": "InboxTeam", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeamMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19535,155 +19183,142 @@ "default": null, "generated": null, "identity": null, - "name": "fileId", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "id", + "entityType": "columns" }, { - "type": "importType", - "typeSchema": "public", + "schema": "public", + "table": "InboxTeamMember", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "createdAt", + "entityType": "columns" }, { - "type": "importFormat", - "typeSchema": "public", + "schema": "public", + "table": "InboxTeamMember", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "format", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "importStatus", - "typeSchema": "public", + "schema": "public", + "table": "InboxTeamMember", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "inboxTeamId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxTeamMember", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "userId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationActiveCampaign", "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "errorSample", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19692,11 +19327,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19705,11 +19340,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19718,24 +19353,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationApi", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "text", "typeSchema": null, "notNull": true, @@ -19744,24 +19379,24 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationApi", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "tokenHash", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "text", "typeSchema": null, "notNull": true, @@ -19769,90 +19404,129 @@ "default": null, "generated": null, "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "tokenPrefix", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxResolution", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "callbackUrl", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "identifiers", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "enabled", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fieldMappings", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Integration", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sampleJson", - "entityType": "columns", + "name": "id", + "entityType": "columns" + }, + { + "schema": "public", + "table": "Integration", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "InboundWebhook" + "table": "Integration", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Integration", "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "requestCount", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "InboundWebhook" + "table": "Integration", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19861,11 +19535,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19874,11 +19548,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19887,89 +19561,89 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationClaude", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationClaude", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "inboundWebhookId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "autoReply", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationClaude", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationClaude", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clientIp", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationClaude", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "maxOutputTokens", + "entityType": "columns" }, { - "type": "inboundWebhookRequestStatus", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationClaude", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'received'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "model", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "text", "typeSchema": null, "notNull": false, @@ -19977,168 +19651,168 @@ "default": null, "generated": null, "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "prompt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationClaude", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "temperature", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "skipReason", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "autoReply", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDeepseek", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDeepseek", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "integrationId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "maxOutputTokens", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fieldErrors", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "model", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actionResults", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "prompt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "temperature", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDrip", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20147,11 +19821,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDrip", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20160,11 +19834,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDrip", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20173,50 +19847,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDrip", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDrip", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDrip", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20224,116 +19898,103 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "id", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "Inbox" - }, - { - "type": "boolean", + "table": "IntegrationFacebookAds", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "markReadOnOutbound", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "disconnectReason", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "threadControlSeenAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "integrationId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" + "name": "auth", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" + "name": "tokenExpiresAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'active'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20342,11 +20003,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20355,11 +20016,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20368,37 +20029,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGemini", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGemini", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "name": "autoReply", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20406,64 +20067,77 @@ "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationGemini", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "integrationId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationGemini", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "maxOutputTokens", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGemini", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "model", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGemini", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", + "name": "prompt", + "entityType": "columns" + }, + { "schema": "public", - "table": "InboxTeamMember" + "table": "IntegrationGemini", + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20472,11 +20146,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20485,11 +20159,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20498,11 +20172,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20511,11 +20185,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20524,11 +20198,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -20537,11 +20211,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20550,11 +20224,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20563,11 +20237,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20576,50 +20250,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "text", "typeSchema": null, "notNull": true, @@ -20627,12 +20301,12 @@ "default": null, "generated": null, "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "customerId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "text", "typeSchema": null, "notNull": false, @@ -20640,116 +20314,116 @@ "default": null, "generated": null, "identity": null, - "name": "callbackUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "loginCustomerId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "descriptiveName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "currencyCode", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "conversionCustomerId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "boolean", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "acceptedCustomerDataTerms", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "conversionActions", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "conversionActionsSyncedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "setupError", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationType", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "setupErrorAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20758,11 +20432,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20771,11 +20445,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20784,37 +20458,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", "schema": "public", - "table": "IntegrationClaude" - }, - { + "table": "IntegrationGoogleCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20823,11 +20471,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20836,37 +20484,37 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'primary'", "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "name": "providerCalendarId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -20874,25 +20522,12 @@ "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "name": "email", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationClaude" - }, - { + "table": "IntegrationGoogleSheet", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20901,11 +20536,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20914,11 +20549,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20927,37 +20562,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", "schema": "public", - "table": "IntegrationDeepseek" - }, - { + "table": "IntegrationGoogleSheet", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20966,11 +20575,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20979,63 +20588,24 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", + "table": "IntegrationGoogleSheet", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "name": "auth", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationDeepseek" - }, - { + "table": "IntegrationInstagram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21044,11 +20614,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21057,11 +20627,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21070,128 +20640,128 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "name": "userInfo", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "name": "igId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "pageId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "name", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "username", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "coexistEnabled", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationInstagram", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "hasCapiScope", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -21199,90 +20769,90 @@ "default": null, "generated": null, "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "capiScopeCheckedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "datasetId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "capiAccessToken", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "capiDisconnectedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "capiTestEventCode", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "conversationStarters", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": "false", + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "persistentMenus", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21291,11 +20861,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21303,38 +20873,38 @@ "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "inboxId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationInstagram", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "welcomeFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'instagram'", "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "type", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "text", "typeSchema": null, "notNull": false, @@ -21342,25 +20912,12 @@ "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "tokenRefreshError", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationGemini" - }, - { + "table": "IntegrationKlaviyo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21369,11 +20926,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21382,11 +20939,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21395,11 +20952,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21408,11 +20965,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21421,11 +20978,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -21434,11 +20991,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21447,11 +21004,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21460,11 +21017,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21473,11 +21030,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21486,11 +21043,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21499,11 +21056,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -21512,141 +21069,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "descriptiveName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedCustomerDataTerms", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActions", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionsSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupErrorAt", - "entityType": "columns", "schema": "public", - "table": "IntegrationGoogleAds" - }, - { + "table": "IntegrationMailerLite", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21655,11 +21082,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21668,11 +21095,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21681,11 +21108,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21694,11 +21121,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21707,11 +21134,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -21720,37 +21147,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21759,11 +21160,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21772,11 +21173,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21785,167 +21186,115 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", + "table": "IntegrationMessenger", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "name": "userInfo", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMessenger", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "pageId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", + "table": "IntegrationMessenger", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "conversationStarters", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", + "table": "IntegrationMessenger", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "", "generated": null, "identity": null, - "name": "igId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "persistentMenus", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", + "table": "IntegrationMessenger", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "personas", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "personaId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "boolean", "typeSchema": null, "notNull": true, @@ -21954,11 +21303,11 @@ "generated": null, "identity": null, "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "boolean", "typeSchema": null, "notNull": true, @@ -21967,11 +21316,11 @@ "generated": null, "identity": null, "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "boolean", "typeSchema": null, "notNull": true, @@ -21980,11 +21329,11 @@ "generated": null, "identity": null, "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -21993,11 +21342,11 @@ "generated": null, "identity": null, "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, "notNull": false, @@ -22006,11 +21355,11 @@ "generated": null, "identity": null, "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -22019,11 +21368,11 @@ "generated": null, "identity": null, "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -22032,11 +21381,11 @@ "generated": null, "identity": null, "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, "notNull": false, @@ -22045,37 +21394,11 @@ "generated": null, "identity": null, "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22084,11 +21407,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22097,11 +21420,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": false, @@ -22110,24 +21433,24 @@ "generated": null, "identity": null, "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationMessenger", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'instagram'", + "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "syncTagEnabledAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, "notNull": false, @@ -22136,11 +21459,24 @@ "generated": null, "identity": null, "name": "tokenRefreshError", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationInstagram" + "table": "IntegrationMessenger", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22149,11 +21485,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22162,11 +21498,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22175,11 +21511,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22188,11 +21524,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22201,180 +21537,219 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "name": "catalogId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "catalogName", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "businessId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "encryptedAuth", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "metaCatalogAuthMode", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'oauth'", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "authMode", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "tokenExpiresAt", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "metaCatalogImportStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'idle'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "importStatus", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "importTotalCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "importedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns" + }, + { + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", + "name": "importError", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationMailerLite" + "table": "IntegrationMetaCatalog", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'VND'", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", + "name": "currency", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationMailerLite" + "table": "IntegrationMetaCatalog", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMoosend", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22383,11 +21758,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMoosend", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22396,11 +21771,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMoosend", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22409,141 +21784,115 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMoosend", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMoosend", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationMoosend", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenai", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenai", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", + "default": "now()", "generated": null, "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenai", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", + "default": "now()", "generated": null, "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "personas", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "auth", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", "schema": "public", - "table": "IntegrationMessenger" - }, - { + "table": "IntegrationOpenai", "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "true", "generated": null, "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "autoReply", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "boolean", "typeSchema": null, "notNull": true, @@ -22551,25 +21900,25 @@ "default": "false", "generated": null, "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "autoReplyVoice", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenai", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "voice", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "text", "typeSchema": null, "notNull": false, @@ -22577,51 +21926,51 @@ "default": null, "generated": null, "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "prompt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenai", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "model", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenai", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "temperature", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenai", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "maxOutputTokens", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22630,11 +21979,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22642,12 +21991,12 @@ "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "bigint", "typeSchema": null, "notNull": false, @@ -22655,324 +22004,311 @@ "default": null, "generated": null, "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "aiAgentId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "auth", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "autoReply", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "baseURL", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "defaultModel", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "enabled", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "preset", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "metaCatalogAuthMode", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'oauth'", + "default": null, "generated": null, "identity": null, - "name": "authMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "createdAt", + "entityType": "columns" }, { - "type": "metaCatalogConnectionStatus", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'active'", + "default": "now()", "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "auth", + "entityType": "columns" }, { - "type": "metaCatalogImportStatus", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "boolean", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'idle'", + "default": "false", "generated": null, "identity": null, - "name": "importStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "autoReply", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "importTotalCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "importedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "importFailedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "maxOutputTokens", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "importError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "model", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastImportedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "prompt", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'VND'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", + "table": "IntegrationOpenrouter", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "storeUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "temperature", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22981,11 +22317,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22994,11 +22330,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23007,11 +22343,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23020,11 +22356,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23033,11 +22369,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -23046,37 +22382,50 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'primary'", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "providerCalendarId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "email", + "entityType": "columns" + }, + { + "schema": "public", + "table": "IntegrationSendGrid", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationSendGrid", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23084,129 +22433,142 @@ "default": "now()", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoReplyVoice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "voice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationSmtp", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationSmtp", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "model", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationOpenai" + "table": "IntegrationSmtp", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "IntegrationSmtp", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "auth", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationSmtp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationSmtp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "fromAddress", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationSmtp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23214,25 +22576,25 @@ "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationSmtp", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "aiAgentId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23241,11 +22603,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23254,11 +22616,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23267,37 +22629,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { + "table": "IntegrationTelegram", "type": "text", "typeSchema": null, "notNull": true, @@ -23305,12 +22654,12 @@ "default": null, "generated": null, "identity": null, - "name": "baseURL", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "botId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "text", "typeSchema": null, "notNull": true, @@ -23318,25 +22667,12 @@ "default": null, "generated": null, "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "name", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { + "table": "IntegrationTelegram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23344,38 +22680,12 @@ "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "preset", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { + "table": "IntegrationTelegram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23383,12 +22693,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23397,11 +22707,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23410,11 +22720,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23423,11 +22733,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -23436,76 +22746,76 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationThreads", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "threadsUserId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationThreads", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "username", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationThreads", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationThreads", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationThreads", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "text", "typeSchema": null, "notNull": false, @@ -23513,25 +22823,12 @@ "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "tokenRefreshError", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenrouter" - }, - { + "table": "IntegrationTiktok", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23540,11 +22837,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTiktok", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23553,11 +22850,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTiktok", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23566,63 +22863,76 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationTiktok", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationTiktok", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "openId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationTiktok", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationTiktok", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'primary'", + "default": null, "generated": null, "identity": null, - "name": "providerCalendarId", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationOutlookCalendar" + "table": "IntegrationTiktok", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTiktok", "type": "text", "typeSchema": null, "notNull": false, @@ -23630,12 +22940,12 @@ "default": null, "generated": null, "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "tokenRefreshError", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23644,11 +22954,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23657,11 +22967,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23670,128 +22980,154 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWebchat", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWebchat", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "name", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", + "name": "enable", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationSendGrid" + "table": "IntegrationWebchat", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWebchat", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", + "name": "conversationStarters", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationSmtp" + "table": "IntegrationWebchat", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWebchat", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "brandColor", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "hideHeader", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "showLogo", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "hideMessageInput", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fromAddress", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "customCss", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23800,11 +23136,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23813,11 +23149,24 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationSmtp" + "table": "IntegrationWebchat", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23826,11 +23175,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23839,11 +23188,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23852,11 +23201,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -23865,11 +23214,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, "notNull": true, @@ -23877,12 +23226,12 @@ "default": null, "generated": null, "identity": null, - "name": "botId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "phoneNumberId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, "notNull": true, @@ -23890,155 +23239,168 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "wabaId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "businessId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "displayPhoneNumber", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", + "name": "coexistEnabled", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationThreads" + "table": "IntegrationWhatsapp", + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "inboundCallsEnabled", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callHours", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "threadsUserId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callRecordingEnabled", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "90", "generated": null, "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callRecordingRetentionDays", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callTranscriptionEnabled", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "whatsappCallRecordingMode", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'metaNative'", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callRecordingMode", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'metaNative'", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callTranscriptionMode", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, "notNull": false, @@ -24046,311 +23408,324 @@ "default": null, "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callAnnouncementLanguage", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "callRecordingPurpose", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "isCoexist", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "platformType", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "openId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "historyDeclined", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "hasCapiScope", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "capiScopeCheckedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "datasetId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "capiAccessToken", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "capiDisconnectedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "capiTestEventCode", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "whatsappRegistrationStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'pending_verification'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "registrationStatus", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", + "name": "registrationError", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWebchat" + "table": "IntegrationWhatsapp", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "tokenRefreshError", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enable", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "handoverResumeFlowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "bigint", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "authorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "bigint", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationZalo", + "type": "bigint", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationZalo", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationZalo", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "hideHeader", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationZalo", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "showLogo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "auth", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationZalo", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "hideMessageInput", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "oaId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24359,11 +23734,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24372,11 +23747,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "bigint", "typeSchema": null, "notNull": false, @@ -24384,12 +23759,38 @@ "default": null, "generated": null, "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", + "name": "fallbackFlowId", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWebchat" + "table": "IntegrationZalo", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns" + }, + { + "schema": "public", + "table": "IntegrationZalo", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24398,11 +23799,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24411,11 +23812,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24424,24 +23825,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Leaderboard", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "text", "typeSchema": null, "notNull": true, @@ -24449,116 +23850,142 @@ "default": null, "generated": null, "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "description", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "coverImageUrl", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "startsAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "displayPhoneNumber", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "endsAt", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, + "schema": "public", + "table": "Leaderboard", + "type": "leaderboardStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "false", + "default": "'draft'", "generated": null, "identity": null, - "name": "coexistEnabled", - "entityType": "columns", + "name": "status", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Leaderboard", + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "inboxId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "inboundCallsEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "minigameId", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callHours", - "entityType": "columns", + "name": "scope", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Leaderboard", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "boolean", "typeSchema": null, "notNull": true, @@ -24566,272 +23993,311 @@ "default": "false", "generated": null, "identity": null, - "name": "callRecordingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "followersOnly", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Leaderboard", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "90", + "default": null, "generated": null, "identity": null, - "name": "callRecordingRetentionDays", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "tagIds", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "'22:00'", "generated": null, "identity": null, - "name": "callTranscriptionEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "resetTime", + "entityType": "columns" }, { - "type": "whatsappCallRecordingMode", - "typeSchema": "public", + "schema": "public", + "table": "Leaderboard", + "type": "integer", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'metaNative'", + "default": "0", "generated": null, "identity": null, - "name": "callRecordingMode", - "entityType": "columns", + "name": "cooldownSeconds", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Leaderboard", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns" }, { - "type": "whatsappCallTranscriptionMode", - "typeSchema": "public", + "schema": "public", + "table": "Leaderboard", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'metaNative'", + "default": null, "generated": null, "identity": null, - "name": "callTranscriptionMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "rewardSettings", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callAnnouncementLanguage", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "rewardsTriggeredAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callRecordingPurpose", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "rewardRecipients", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "finishedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isCoexist", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "platformType", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "historyDeclined", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "leaderboardId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "contactId", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiAccessToken", - "entityType": "columns", + "name": "action", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "LeaderboardAuditLog", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "actorUserId", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "reason", + "entityType": "columns" }, { - "type": "whatsappRegistrationStatus", - "typeSchema": "public", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending_verification'", + "default": null, "generated": null, "identity": null, - "name": "registrationStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "leaderboardId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "registrationError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "contactId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "verificationCodeRequestedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", + "name": "score", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "LeaderboardParticipant", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardParticipant", "type": "bigint", "typeSchema": null, "notNull": false, @@ -24839,51 +24305,64 @@ "default": null, "generated": null, "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "referrerContactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", + "name": "scoredAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "LeaderboardParticipant", + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "dailyCounts", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "breakdown", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24891,12 +24370,12 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "lastActivityAt", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24904,51 +24383,51 @@ "default": "now()", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "oaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "leaderboardId", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24957,11 +24436,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24969,38 +24448,51 @@ "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "contactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fallbackFlowId", - "entityType": "columns", + "name": "delta", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationZalo" + "table": "LeaderboardScoreEvent", + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "rule", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -25008,12 +24500,12 @@ "default": null, "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "sourceRef", + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25022,11 +24514,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25035,11 +24527,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25048,11 +24540,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25061,11 +24553,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "text", "typeSchema": null, "notNull": true, @@ -25074,219 +24566,206 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "url", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "coverImageUrl", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "linkId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "contactId", + "entityType": "columns" }, { - "type": "leaderboardStatus", - "typeSchema": "public", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'draft'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "leaderboardPlatform", - "typeSchema": "public", + "schema": "public", + "table": "MagicLinkStat", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MagicLinkStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFile", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "rules", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "MediaLibraryFile", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "followersOnly", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "name", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tagIds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "path", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFile", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'22:00'", + "default": null, "generated": null, "identity": null, - "name": "resetTime", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "mimeType", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFile", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "cooldownSeconds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "size", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MediaLibraryFile", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "referralWelcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "isFavourite", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardSettings", - "entityType": "columns", "schema": "public", - "table": "Leaderboard" - }, - { + "table": "MediaLibraryFile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -25294,64 +24773,64 @@ "default": null, "generated": null, "identity": null, - "name": "rewardsTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "lastAccessedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "rewardRecipients", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MediaLibraryFile", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "folderId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MediaLibraryFolder", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MediaLibraryFolder", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFolder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25359,25 +24838,25 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MediaLibraryFolder", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFolder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25386,76 +24865,76 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "id", + "entityType": "columns" }, { - "type": "leaderboardAuditAction", - "typeSchema": "public", + "schema": "public", + "table": "Message", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Message", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "conversationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Message", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "contactInboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25463,64 +24942,77 @@ "default": null, "generated": null, "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "text", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Message", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "contentAttributes", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "Message", + "type": "messageType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "score", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "messageType", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, + "schema": "public", + "table": "Message", + "type": "contentType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isBanned", - "entityType": "columns", + "name": "contentType", + "entityType": "columns" + }, + { "schema": "public", - "table": "LeaderboardParticipant" + "table": "Message", + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, "notNull": false, @@ -25528,90 +25020,90 @@ "default": null, "generated": null, "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "senderId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "scoredAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "sourceId", + "entityType": "columns" }, { - "type": "date", + "schema": "public", + "table": "Message", + "type": "timestamp with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "dailyBucket", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "Message", + "type": "messageKind", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'message'", "generated": null, "identity": null, - "name": "dailyCounts", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "type", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "breakdown", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "parentId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Message", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "attributes", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "sendError", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25620,11 +25112,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25633,24 +25125,24 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessageCleanup", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25659,11 +25151,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25672,76 +25164,76 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "MessageCleanup", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "leaderboardScoreSource", - "typeSchema": "public", + "schema": "public", + "table": "MessageCleanup", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "sourceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessageCleanup", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceRef", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "conversationIds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessageCleanup", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "sinceTime", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25749,64 +25241,64 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "MessageCleanup", + "type": "MessageCleanupStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'pending'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessageCleanup", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "attempts", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "lastError", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessageCleanup", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "processedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25814,38 +25306,38 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25853,77 +25345,77 @@ "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdOperation", + "type": "messagingAdChannel", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "channel", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "integrationWhatsappId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "integrationMessengerId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "integrationInstagramId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "adAccountId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "text", "typeSchema": null, "notNull": true, @@ -25932,167 +25424,141 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdOperation", + "type": "messagingAdCreateState", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'pending'", "generated": null, "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "createState", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdOperation", + "type": "messagingAdPublishState", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'draft'", "generated": null, "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "publishState", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaCampaignId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isFavourite", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaAdSetId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastAccessedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaAdCreativeId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaAdId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "input", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" + "name": "lastError", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "MediaLibraryFolder" - }, - { + "table": "MessagingAdOperation", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" + "name": "cleanupError", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" + "name": "createdBy", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26101,11 +25567,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Message" + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26114,11 +25580,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Message" + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26127,11 +25593,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26139,233 +25605,233 @@ "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdsConnection", + "type": "messagingAdChannel", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "channel", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationMessengerId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentAttributes", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationInstagramId", + "entityType": "columns" }, { - "type": "messageType", - "typeSchema": "public", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "messageType", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "auth", + "entityType": "columns" }, { - "type": "contentType", - "typeSchema": "public", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "status", + "entityType": "columns" }, { - "type": "senderType", - "typeSchema": "public", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "senderId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp with time zone", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "name", + "entityType": "columns" }, { - "type": "messageKind", - "typeSchema": "public", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'message'", + "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationMessengerId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "sourceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "attributes", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "language", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sendError", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "category", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'POSITIONAL'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "parameterFormat", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'[]'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "components", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26373,38 +25839,38 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26412,116 +25878,90 @@ "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "flowId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversationIds", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "integrationMessengerId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sinceTime", - "entityType": "columns", "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", + "table": "MessengerWelcomeMessageFlow", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "pageId", + "entityType": "columns" }, { - "type": "MessageCleanupStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "integer", + "table": "MessengerWelcomeMessageFlow", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "metaFlowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "flowVersionId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'current'", "generated": null, "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26530,11 +25970,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26543,11 +25983,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26556,11 +25996,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26569,115 +26009,128 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { - "type": "messagingAdChannel", - "typeSchema": "public", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", + "name": "contactInboxId", + "entityType": "columns" + }, + { "schema": "public", - "table": "MessagingAdOperation" + "table": "MetaCapiEvent", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "currency", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentCategory", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentName", + "entityType": "columns" }, { - "type": "messagingAdCreateState", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "MetaCapiEvent", + "type": "numeric", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "createState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "value", + "entityType": "columns" }, { - "type": "messagingAdPublishState", - "typeSchema": "public", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'draft'", + "default": "'business_messaging'", "generated": null, "identity": null, - "name": "publishState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "actionSource", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -26685,103 +26138,103 @@ "default": null, "generated": null, "identity": null, - "name": "metaCampaignId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentType", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCapiEvent", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaAdSetId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentIds", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaAdCreativeId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "source", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaAdId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "sourceKey", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MetaCapiEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "input", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "occurredAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'pending'", "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "capiStatus", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCapiEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cleanupError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "capiSentAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "capiError", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26790,11 +26243,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26803,11 +26256,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26816,11 +26269,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26828,90 +26281,90 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "integrationMetaCatalogId", + "entityType": "columns" }, { - "type": "messagingAdChannel", - "typeSchema": "public", + "schema": "public", + "table": "MetaCatalogItem", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "productId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogItem", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "catalogId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "MetaCatalogItem", + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'push'", "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "direction", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogItem", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "retailerId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MetaCatalogItem", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "lastSyncedFingerprint", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogItem", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "lastSyncedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26920,11 +26373,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26933,11 +26386,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26946,24 +26399,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26971,77 +26424,90 @@ "default": null, "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "integrationMetaCatalogId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "metaCatalogSyncStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'queued'", "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "status", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "metaCatalogItemDirection", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'push'", "generated": null, "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "direction", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "category", - "entityType": "columns", + "name": "catalogId", + "entityType": "columns" + }, + { "schema": "public", - "table": "MessengerMessageTemplate" + "table": "MetaCatalogSyncRun", + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "categoryId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'POSITIONAL'", + "default": "'[]'", "generated": null, "identity": null, - "name": "parameterFormat", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "selectedProductIds", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -27049,142 +26515,155 @@ "default": "'[]'", "generated": null, "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "handles", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "submissionLeaseId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "totalCount", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "succeededCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "failedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "skippedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "itemErrors", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", + "name": "skippedItems", + "entityType": "columns" + }, + { "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "table": "MetaCatalogSyncRun", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaFlowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "error", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "startedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'current'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "finishedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27193,11 +26672,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27206,11 +26685,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27219,11 +26698,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27232,11 +26711,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "text", "typeSchema": null, "notNull": true, @@ -27244,142 +26723,142 @@ "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MiniApp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "enabled", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MiniApp", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "definition", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniApp", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "eventName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "flowJson", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniApp", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "submissionsCount", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentCategory", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contentName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "createdAt", + "entityType": "columns" }, { - "type": "numeric", + "schema": "public", + "table": "MiniAppPublication", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'business_messaging'", + "default": null, "generated": null, "identity": null, - "name": "actionSource", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "miniAppId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "whatsappFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppPublication", "type": "text", "typeSchema": null, "notNull": true, @@ -27387,12 +26866,12 @@ "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "sourceId", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppPublication", "type": "text", "typeSchema": null, "notNull": true, @@ -27400,38 +26879,25 @@ "default": null, "generated": null, "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MiniAppPublication", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "validationErrors", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", "schema": "public", - "table": "MetaCapiEvent" - }, - { + "table": "MiniAppPublication", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -27439,25 +26905,12 @@ "default": null, "generated": null, "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "publishedAt", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiError", - "entityType": "columns", "schema": "public", - "table": "MetaCapiEvent" - }, - { + "table": "MiniAppSubmission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27466,11 +26919,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27479,11 +26932,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27492,11 +26945,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27504,12 +26957,12 @@ "default": null, "generated": null, "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27517,90 +26970,64 @@ "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "miniAppId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppSubmission", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "contactId", + "entityType": "columns" }, { - "type": "metaCatalogItemDirection", + "schema": "public", + "table": "MiniAppSubmission", + "type": "miniAppSubmissionSource", "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "'push'", + "default": null, "generated": null, "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "source", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppSubmission", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "answers", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppUpload", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastSyncedFingerprint", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "id", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { + "table": "MiniAppUpload", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27609,11 +27036,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27622,11 +27049,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27635,11 +27062,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27647,350 +27074,337 @@ "default": null, "generated": null, "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "miniAppId", + "entityType": "columns" }, { - "type": "metaCatalogSyncStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, + "table": "MiniAppUpload", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'push'", + "default": null, "generated": null, "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "contactId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppUpload", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "submissionId", + "entityType": "columns" }, { - "type": "metaCatalogSyncScope", - "typeSchema": "public", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'all'", + "default": null, "generated": null, "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "inputName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "uploadToken", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "selectedProductIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "path", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "handles", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "fileName", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "submissionLeaseId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "mimeType", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "size", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "MiniAppUpload", + "type": "miniAppUploadStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "succeededCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "status", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Minigame", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Minigame", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "now()", "generated": null, "identity": null, - "name": "itemErrors", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "skippedItems", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Minigame", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "pollAttempt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "name", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "Minigame", + "type": "minigameType", + "typeSchema": "public", + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "type", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "enabled", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "generalSettings", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "appearance", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "playerSettings", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "prizeSettings", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "winningMessageSettings", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "nonWinningMessageSettings", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Minigame", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "0", "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "playsCount", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "definition", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "participantsCount", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "flowJson", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "winnersCount", + "entityType": "columns" }, { + "schema": "public", + "table": "Minigame", "type": "integer", "typeSchema": null, "notNull": true, @@ -27998,12 +27412,12 @@ "default": "0", "generated": null, "identity": null, - "name": "submissionsCount", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "sharesCount", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28012,11 +27426,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28025,11 +27439,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28038,11 +27452,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28050,12 +27464,12 @@ "default": null, "generated": null, "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "minigameId", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28063,77 +27477,90 @@ "default": null, "generated": null, "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "contactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MinigameContact", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "whatsappFlowId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "openedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MinigameContact", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "played", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MinigameContact", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "remaining", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MinigameContact", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "sharesCount", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MinigameContact", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "publishedAt", - "entityType": "columns", + "name": "referrerContactId", + "entityType": "columns" + }, + { "schema": "public", - "table": "MiniAppPublication" + "table": "MinigameContact", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28142,11 +27569,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28155,11 +27582,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28168,11 +27595,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28180,12 +27607,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "minigameId", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28193,51 +27620,51 @@ "default": null, "generated": null, "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "contactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MinigamePlay", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "isWinning", + "entityType": "columns" }, { - "type": "miniAppSubmissionSource", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "MinigamePlay", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "prizeId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MinigamePlay", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "answers", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "prizeName", + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28246,11 +27673,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28259,11 +27686,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28272,154 +27699,128 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "userId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformCredential", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "type", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformCredential", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "publicConfig", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformCredential", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "value", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformCredential", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "inputName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "livemode", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformCredential", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "uploadToken", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "usePlatformCredential", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", + "table": "PlatformCredential", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "isVerified", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformCredential", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "verifiedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "PlatformCredential", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "lastUsedAt", + "entityType": "columns" }, { - "type": "miniAppUploadStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "MiniAppUpload" - }, - { + "table": "Product", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28428,11 +27829,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28441,11 +27842,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28454,24 +27855,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "Minigame" - }, - { + "table": "Product", "type": "text", "typeSchema": null, "notNull": true, @@ -28480,141 +27868,128 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { - "type": "minigameType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", "schema": "public", - "table": "Minigame" - }, - { - "type": "boolean", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "shortDescription", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "generalSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "longDescription", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "double precision", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "appearance", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "price", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "double precision", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "playerSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "taxes", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "double precision", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "prizeSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "discount", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'USD'", "generated": null, "identity": null, - "name": "winningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "currency", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nonWinningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "productUrl", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "playsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "sku", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "Product", + "type": "inventoryPolicy", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": "'dont_track'", "generated": null, "identity": null, - "name": "participantsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "inventoryPolicy", + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "integer", "typeSchema": null, "notNull": true, @@ -28622,168 +27997,155 @@ "default": "0", "generated": null, "identity": null, - "name": "winnersCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "inventoryQuantity", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "false", "generated": null, "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "allowOutOfStockPurchase", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Product", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "images", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Product", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'[]'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "tags", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Product", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "10", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "rank", + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "categoryId", + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "subcategoryId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "openedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "isActive", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "true", "generated": null, "identity": null, - "name": "played", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "isSearchable", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "false", "generated": null, "identity": null, - "name": "remaining", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "allowSpecialRequest", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "false", "generated": null, "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "isAddonOnly", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", "schema": "public", - "table": "MinigameContact" - }, - { + "table": "Product", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28792,11 +28154,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28805,11 +28167,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28818,11 +28180,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28830,64 +28192,51 @@ "default": null, "generated": null, "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "productId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductAddon", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "name", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "ProductAddon", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "1", "generated": null, "identity": null, - "name": "isWinning", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "maxSelections", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeId", - "entityType": "columns", "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", + "table": "ProductAddon", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "prizeName", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "addonProductIds", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28896,11 +28245,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28909,11 +28258,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28922,11 +28271,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28935,63 +28284,50 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "name": "parentId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductCategory", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "numeric(19,4)", + "table": "ProductCategory", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "10", "generated": null, "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "name": "rank", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29000,11 +28336,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29013,11 +28349,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29026,11 +28362,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29038,272 +28374,311 @@ "default": null, "generated": null, "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "productId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariant", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "combination", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariant", + "type": "double precision", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "price", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariant", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "variantId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "isEnabled", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariantOption", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariantOption", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "variantLabel", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "productId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "ProductVariantOption", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "values", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "10", "generated": null, "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "position", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "vendorName", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "OrderItem" + "table": "QuestionnaireAnswer", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "unitPrice", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "submissionId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "quantity", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "stockTaken", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionIdSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionTitleSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "taxPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionTypeSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "labelSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "taxTotal", - "entityType": "columns", + "name": "value", + "entityType": "columns" + }, + { "schema": "public", - "table": "OrderItem" + "table": "QuestionnaireAnswer", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "1", "generated": null, "identity": null, - "name": "lineTotal", - "entityType": "columns", + "name": "attemptCount", + "entityType": "columns" + }, + { "schema": "public", - "table": "OrderItem" + "table": "QuestionnaireAnswer", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29312,11 +28687,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Order" + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29325,11 +28700,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29338,76 +28713,76 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "number", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "enableScore", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "enableRetryMessages", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "enableCustomFieldMapping", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "deletedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "bigint", "typeSchema": null, "notNull": false, @@ -29415,181 +28790,168 @@ "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "triggerFlowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Questionnaire", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "orderSource", - "typeSchema": "public", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "id", + "entityType": "columns" }, { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "Order" - }, - { - "type": "paymentMethod", - "typeSchema": "public", + "table": "QuestionnaireQuestion", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'cod'", + "default": "now()", "generated": null, "identity": null, - "name": "paymentMethod", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "createdAt", + "entityType": "columns" }, { - "type": "paymentStatus", - "typeSchema": "public", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'unpaid'", + "default": "now()", "generated": null, "identity": null, - "name": "paymentStatus", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "questionnaireId", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "subtotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "title", + "entityType": "columns" }, { - "type": "numeric(19,4)", - "typeSchema": null, + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "questionnaireQuestionType", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "type", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "shippingTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "active", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "serviceFeeTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "image", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "orderNo", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "1", "generated": null, "identity": null, - "name": "couponDiscount", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "point", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "total", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "retryMessage", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "type": "bigint", "typeSchema": null, "notNull": false, @@ -29597,12 +28959,12 @@ "default": null, "generated": null, "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "customFieldId", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "type": "text", "typeSchema": null, "notNull": false, @@ -29610,194 +28972,194 @@ "default": null, "generated": null, "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "systemFieldKey", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerName", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "config", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerEmail", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerPhone", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "id", + "entityType": "columns" }, { - "type": "shippingType", - "typeSchema": "public", - "notNull": false, + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "shippingAddress", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "rating", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "questionnaireId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "ratingComment", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "contactId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "acceptedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "conversationId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'inProgress'", "generated": null, "identity": null, - "name": "shippedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "concludedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "totalPoints", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "currentQuestionId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cancelReason", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "currentQuestionSentAt", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "lastAnsweredMessageId", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29805,38 +29167,38 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "startedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "completedAt", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "cancelledAt", + "entityType": "columns" }, { + "schema": "public", + "table": "RefLinkStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29845,76 +29207,76 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "entityType": "columns" }, { - "type": "orderStatus", - "typeSchema": "public", - "notNull": false, + "schema": "public", + "table": "RefLinkStat", + "type": "bigint", + "typeSchema": null, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fromStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "linkId", + "entityType": "columns" }, { - "type": "orderStatus", - "typeSchema": "public", + "schema": "public", + "table": "RefLinkStat", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "toStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "contactId", + "entityType": "columns" }, { - "type": "orderActorType", - "typeSchema": "public", + "schema": "public", + "table": "RefLinkStat", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actorType", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "RefLinkStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "RefLinkStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29923,11 +29285,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29936,11 +29298,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29949,128 +29311,167 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", + "name": "name", + "entityType": "columns" + }, + { "schema": "public", - "table": "PlatformCredential" + "table": "Reflink", + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Reflink", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "flowId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Reflink", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "publicConfig", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "PlatformCredential" + "table": "Reflink", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "qrStyles", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": "false", + "dimensions": 1, + "default": "ARRAY[]", "generated": null, "identity": null, - "name": "livemode", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetAuthorizedDomains", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": "false", + "dimensions": 1, + "default": "ARRAY[]", "generated": null, "identity": null, - "name": "usePlatformCredential", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetHiddenInboxIds", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Reflink", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isVerified", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetLogoFileId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetBrandName", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastUsedAt", - "entityType": "columns", + "name": "widgetBrandUrl", + "entityType": "columns" + }, + { "schema": "public", - "table": "PlatformCredential" + "table": "Reflink", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30079,11 +29480,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30092,11 +29493,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30105,258 +29506,310 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "ResponseSlaPolicy", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "firstResponseTargetSeconds", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "longDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "nextResponseTargetSeconds", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "25", "generated": null, "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "breachingThresholdPercent", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "SavedReply", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "taxes", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "id", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "SavedReply", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "discount", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SavedReply", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'USD'", + "default": "now()", "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReply", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "productUrl", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "shortcut", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReply", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "text", + "entityType": "columns" }, { - "type": "inventoryPolicy", - "typeSchema": "public", + "schema": "public", + "table": "SavedReply", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'dont_track'", + "default": null, "generated": null, "identity": null, - "name": "inventoryPolicy", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SavedReplyImage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "inventoryQuantity", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "SavedReplyImage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "allowOutOfStockPurchase", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SavedReplyImage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "now()", "generated": null, "identity": null, - "name": "images", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SavedReplyImage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "tags", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "savedReplyId", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReplyImage", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "vendorId", - "entityType": "columns", + "name": "mediaLibraryFileId", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "SavedReplyImage", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReplyImage", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "position", + "entityType": "columns" }, { + "schema": "public", + "table": "Sequence", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Sequence", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "subcategoryId", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "Sequence", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Sequence", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", + "name": "name", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "Sequence", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns" }, { + "schema": "public", + "table": "Sequence", "type": "boolean", "typeSchema": null, "notNull": true, @@ -30364,38 +29817,38 @@ "default": "true", "generated": null, "identity": null, - "name": "isSearchable", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "active", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Sequence", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "0", "generated": null, "identity": null, - "name": "allowSpecialRequest", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "subscribers", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Sequence", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "0", "generated": null, "identity": null, - "name": "isAddonOnly", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "messages", + "entityType": "columns" }, { + "schema": "public", + "table": "Sequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30404,11 +29857,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30417,11 +29870,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30430,11 +29883,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30443,11 +29896,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30455,168 +29908,181 @@ "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "runAtMs", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceDispatch", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": "0", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "bucket", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SequenceDispatch", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "1", + "default": "'pending'", "generated": null, "identity": null, - "name": "maxSelections", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "status", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "SequenceDispatch", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "addonProductIds", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "idempotencyKey", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceDispatch", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "attempt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceDispatch", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "lastError", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "lockedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceDispatch", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "lockOwner", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "completedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "deliveredAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "seenAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "isVisible", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "clickedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "rank", - "entityType": "columns", + "name": "failedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "ProductCategory" + "table": "SequenceDispatch", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30624,38 +30090,38 @@ "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "sequenceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30663,51 +30129,54 @@ "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "stepId", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "enrollmentId", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "boolean", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", - "generated": null, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, "identity": null, - "name": "isEnabled", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "isRead", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30716,11 +30185,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30729,11 +30198,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30742,232 +30211,258 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceStep", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "order", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceStep", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "delayDays", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SequenceStep", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "0", "generated": null, "identity": null, - "name": "values", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "delayMinutes", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SequenceStep", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "delayUnit", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceStep", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "specificDateTime", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceStep", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "isActive", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceStep", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", + "name": "anytime", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireAnswer" + "table": "SequenceStep", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceStep", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "submissionId", - "entityType": "columns", + "name": "sendTimeEnd", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireAnswer" + "table": "SequenceStep", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "questionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceStep", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "questionIdSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "sequenceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Spreadsheet", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "questionTitleSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Spreadsheet", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "questionTypeSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Spreadsheet", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "labelSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Spreadsheet", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Spreadsheet", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pointsEarned", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Spreadsheet", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "1", + "default": null, "generated": null, "identity": null, - "name": "attemptCount", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "url", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Spreadsheet", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "answeredAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "spreadsheetId", + "entityType": "columns" }, { + "schema": "public", + "table": "SystemField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30976,11 +30471,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "SystemField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30989,11 +30484,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "SystemField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31002,63 +30497,89 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "Questionnaire" + "table": "SystemField", + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SystemField", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "payload", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tag", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "enableScore", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tag", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "enableRetryMessages", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tag", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "now()", "generated": null, "identity": null, - "name": "enableCustomFieldMapping", - "entityType": "columns", + "name": "updatedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "Questionnaire" + "table": "Tag", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "Tag", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -31067,11 +30588,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "Tag", "type": "bigint", "typeSchema": null, "notNull": false, @@ -31079,12 +30600,12 @@ "default": null, "generated": null, "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "folderId", + "entityType": "columns" }, { + "schema": "public", + "table": "Tag", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31093,11 +30614,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31106,11 +30627,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31119,11 +30640,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31132,11 +30653,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31144,155 +30665,181 @@ "default": null, "generated": null, "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TagChannel", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "tagId", + "entityType": "columns" }, { - "type": "questionnaireQuestionType", - "typeSchema": "public", + "schema": "public", + "table": "TagChannel", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "channelType", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TagChannel", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "integrationId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "TagChannel", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "externalLabelId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TelegramChat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "orderNo", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TelegramChat", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "1", + "default": "now()", "generated": null, "identity": null, - "name": "point", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireQuestion" + "table": "TelegramChat", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TelegramChat", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "retryMessage", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "TelegramChat", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "TelegramChat", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "systemFieldKey", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "chatId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "TelegramChat", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "title", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "TelegramChat", + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", + "name": "type", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireQuestion" + "table": "TelegramChat", + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31301,11 +30848,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31314,11 +30861,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31327,11 +30874,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31340,11 +30887,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31352,129 +30899,168 @@ "default": null, "generated": null, "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "tenantId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "description", + "entityType": "columns" }, { - "type": "questionnaireSubmissionStatus", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Template", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'inProgress'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "imageUrl", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "totalPoints", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "publisherName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currentQuestionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "youtubeVideoId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currentQuestionSentAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "testLink", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastAnsweredMessageId", - "entityType": "columns", + "name": "selection", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireSubmission" + "table": "Template", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "startedAt", - "entityType": "columns", + "name": "categoryCounts", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireSubmission" + "table": "Template", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", + "name": "shareToken", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireSubmission" + "table": "Template", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -31482,90 +31068,90 @@ "default": null, "generated": null, "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "shareExpiresAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "defaultPermissions", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "createInstallFolder", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "defaultAutoUpdate", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "installCount", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "createdBy", + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "deletedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31574,11 +31160,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31587,11 +31173,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31600,50 +31186,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "ReflinkType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "TemplateInstallation", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'refLink'", + "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "templateId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TemplateInstallation", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "templateName", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31651,64 +31237,103 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "sourceWorkspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TemplateInstallation", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customFieldId", - "entityType": "columns", + "name": "formatVersion", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "qrStyles", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "permissions", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", + "dimensions": 0, + "default": "'[]'", "generated": null, "identity": null, - "name": "widgetAuthorizedDomains", - "entityType": "columns", + "name": "warnings", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "text", "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", + "notNull": false, + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "widgetHiddenInboxIds", - "entityType": "columns", + "name": "errorMessage", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -31716,51 +31341,64 @@ "default": null, "generated": null, "identity": null, - "name": "widgetLogoFileId", - "entityType": "columns", + "name": "installFolderId", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "widgetBrandName", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "sourceUpdatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "widgetBrandUrl", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "installedBy", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "widgetLogoBackgroundColor", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "completedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31769,11 +31407,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31782,11 +31420,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31795,11 +31433,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31807,207 +31445,181 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "installationId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "TemplateInstalledResource", + "type": "templateResourceCategory", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "firstResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "category", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nextResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "resourceKind", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "25", + "default": null, "generated": null, "identity": null, - "name": "breachingThresholdPercent", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "resourceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "sourceResourceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "wasExisting", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", + "table": "Trigger", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shortcut", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Trigger", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Trigger", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Trigger", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "name", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", + "table": "Trigger", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "active", + "entityType": "columns" }, { + "schema": "public", + "table": "Trigger", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "savedReplyId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "folderId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Trigger", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "mediaLibraryFileId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "actions", + "entityType": "columns" }, { + "schema": "public", + "table": "Trigger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32016,24 +31628,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", "schema": "public", - "table": "SavedReplyImage" - }, - { + "table": "Condition", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32042,11 +31641,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "entityType": "columns" }, { + "schema": "public", + "table": "Condition", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32055,11 +31654,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "entityType": "columns" }, { + "schema": "public", + "table": "Condition", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32068,24 +31667,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Condition", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "triggerId", + "entityType": "columns" }, { + "schema": "public", + "table": "Condition", "type": "bigint", "typeSchema": null, "notNull": false, @@ -32093,64 +31692,64 @@ "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "webhookId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Condition", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "type", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Condition", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "subscribers", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "sourceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Condition", + "type": "varchar(255)", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "operator", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Condition", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "value", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32159,11 +31758,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32172,11 +31771,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32185,11 +31784,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32197,181 +31796,181 @@ "default": null, "generated": null, "identity": null, - "name": "runAtMs", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "triggerId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TriggerContactHistory", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "bucket", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "contactId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerContactHistory", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerContactHistory", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "firstEnteredAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerExecution", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerExecution", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerExecution", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "executedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "triggerId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "contactId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerStat", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerStat", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32379,12 +31978,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "triggerId", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32392,80 +31991,77 @@ "default": null, "generated": null, "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "date", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "totalContacts", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "successCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "enrollmentId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "failureCount", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, + "default": "0", + "generated": null, "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "totalExecutions", + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32474,11 +32070,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32487,11 +32083,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32500,154 +32096,154 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "UserDeviceToken", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "order", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "userId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "UserDeviceToken", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "delayDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "UserDeviceToken", + "type": "devicePlatform", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "delayMinutes", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "platform", + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "delayUnit", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "token", + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "specificDateTime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "lastSeenAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "UserPersistentMenu", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "UserPersistentMenu", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "now()", "generated": null, "identity": null, - "name": "anytime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserPersistentMenu", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "sendTimeStart", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "UserPersistentMenu", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sendTimeEnd", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserPersistentMenu", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "default": "", "generated": null, "identity": null, - "name": "sendDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "menus", + "entityType": "columns" }, { + "schema": "public", + "table": "UserPersistentMenu", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "Webhook", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32655,25 +32251,12 @@ "default": null, "generated": null, "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "Spreadsheet" - }, - { + "table": "Webhook", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32682,11 +32265,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "entityType": "columns" }, { + "schema": "public", + "table": "Webhook", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32695,24 +32278,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "Spreadsheet" - }, - { + "table": "Webhook", "type": "text", "typeSchema": null, "notNull": true, @@ -32721,102 +32291,63 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", + "table": "Webhook", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "spreadsheetId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "name": "active", + "entityType": "columns" }, { + "schema": "public", + "table": "Webhook", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SystemField" + "name": "folderId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", + "table": "Webhook", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "SystemFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "SystemField" + "name": "url", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Webhook", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "SystemField" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32825,11 +32356,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32838,11 +32369,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32851,50 +32382,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WebhookExecution", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "name": "executedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WebhookExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "name": "webhookId", + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32903,11 +32434,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32916,11 +32447,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32929,11 +32460,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32942,11 +32473,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32955,24 +32486,24 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "wabaId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "text", "typeSchema": null, "notNull": true, @@ -32980,77 +32511,90 @@ "default": null, "generated": null, "identity": null, - "name": "channelType", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "businessId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "credential", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "'{}'", "generated": null, "identity": null, - "name": "externalLabelId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "grantedScopes", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "scopeCheckedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", + "name": "provisionedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "TelegramChat" + "table": "WhatsappBusinessAccount", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "revision", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33058,38 +32602,51 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "TelegramChat" + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "chatId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "wacid", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, "notNull": false, @@ -33097,155 +32654,155 @@ "default": null, "generated": null, "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "attemptId", + "entityType": "columns" }, { - "type": "telegramChatType", + "schema": "public", + "table": "WhatsappCall", + "type": "whatsappCallDirection", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "direction", + "entityType": "columns" }, { - "type": "telegramBotChatStatus", + "schema": "public", + "table": "WhatsappCall", + "type": "whatsappCallStatus", "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'ringing'", "generated": null, "identity": null, - "name": "botStatus", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "WhatsappCall", + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "outcome", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "startedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "endedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCall", + "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "durationSeconds", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "messageId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "lastError", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "answeredByUserId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "initiatedByUserId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "boolean", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "publisherName", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordingRequested", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, "notNull": false, @@ -33253,12 +32810,12 @@ "default": null, "generated": null, "identity": null, - "name": "youtubeVideoId", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordingFailureReason", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, "notNull": false, @@ -33266,90 +32823,77 @@ "default": null, "generated": null, "identity": null, - "name": "testLink", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordingPath", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "selection", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "transcript", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryCounts", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "transcribedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCall", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "transcriptSegments", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shareToken", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "aiSummary", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "shareEnabled", - "entityType": "columns", "schema": "public", - "table": "Template" - }, - { + "table": "WhatsappCall", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -33357,90 +32901,77 @@ "default": null, "generated": null, "identity": null, - "name": "shareExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "aiSummarizedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "defaultPermissions", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "aiSummaryProvider", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "createInstallFolder", - "entityType": "columns", "schema": "public", - "table": "Template" - }, - { - "type": "boolean", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "defaultAutoUpdate", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "installCount", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "conversationId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCallPermission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33449,11 +32980,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCallPermission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33462,11 +32993,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCallPermission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33475,180 +33006,167 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "WhatsappCallPermission", + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "response", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "isPermanent", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "templateName", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "expiresAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceWorkspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "respondedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "templateInstallationStatus", - "typeSchema": "public", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "now()", "generated": null, "identity": null, - "name": "warnings", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "warningCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "phoneNumberId", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resourceCount", - "entityType": "columns", "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", + "table": "WhatsappCoexistStaging", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "installFolderId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "payload", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoUpdate", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "payloadHash", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -33656,25 +33174,12 @@ "default": null, "generated": null, "identity": null, - "name": "sourceUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "processedAt", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installedBy", - "entityType": "columns", "schema": "public", - "table": "TemplateInstallation" - }, - { + "table": "WhatsappCoexistStaging", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -33682,12 +33187,12 @@ "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "parseFailedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33696,11 +33201,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33709,11 +33214,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33722,24 +33227,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappFlow", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "installationId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33747,25 +33252,25 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "templateResourceCategory", - "typeSchema": "public", + "schema": "public", + "table": "WhatsappFlow", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "sourceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "text", "typeSchema": null, "notNull": true, @@ -33773,51 +33278,64 @@ "default": null, "generated": null, "identity": null, - "name": "resourceKind", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappFlow", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "resourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "categories", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappFlow", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "sourceResourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "validationErrors", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "WhatsappFlow", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "0", "generated": null, "identity": null, - "name": "wasExisting", - "entityType": "columns", + "name": "completedCount", + "entityType": "columns" + }, + { "schema": "public", - "table": "TemplateInstalledResource" + "table": "WhatsappFlow", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33826,11 +33344,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33839,11 +33357,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33852,11 +33370,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "text", "typeSchema": null, "notNull": true, @@ -33865,63 +33383,89 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "name": "sourceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "actions", - "entityType": "columns", + "name": "language", + "entityType": "columns" + }, + { "schema": "public", - "table": "Trigger" + "table": "WhatsappMessageTemplate", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", + "name": "status", + "entityType": "columns" + }, + { "schema": "public", - "table": "Trigger" + "table": "WhatsappMessageTemplate", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33930,11 +33474,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33943,11 +33487,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33956,180 +33500,154 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", "schema": "public", - "table": "Condition" - }, - { + "table": "WhatsappSignupSession", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "userId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "ownerId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", "schema": "public", - "table": "Condition" - }, - { - "type": "varchar(255)", + "table": "WhatsappSignupSession", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "operator", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "wabaId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "businessId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "encryptedAccessToken", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "apiVersion", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, + "dimensions": 1, "default": null, "generated": null, "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "candidatePhoneNumberIds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "'{}'", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "claimedPhoneNumberIds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "expiresAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "firstEnteredAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "consumedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHours", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34138,11 +33656,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHours", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34151,11 +33669,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHours", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34164,24 +33682,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", "schema": "public", - "table": "TriggerExecution" - }, - { + "table": "WorkingHours", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34189,38 +33694,25 @@ "default": null, "generated": null, "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", + "table": "WorkingHours", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34229,11 +33721,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34242,11 +33734,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34255,11 +33747,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34267,26 +33759,26 @@ "default": null, "generated": null, "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "workingHoursId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkingHoursDateOverride", + "type": "date", "typeSchema": null, "notNull": true, "dimensions": 0, @@ -34294,63 +33786,37 @@ "generated": null, "identity": null, "name": "date", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", + "table": "WorkingHoursDateOverride", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "name", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failureCount", - "entityType": "columns", "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", + "table": "WorkingHoursDateOverride", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalExecutions", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "ranges", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34359,11 +33825,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34372,11 +33838,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34385,11 +33851,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34397,64 +33863,51 @@ "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "workingHoursId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "devicePlatform", - "typeSchema": "public", + "table": "WorkingHoursInterval", + "type": "integer", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "weekday", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkingHoursInterval", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "startMinute", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkingHoursInterval", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "endMinute", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34463,11 +33916,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34476,11 +33929,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34489,37 +33942,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkingHoursMember", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "name": "workingHoursId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WorkingHoursMember", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", + "default": null, "generated": null, "identity": null, - "name": "menus", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34527,12 +33980,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "name": "userId", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34541,11 +33994,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34554,11 +34007,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34567,24 +34020,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "Vendor" - }, - { + "table": "Workspace", "type": "text", "typeSchema": null, "notNull": true, @@ -34593,11 +34033,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "text", "typeSchema": null, "notNull": false, @@ -34605,25 +34045,25 @@ "default": null, "generated": null, "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "defaultReply", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "Workspace", + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'allTime'", "generated": null, "identity": null, - "name": "phone", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "defaultReplyFrequency", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "text", "typeSchema": null, "notNull": false, @@ -34631,220 +34071,220 @@ "default": null, "generated": null, "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "targetCountry", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'en'", "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "language", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "'UTC'", "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "timezone", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "'#016DFF'", "generated": null, "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "brandColor", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Workspace", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "false", "generated": null, "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "developmentMode", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "smartResponseDelaySeconds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "isActive", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "startTime", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "endTime", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "logo", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "scheduledDeletionAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "purgeStartedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Workspace", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "supportAccessUntil", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "false", "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "capiLimitedDataUse", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "token", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Workspace", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "ownerId", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "1", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "tenantId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34853,11 +34293,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34866,11 +34306,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34879,24 +34319,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", "schema": "public", - "table": "WebhookExecution" - }, - { + "table": "WorkspaceApiToken", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34904,181 +34331,181 @@ "default": null, "generated": null, "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "WorkspaceApiToken", + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "name": "permission", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "tokenHash", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "tokenPrefix", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "isDefault", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "encryptedToken", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "text", "typeSchema": null, - "notNull": true, - "dimensions": 0, + "notNull": false, + "dimensions": 1, "default": null, "generated": null, "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "scopes", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMac", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WorkspaceMac", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMac", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "'{}'", + "dimensions": 0, + "default": "now()", "generated": null, "identity": null, - "name": "grantedScopes", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceMac", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "scopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMac", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "provisionedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "periodStart", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMac", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "creditLineId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "periodEnd", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMac", "type": "integer", "typeSchema": null, "notNull": true, @@ -35086,12 +34513,12 @@ "default": "0", "generated": null, "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "macCount", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -35100,11 +34527,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -35113,11 +34540,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -35126,2079 +34553,3560 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMember", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "wacid", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMember", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "attemptId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "userId", + "entityType": "columns" }, { - "type": "whatsappCallDirection", + "schema": "public", + "table": "WorkspaceMember", + "type": "workspaceMemberRole", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "role", + "entityType": "columns" }, { - "type": "whatsappCallStatus", - "typeSchema": "public", + "schema": "public", + "table": "WorkspaceMember", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'ringing'", + "default": "'{}'", "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "notificationChannels", + "entityType": "columns" }, { - "type": "whatsappCallOutcome", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", + "table": "WorkspaceMember", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'{}'", "generated": null, "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "notificationTypes", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "integer", + "table": "WorkspaceMember", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'{}'", "generated": null, "identity": null, - "name": "durationSeconds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "permissions", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", + "table": "WorkspaceMember", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "onlineSince", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answeredByUserId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "MessageShard", + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "initiatedByUserId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "MessageShard", + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingRequested", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "ShardTimeRange", + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingFailureReason", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "ShardTimeRange", + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingPath", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcript", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcribedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcriptSegments", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummary", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummarizedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummaryProvider", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionRule", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes" }, { - "type": "whatsappCallPermissionResponse", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "response", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isPermanent", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "respondedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payloadHash", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parseFailedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsAgentResponseEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBotMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBotMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBotMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBroadcastEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsContactEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsContactEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "categories", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsContactEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsConversationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "completedCount", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "screens", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAccessToken", - "entityType": "columns", - "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsConversationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "apiVersion", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsFlowNodeEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "candidatePhoneNumberIds", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsFlowNodeEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "claimedPhoneNumberIds", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", + "table": "AnalyticsSequenceEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes" + }, + { "schema": "public", - "table": "WorkingHours" + "table": "AnalyticsEmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AnalyticsEmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AnalyticsEmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AnalyticsManifestStatus", + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes" }, { - "type": "date", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AppointmentCalendar", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AppointmentCalendar", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AppointmentCalendar", + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AppointmentCalendarAvailability", + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AppointmentCalendarReminder", + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Attachment", + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Attachment", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Attachment", + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Account", + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Invitation", + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Session", + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "User", + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "User", + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "AutomatedResponse", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "AutomationThrottle", + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "AutomationThrottle", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultReply", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BotField", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes" }, { - "type": "defaultReplyFrequency", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'allTime'", - "generated": null, - "identity": null, - "name": "defaultReplyFrequency", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetCountry", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'en'", - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'UTC'", - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'#016DFF'", - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "developmentMode", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "smartResponseDelaySeconds", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrence", + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrence", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrence", + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scheduledDeletionAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purgeStartedAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "supportAccessUntil", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "capiLimitedDataUse", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastTarget", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastTarget", + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "ChannelPost", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "ChannelPost", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "ChannelPost", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes" }, { - "type": "WorkspaceApiTokenPermission", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permission", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedToken", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomation", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "scopes", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomation", + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomation", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macCount", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "CommentAutomationReply", + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes" }, { - "type": "workspaceMemberRole", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "CommentAutomationReply", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationChannels", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "ConnectSession", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationTypes", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "ConnectSession", + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "ConnectSession", + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "onlineSince", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" - }, - { + "table": "ConnectSession", "nameExplicit": true, "columns": [ { - "value": "isActive", + "value": "stateNonceHash", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "MessageShard_isActive_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Connection", "nameExplicit": true, "columns": [ { - "value": "shardKey", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "MessageShard_shardKey_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Connection", "nameExplicit": true, "columns": [ { - "value": "startTime", + "value": "provider", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "endTime", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37210,33 +38118,75 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ShardTimeRange_time_lookup_idx", - "entityType": "indexes", + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes" + }, + { "schema": "public", - "table": "ShardTimeRange" + "table": "Connection", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Connection", "nameExplicit": true, "columns": [ { - "value": "shardId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ShardTimeRange_shardId_idx", - "entityType": "indexes", + "name": "Connection_integrationId_key", + "entityType": "indexes" + }, + { "schema": "public", - "table": "ShardTimeRange" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes" }, { + "schema": "public", + "table": "Contact", "nameExplicit": true, "columns": [ { @@ -37247,38 +38197,52 @@ "opclass": null }, { - "value": "integrationWhatsappId", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Contact", + "nameExplicit": true, + "columns": [ { - "value": "source", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", + "value": "email", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "idx_contact_workspace_email", + "entityType": "indexes" }, { + "schema": "public", + "table": "Contact", "nameExplicit": true, "columns": [ { @@ -37289,105 +38253,243 @@ "opclass": null }, { - "value": "integrationWhatsappId", + "value": "phoneNumber", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Contact", + "nameExplicit": true, + "columns": [ { - "value": "source", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", - "isExpression": false, + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"channel\" = 'whatsapp'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", - "entityType": "indexes", + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes" + }, + { "schema": "public", - "table": "AdsConversionEvent" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Contact", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_email_trgm_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactCustomField", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "integrationMessengerId", + "value": "customFieldId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactCustomField", + "nameExplicit": true, + "columns": [ { - "value": "source", + "value": "customFieldId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"channel\" = 'messenger'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "integrationInstagramId", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactInbox", + "nameExplicit": true, + "columns": [ { - "value": "source", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", + "value": "sourceUserId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37395,34 +38497,55 @@ } ], "isUnique": true, - "where": "\"channel\" = 'instagram'", + "where": "\"sourceUserId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "eventType", + "value": "sourceParentUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"sourceParentUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactInbox", + "nameExplicit": true, + "columns": [ + { + "value": "profileSnapshotNextAttemptAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37430,20 +38553,27 @@ } ], "isUnique": false, - "where": null, + "where": "\"profileSnapshotState\" = 'pending'", "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37455,23 +38585,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37479,34 +38609,27 @@ } ], "isUnique": false, - "where": null, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "adId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "lastIncomingMessageAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37518,30 +38641,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "enabled", + "value": "lastOutboundMessageAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37553,117 +38669,107 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionRule_workspaceId_channel_enabled_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionRule" + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, "asc": true, "nullsFirst": false, "opclass": null } ], "isUnique": false, - "where": null, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AIAgent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIAgent" + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, + "value": "(\"referral\"->>'adId')", + "isExpression": true, "asc": true, "nullsFirst": false, "opclass": null } ], "isUnique": false, - "where": null, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_sourceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInboxPost", "nameExplicit": true, "columns": [ { - "value": "sourceId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "chunkIndex", + "value": "postId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_sourceId_chunkIndex_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactNote", "nameExplicit": true, "columns": [ { - "value": "embedding", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "vector_cosine_ops", - "default": false - } + "opclass": null } ], "isUnique": false, "where": null, "with": "", - "method": "hnsw", + "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_embedding_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactNote_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnBroadcast", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37675,37 +38781,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnBroadcast", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37717,37 +38802,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnBroadcast", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", + "value": "isRead", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37759,51 +38823,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnBroadcast", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", + "value": "broadcastId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceKey", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { - "value": "messageId", + "value": "sequenceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37815,16 +38872,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_messageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37836,12 +38893,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { @@ -37857,16 +38914,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIEmbedding_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { - "value": "aiFileId", + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37878,12 +38942,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIEmbedding_aiFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { @@ -37892,6 +38956,20 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -37899,44 +38977,30 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIFile" + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_live_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "inboxId", + "value": "sequenceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "revision", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37948,12 +39012,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverBulkRun_inbox_revision_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { @@ -37962,31 +39026,24 @@ "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "inboxId", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "\"createdAt\" DESC", - "isExpression": true, + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null @@ -37997,12 +39054,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverBulkRun_inbox_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { @@ -38013,7 +39070,7 @@ "opclass": null }, { - "value": "lastHeartbeatAt", + "value": "triggerAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38021,20 +39078,20 @@ } ], "isUnique": false, - "where": "status IN ('pending', 'running', 'cancelling')", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverBulkRun_live_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "requestedByUserId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38046,33 +39103,33 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverBulkRun_requestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "appointmentId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { @@ -38081,44 +39138,86 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "applyToAllRequestedByUserId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactToTagChannel", "nameExplicit": true, "columns": [ { - "value": "gotoFlowId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38130,23 +39229,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_gotoFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactToTagChannel", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "tagId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38158,58 +39250,65 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "aiProvider", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": "\"sourceId\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_contactId_dm_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Conversation", + "nameExplicit": true, + "columns": [ { - "value": "occurredAt", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38221,12 +39320,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "Conversation_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { @@ -38237,21 +39336,28 @@ "opclass": null }, { - "value": "hasResponse", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "result", + "value": "responseDueAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": "\"responseDueAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Conversation", + "nameExplicit": true, + "columns": [ { - "value": "occurredAt", + "value": "aiContextLastMessageId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38263,12 +39369,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { @@ -38279,21 +39385,35 @@ "opclass": null }, { - "value": "broadcastId", + "value": "lastActivityAt", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null }, { - "value": "eventType", + "value": "id", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": true, + "columns": [ { - "value": "occurredAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38305,47 +39425,61 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ConversationParticipant", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": true, + "columns": [ { - "value": "occurredAt", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "eventType", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38356,31 +39490,24 @@ "opclass": null }, { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "code", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38391,31 +39518,31 @@ "opclass": null }, { - "value": "adminId", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38426,14 +39553,7 @@ "opclass": null }, { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38445,12 +39565,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38461,14 +39581,14 @@ "opclass": null }, { - "value": "toAssignee", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38480,44 +39600,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Coupon", + "nameExplicit": true, + "columns": [ { - "value": "nodeId", + "value": "issuedAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Coupon", + "nameExplicit": true, + "columns": [ { - "value": "occurredAt", + "value": "usedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38529,12 +39663,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "name": "Coupon_usedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38545,35 +39679,49 @@ "opclass": null }, { - "value": "flowId", + "value": "code", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Coupon", + "nameExplicit": true, + "columns": [ { - "value": "analyticsId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "nodeId", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "buttonId", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "usedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38585,12 +39733,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CouponTopic", "nameExplicit": true, "columns": [ { @@ -38601,14 +39749,14 @@ "opclass": null }, { - "value": "occurredAt", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "eventType", + "value": "deletedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38620,12 +39768,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CouponTopic", "nameExplicit": true, "columns": [ { @@ -38636,14 +39784,7 @@ "opclass": null }, { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "expiresAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38655,12 +39796,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CouponTopic", "nameExplicit": true, "columns": [ { @@ -38671,31 +39812,24 @@ "opclass": null }, { - "value": "adminId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, + "value": "lower(\"name\")", + "isExpression": true, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"deletedAt\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CustomField", "nameExplicit": true, "columns": [ { @@ -38706,31 +39840,31 @@ "opclass": null }, { - "value": "senderType", + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionConnection", "nameExplicit": true, "columns": [ { @@ -38739,72 +39873,72 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "DecisionConnection", + "nameExplicit": true, + "columns": [ { - "value": "eventType", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { - "value": "token", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsEmailTopic_token_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { - "value": "topicId", + "value": "connectionId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38816,12 +39950,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsEmailTopic_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { @@ -38832,28 +39966,28 @@ "opclass": null }, { - "value": "topicId", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { - "value": "objectKey", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38861,16 +39995,16 @@ } ], "isUnique": true, - "where": null, + "where": "\"globalRouterEnabled\" = true", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsManifestStatus_objectKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsManifestStatus" + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DynamicImage", "nameExplicit": true, "columns": [ { @@ -38879,19 +40013,26 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "EmailTopic", "nameExplicit": true, "columns": [ { @@ -38902,44 +40043,65 @@ "opclass": null }, { - "value": "startAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_workspaceId_startAt_idx", - "entityType": "indexes", + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes" + }, + { "schema": "public", - "table": "Appointment" + "table": "EmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ { - "value": "calendarId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null }, { - "value": "startAt", + "value": "id", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null } @@ -38949,100 +40111,121 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_calendarId_status_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "calendarId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, "nullsFirst": false, "opclass": null } ], "isUnique": false, - "where": null, + "where": "\"userId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_contactId_calendarId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CustomDomain", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendar_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" + "name": "CustomDomain_tenantId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "CustomDomain", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "domain", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CustomDomain_domain_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "CustomDomain", + "nameExplicit": true, + "columns": [ { - "value": "name", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendar_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" + "name": "CustomDomain_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "License", "nameExplicit": true, "columns": [ { - "value": "publicLinkSlug", + "value": "licenseId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39054,110 +40237,138 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendar_publicLinkSlug_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" + "name": "License_licenseId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformAdmin", "nameExplicit": true, "columns": [ { - "value": "calendarId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendarAvailability_calendarId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "name": "PlatformAdmin_userId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Tenant", "nameExplicit": true, "columns": [ { - "value": "calendarId", + "value": "ownerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Tenant_ownerId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "TenantHelpItem", + "nameExplicit": true, + "columns": [ { - "value": "flowId", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "timingValue", + "value": "position", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "UserQuota", + "nameExplicit": true, + "columns": [ { - "value": "timingUnit", + "value": "channelsTornDownAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendarReminder_dedupe_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarReminder" + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "UserQuota", "nameExplicit": true, "columns": [ { - "value": "jobId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_jobId_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ErrorLog", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sendAt", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], @@ -39166,16 +40377,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_status_sendAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ErrorLog", "nameExplicit": true, "columns": [ { - "value": "appointmentId", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39187,16 +40398,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ErrorLog", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39208,25 +40419,25 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "ErrorLog_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ExternalWebhook", "nameExplicit": true, "columns": [ { - "value": "messageId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "messageCreatedAt", + "value": "event", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -39236,12 +40447,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Attachment_message_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ExternalWebhook", "nameExplicit": true, "columns": [ { @@ -39252,140 +40463,140 @@ "opclass": null }, { - "value": "createdAt", + "value": "event", "isExpression": false, - "asc": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "url", + "isExpression": false, + "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Attachment_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "createdAt", + "value": "pageId", "isExpression": false, - "asc": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", + "isExpression": false, + "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Attachment_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "nameExplicit": true, "columns": [ { - "value": "providerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "accountId", + "value": "automationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "tenantId", + "value": "leadgenId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Account_providerId_accountId_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Account" + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "nameExplicit": true, "columns": [ { - "value": "code", + "value": "leadgenId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Invitation_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Invitation" + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "nameExplicit": true, "columns": [ { - "value": "token", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Session_token_key", - "entityType": "indexes", - "schema": "public", - "table": "Session" + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "nameExplicit": true, "columns": [ { - "value": "email", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "tenantId", + "value": "campaignId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39397,58 +40608,65 @@ "with": "", "method": "btree", "concurrently": false, - "name": "User_email_tenant_key", - "entityType": "indexes", - "schema": "public", - "table": "User" + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookMarketingMessagesAuth", "nameExplicit": true, "columns": [ { - "value": "tenantId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "User_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "User" + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "File", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "path", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AutomatedResponse_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomatedResponse" + "name": "File_path_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "File", "nameExplicit": true, "columns": [ { - "value": "lastTriggeredAt", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contextType", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39460,16 +40678,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AutomationThrottle_lastTriggeredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "File", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "subType", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39481,30 +40706,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AutomationThrottle_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" + "name": "File_workspaceId_subType_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "name", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39512,20 +40730,20 @@ } ], "isUnique": true, - "where": null, + "where": "\"deletedAt\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "BotField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "BotField" + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39537,12 +40755,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowNodeStat", "nameExplicit": true, "columns": [ { @@ -39553,7 +40771,28 @@ "opclass": null }, { - "value": "channel", + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39561,20 +40800,34 @@ } ], "isUnique": false, - "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowNodeStat", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39582,20 +40835,20 @@ } ], "isUnique": false, - "where": null, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowRun", "nameExplicit": true, "columns": [ { - "value": "channel", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39607,16 +40860,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowRun_conversationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Folder", "nameExplicit": true, "columns": [ { - "value": "schedulesAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39628,16 +40881,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_schedulesAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "Folder_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Folder", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "parentId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39649,86 +40902,100 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "Folder_parentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "deletedAt", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "transactionId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"deletedAt\" IS NOT NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "parentBroadcastId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurrenceAt", + "value": "occurredAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_parentBroadcastId_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "broadcastId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrence_broadcastId_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39740,23 +41007,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "nextRunAt", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "id", + "value": "nextProcessingCheckAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39764,34 +41031,48 @@ } ], "isUnique": false, - "where": "\"nextRunAt\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrence_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "recurrenceId", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "localSlot", + "value": "claimedAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "GoogleAdsSettings", + "nameExplicit": true, + "columns": [ { - "value": "occurrenceAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39803,27 +41084,20 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IgStoryAutomation", "nameExplicit": true, "columns": [ { - "value": "recurrenceId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "occurrenceAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -39831,16 +41105,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IgStoryAutomation", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39852,16 +41126,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IgStoryAutomation", "nameExplicit": true, "columns": [ { - "value": "childBroadcastId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39873,16 +41147,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39894,16 +41175,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastTarget_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" + "name": "Import_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39915,44 +41203,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastTarget_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" + "name": "Import_workspaceId_type_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "contactId", + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Cart_workspaceId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Cart" + "name": "Import_inboxId_type_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "fileId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39964,16 +41252,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Cart_contactId_idx", - "entityType": "indexes", + "name": "Import_fileId_idx", + "entityType": "indexes" + }, + { "schema": "public", - "table": "Cart" + "table": "Import", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Import_products_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhook", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39985,51 +41294,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Cart_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhook", "nameExplicit": true, "columns": [ { - "value": "lastActivityAt", + "value": "token", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"abandonedNotifiedAt\" IS NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Cart_abandoned_scan_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" + "name": "InboundWebhook_token_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", + "value": "inboundWebhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "externalPostId", + "value": "idempotencyKey", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40037,34 +41339,27 @@ } ], "isUnique": true, - "where": null, + "where": "\"idempotencyKey\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "ChannelPost_workspaceId_channel_externalPostId_key", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboundWebhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "createdAt", "isExpression": false, "asc": false, "nullsFirst": false, @@ -40076,16 +41371,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ChannelPost_workspaceId_sortAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40097,16 +41392,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ChannelPost_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40118,16 +41413,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40139,23 +41434,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40163,181 +41451,160 @@ } ], "isUnique": false, - "where": "status IN ('init', 'running')", + "where": "\"status\" = 'received'", "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", + "value": "claimedAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "\"startedAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, - "where": "status IN ('succeeded', 'partial')", + "where": "\"status\" = 'processing'", "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_integration_resume_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "status = 'init' AND type = 'coexist'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_integration_init_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Inbox", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_contact_scan_active_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "Inbox_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Inbox", "nameExplicit": true, "columns": [ { - "value": "type", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "channel", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "createdAt", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "type = 'contact_scan'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_contact_scan_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationActiveCampaign", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationActiveCampaign", "nameExplicit": true, "columns": [ { - "value": "folderId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationApi", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40349,47 +41616,75 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationApi", "nameExplicit": true, "columns": [ { - "value": "automationId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IntegrationApi", + "nameExplicit": true, + "columns": [ { - "value": "commentId", + "value": "tokenHash", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Integration", + "nameExplicit": true, + "columns": [ { - "value": "replyChannel", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Integration_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Integration", "nameExplicit": true, "columns": [ { @@ -40400,18 +41695,11 @@ "opclass": null }, { - "value": "automationId", + "value": "integrationType", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -40419,107 +41707,100 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationClaude", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationClaude", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationDeepseek", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_private_unseen_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationDeepseek", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"status\" = 'failed'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_failed_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationDrip", "nameExplicit": true, "columns": [ { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40531,12 +41812,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationDrip", "nameExplicit": true, "columns": [ { @@ -40545,93 +41826,65 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGemini", "nameExplicit": true, "columns": [ { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "postId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40643,54 +41896,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationReply_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGemini", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationReply_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGetResponse", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationReply_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGetResponse", "nameExplicit": true, "columns": [ { @@ -40701,63 +41954,63 @@ "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "nameExplicit": true, "columns": [ { - "value": "expiresAt", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "nameExplicit": true, "columns": [ { - "value": "consumedAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"consumedAt\" IS NOT NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_consumedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "nameExplicit": true, "columns": [ { - "value": "stateNonceHash", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40769,30 +42022,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_stateNonceHash_key", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40804,23 +42043,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Connection_workspaceId_provider_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40832,37 +42064,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Connection_provider_sourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "welcomeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Connection_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40874,117 +42106,96 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Connection_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "broadcastSubscribedAt", + "value": "igId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_broadcast_subscribed_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_created_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "email", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_email", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "phoneNumber", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_phone_number", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": true, "columns": [ { @@ -40993,13 +42204,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -41007,175 +42211,142 @@ "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_full_name_md5", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": true, "columns": [ { - "value": "firstName", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_firstName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": true, "columns": [ { - "value": "lastName", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_lastName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "email", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], "isUnique": false, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_email_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "phoneNumber", + "value": "welcomeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], "isUnique": false, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_phoneNumber_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "customFieldId", + "value": "handoverResumeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactCustomField_contactId_customFieldId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactCustomField_customFieldId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", + "value": "pageId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41187,23 +42358,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceUserId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41211,27 +42375,20 @@ } ], "isUnique": true, - "where": "\"sourceUserId\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_sourceUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceParentUserId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41239,27 +42396,20 @@ } ], "isUnique": true, - "where": "\"sourceParentUserId\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_sourceParentUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": true, "columns": [ { - "value": "profileSnapshotNextAttemptAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "deletedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41267,170 +42417,142 @@ } ], "isUnique": false, - "where": "\"profileSnapshotState\" = 'pending'", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_profileSnapshot_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_id_ai_held_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastIncomingMessageAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastOutboundMessageAt", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": true, "columns": [ { - "value": "(\"referral\"->>'ctwaClid')", - "isExpression": true, + "value": "workspaceId", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], "isUnique": false, - "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_referral_ctwaClid_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": true, "columns": [ { - "value": "(\"referral\"->>'adId')", - "isExpression": true, + "value": "integrationId", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_referral_adId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": true, "columns": [ { @@ -41441,140 +42563,133 @@ "opclass": null }, { - "value": "postId", + "value": "preset", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"preset\" <> 'custom'", "with": "", "method": "btree", "concurrently": false, - "name": "ContactInboxPost_workspaceId_postId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInboxPost" + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactNote_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactNote" + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_on_broadcast_contact_id", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnBroadcast_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnBroadcast_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": true, "columns": [ { - "value": "isRead", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_on_broadcast_is_read", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": true, "columns": [ { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41582,41 +42697,41 @@ } ], "isUnique": false, - "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnBroadcast_unsent_order_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": true, "columns": [ { - "value": "sequenceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41628,61 +42743,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": true, "columns": [ { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", + "value": "botId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": true, "columns": [ { @@ -41691,20 +42799,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -41712,30 +42806,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41747,37 +42827,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", + "value": "threadsUserId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IntegrationTiktok", + "nameExplicit": true, + "columns": [ { - "value": "stepId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41789,44 +42869,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IntegrationTiktok", + "nameExplicit": true, + "columns": [ { - "value": "triggerAt", + "value": "openId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_status_triggerAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41838,16 +42932,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "appointmentId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41859,37 +42953,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41897,83 +42970,62 @@ } ], "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_followUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", + "value": "welcomeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "tagId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactToTag_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTag" + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41985,16 +43037,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactToTagChannel_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "tagId", + "value": "handoverResumeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42006,23 +43058,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactToTagChannel_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", + "value": "phoneNumberId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42030,41 +43075,41 @@ } ], "isUnique": true, - "where": "\"sourceId\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_contactId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"sourceId\" IS NULL", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_contactId_dm_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "fallbackFlowId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42076,23 +43121,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "responseDueAt", + "value": "oaId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42100,37 +43138,37 @@ } ], "isUnique": false, - "where": "\"responseDueAt\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_workspaceId_responseDueAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { - "value": "aiContextLastMessageId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_aiContextLastMessageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": true, "columns": [ { @@ -42141,16 +43179,9 @@ "opclass": null }, { - "value": "lastActivityAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "status", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -42160,16 +43191,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_workspaceId_lastActivityAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42181,16 +43212,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ConversationParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "minigameId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42202,117 +43233,138 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ConversationParticipant_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "userId", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ConversationParticipant_conversationId_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "code", + "value": "score", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scoredAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "NOT \"isBanned\"", "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "topicId", + "value": "referrerContactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "LeaderboardParticipant", + "nameExplicit": true, + "columns": [ { - "value": "issuedContactId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"issuedContactId\" IS NOT NULL", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "topicId", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], @@ -42321,33 +43373,33 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "topicId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "issuedContactId", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], @@ -42356,16 +43408,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "nameExplicit": true, "columns": [ { - "value": "issuedContactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42377,54 +43429,40 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MagicLink", "nameExplicit": true, "columns": [ { - "value": "issuedAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "usedAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MagicLink", "nameExplicit": true, "columns": [ { @@ -42433,13 +43471,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "code", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -42447,12 +43478,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_code_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MagicLinkStat", "nameExplicit": true, "columns": [ { @@ -42463,38 +43494,38 @@ "opclass": null }, { - "value": "topicId", + "value": "linkId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "issuedContactId", + "value": "occurredAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "usedAt", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MediaLibraryFile", "nameExplicit": true, "columns": [ { @@ -42503,20 +43534,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "deletedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -42524,23 +43541,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CouponTopic_workspaceId_status_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MediaLibraryFile", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "expiresAt", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42552,12 +43562,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CouponTopic_workspaceId_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MediaLibraryFolder", "nameExplicit": true, "columns": [ { @@ -42566,61 +43576,54 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null } ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CouponTopic_workspaceId_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "type", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null }, { - "value": "name", + "value": "id", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CustomField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomField" + "name": "Message_conversation_history_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { @@ -42629,6 +43632,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -42636,67 +43646,32 @@ "with": "", "method": "btree", "concurrently": false, - "name": "DecisionConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" + "name": "Message_workspace_created_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionConnection_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "connectionId", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null } @@ -42706,12 +43681,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "DecisionProfile_connectionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { @@ -42722,24 +43697,38 @@ "opclass": null }, { - "value": "name", + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "DecisionProfile_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" + "name": "Message_conversationId_type_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { @@ -42748,96 +43737,96 @@ "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": "\"globalRouterEnabled\" = true", - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_globalRouter_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "parentId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "lower(\"code\")", - "isExpression": true, + "value": "type", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "DiscountCode_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" + "name": "Message_parentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessageCleanup", "nameExplicit": true, "columns": [ { - "value": "categoryId", + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "DiscountCode_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessageCleanup", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "name", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "DynamicImage_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DynamicImage" + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessageCleanup", "nameExplicit": true, "columns": [ { @@ -42853,12 +43842,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceOpenHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { @@ -42869,21 +43858,21 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { - "value": "openHoursId", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42895,16 +43884,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { - "value": "abandonedCartFlowId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42916,16 +43905,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_abandonedCartFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { - "value": "checkoutFlowId", + "value": "integrationInstagramId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42937,16 +43926,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_checkoutFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "orderConfirmationFlowId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42958,23 +43947,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_orderConfirmationFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42986,123 +43968,95 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EmailTopic_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "folderId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "EmailTopic_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationInstagramId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AuditLog_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "userId", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null } ], - "isUnique": false, - "where": "\"userId\" IS NOT NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AuditLog_workspaceId_userId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "workspaceId", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "id", + "value": "flowId", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -43112,37 +44066,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AuditLog_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": true, "columns": [ { - "value": "tenantId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CustomDomain_tenantId_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": true, "columns": [ { - "value": "domain", + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43150,62 +44111,34 @@ } ], "isUnique": true, - "where": null, + "where": "\"status\" = 'current'", "with": "", "method": "btree", "concurrently": false, - "name": "CustomDomain_domain_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "licenseId", + "value": "channel", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "License_licenseId_key", - "entityType": "indexes", - "schema": "public", - "table": "License" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "userId", + "value": "sourceKey", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43217,44 +44150,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "PlatformAdmin_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformAdmin" + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": true, "columns": [ { - "value": "ownerId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Tenant_ownerId_key", - "entityType": "indexes", - "schema": "public", - "table": "Tenant" + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": true, "columns": [ { - "value": "tenantId", + "value": "channel", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "position", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43266,69 +44199,90 @@ "with": "", "method": "btree", "concurrently": false, - "name": "TenantHelpItem_tenantId_position_idx", - "entityType": "indexes", - "schema": "public", - "table": "TenantHelpItem" + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": true, "columns": [ { - "value": "channelsTornDownAt", + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "UserQuota_channelsTornDownAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": true, "columns": [ { - "value": "userId", + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "UserQuota_due_expired_trial_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -43336,37 +44290,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ErrorLog_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", "with": "", "method": "btree", "concurrently": false, - "name": "ErrorLog_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniApp", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43378,12 +44332,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ErrorLog_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniApp", "nameExplicit": true, "columns": [ { @@ -43394,42 +44348,35 @@ "opclass": null }, { - "value": "event", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_idx", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "event", + "value": "miniAppId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "url", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43441,180 +44388,180 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_url_key", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "pageId", + "value": "miniAppId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "formId", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": true, "columns": [ { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "leadgenId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookLeadAdsLead_automationId_leadgenId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "leadgenId", + "value": "uploadToken", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookLeadAdsLead_leadgenId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "path", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookMarketingMessage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "MiniAppUpload_path_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "campaignId", + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookMarketingMessage_campaignId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "submissionId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookMarketingMessagesAuth_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Minigame", "nameExplicit": true, "columns": [ { - "value": "path", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "File_path_key", - "entityType": "indexes", - "schema": "public", - "table": "File" + "name": "Minigame_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Minigame", "nameExplicit": true, "columns": [ { @@ -43625,35 +44572,28 @@ "opclass": null }, { - "value": "contextType", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "File_workspaceId_contextType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "subType", + "value": "minigameId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43665,16 +44605,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "File_workspaceId_subType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43686,23 +44626,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Flow_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Flow" + "name": "MinigameContact_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "minigameId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43710,20 +44650,27 @@ } ], "isUnique": true, - "where": "\"deletedAt\" IS NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FlowAnalyticsSession_workspaceId_flowId_key", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigamePlay", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "minigameId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43735,44 +44682,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowAnalyticsSession_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigamePlay", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43784,72 +44703,79 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowNodeStat_filter_1_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "analyticsId", + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "nodeId", + "value": "livemode", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "isUnique": true, + "where": "\"userId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "FlowNodeStat_filter_2_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"userId\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43861,16 +44787,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "PlatformCredential_userId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Product", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43882,16 +44808,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "Product_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Product", "nameExplicit": true, "columns": [ { - "value": "flowVersionId", + "value": "categoryId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43903,16 +44829,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_flowVersionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "Product_categoryId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Product", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "subcategoryId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43924,16 +44850,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowVersion_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" + "name": "Product_subcategoryId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductAddon", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43945,12 +44871,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowVersion_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" + "name": "ProductAddon_productId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": true, "columns": [ { @@ -43966,12 +44892,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Folder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": true, "columns": [ { @@ -43987,51 +44913,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Folder_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" + "name": "ProductCategory_parentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductVariant", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "transactionId", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "ProductVariant_productId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductVariantOption", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44043,44 +44955,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "submissionId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "questionIdSnapshot", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "questionId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44092,23 +45004,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Questionnaire", "nameExplicit": true, "columns": [ { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextProcessingCheckAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44120,65 +45025,51 @@ "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Questionnaire", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "claimedAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "(\"deletedAt\" is null)", "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_status_claimedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "questionnaireId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "GoogleAdsSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsSettings" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "orderNo", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44190,16 +45081,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IgStoryAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": true, "columns": [ { - "value": "folderId", + "value": "customFieldId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44211,16 +45102,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IgStoryAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44232,16 +45123,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IgStoryAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "questionnaireId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44260,23 +45151,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Import_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "questionnaireId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "type", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44288,44 +45179,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Import_workspaceId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "type", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"status\" = 'inProgress'", "with": "", "method": "btree", "concurrently": false, - "name": "Import_inboxId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "RefLinkStat", "nameExplicit": true, "columns": [ { - "value": "fileId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44337,33 +45228,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Import_fileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes" }, { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": true, - "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Import_products_active_idx", - "entityType": "indexes", "schema": "public", - "table": "Import" - }, - { + "table": "RefLinkStat", "nameExplicit": true, "columns": [ { @@ -44372,51 +45242,23 @@ "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "token", + "value": "linkId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhook_token_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "inboundWebhookId", + "value": "occurredAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "idempotencyKey", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44424,69 +45266,48 @@ } ], "isUnique": true, - "where": "\"idempotencyKey\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": true, "columns": [ { - "value": "inboundWebhookId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceId", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "savedReplyId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44498,16 +45319,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "mediaLibraryFileId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44519,58 +45340,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "savedReplyId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": "\"status\" = 'received'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "InboundWebhookRequest_createdAt_received_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "claimedAt", + "value": "mediaLibraryFileId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"status\" = 'processing'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_claimedAt_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44582,12 +45389,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "Sequence_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": true, "columns": [ { @@ -44596,37 +45403,37 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Inbox_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", + "value": "idempotencyKey", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44638,16 +45445,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Inbox_workspaceId_channel_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44659,58 +45466,72 @@ "with": "", "method": "btree", "concurrently": false, - "name": "InboxTeam_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboxTeam" + "name": "SequenceDispatch_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"status\" = 'pending'", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationActiveCampaign_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"status\" = 'pending'", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationActiveCampaign_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44722,54 +45543,75 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationApi_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationApi_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "tokenHash", + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationApi_tokenHash_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { @@ -44778,6 +45620,27 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -44785,23 +45648,30 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Integration_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Integration" + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "bucket", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "integrationType", + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44813,117 +45683,117 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Integration_workspaceId_integrationType_key", - "entityType": "indexes", - "schema": "public", - "table": "Integration" + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "updatedAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationClaude_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationClaude_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationDeepseek_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "sequenceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationDeepseek_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationDrip_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" + "name": "SequenceStep_flowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": true, "columns": [ { @@ -44934,59 +45804,66 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationDrip_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "spreadsheetId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationFacebookAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "spreadsheetId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationFacebookAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Tag", "nameExplicit": true, "columns": [ { @@ -44995,42 +45872,63 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": true, - "where": null, + "where": "(\"deletedAt\" is null)", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGemini_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" + "name": "Tag_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Tag", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGemini_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" + "name": "Tag_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, { "value": "integrationId", "isExpression": false, @@ -45044,16 +45942,30 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGetResponse_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" + "name": "TagChannel_tag_integration_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalLabelId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45065,58 +45977,79 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGetResponse_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" + "name": "TagChannel_external_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" + "name": "TagChannel_integration_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45128,33 +46061,33 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleSheet_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleSheet" + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Template", "nameExplicit": true, "columns": [ { @@ -45170,16 +46103,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "Template_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Template", "nameExplicit": true, "columns": [ { - "value": "welcomeFlowId", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45191,16 +46124,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "Template_tenantId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Template", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "shareToken", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45212,96 +46145,103 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "Template_shareToken_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": true, "columns": [ { - "value": "igId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_igId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "templateId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationKlaviyo_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationKlaviyo_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "installationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailchimp_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": true, "columns": [ { @@ -45310,6 +46250,20 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "resourceKind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "resourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -45317,12 +46271,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailchimp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { @@ -45331,6 +46285,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": true, @@ -45338,37 +46299,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailerLite_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailerLite_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "Trigger_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45380,16 +46341,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Trigger_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { - "value": "welcomeFlowId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "active", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45401,16 +46369,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "handoverResumeFlowId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45422,100 +46397,135 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Condition_type_source_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "triggerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Condition_triggerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "pageId", + "value": "webhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_pageId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Condition_webhookId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMetaCatalog_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMetaCatalog_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": true, "columns": [ { - "value": "deletedAt", + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45527,100 +46537,107 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMetaCatalog_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMoosend_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMoosend_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenAI_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenAI_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45632,16 +46649,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45653,40 +46677,40 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenaiCompatible_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "triggerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "preset", + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"preset\" <> 'custom'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": true, "columns": [ { @@ -45695,103 +46719,110 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenrouter_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "UserDeviceToken", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenrouter_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "UserPersistentMenu", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOutlookCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSendGrid_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "Webhook_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSendGrid_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "Webhook_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": true, "columns": [ { @@ -45800,6 +46831,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -45807,16 +46845,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSmtp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45828,12 +46873,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSmtp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": true, "columns": [ { @@ -45849,79 +46894,65 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTelegram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTelegram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "nameExplicit": true, "columns": [ { - "value": "botId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationTelegram_botId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "wabaId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationThreads_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "wacid", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45929,20 +46960,20 @@ } ], "isUnique": true, - "where": null, + "where": "\"wacid\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationThreads_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" + "name": "WhatsappCall_wacid_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "threadsUserId", + "value": "attemptId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45950,16 +46981,16 @@ } ], "isUnique": true, - "where": null, + "where": "\"attemptId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationThreads_threadsUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { @@ -45975,54 +47006,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTiktok_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTiktok_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "openId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTiktok_openId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { @@ -46031,6 +47062,20 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -46038,20 +47083,27 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -46059,54 +47111,61 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"status\" = 'ringing'", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "welcomeFlowId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, - "where": null, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { @@ -46115,86 +47174,100 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "recordedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"recordingPath\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": true, "columns": [ { - "value": "handoverResumeFlowId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": true, "columns": [ { - "value": "phoneNumberId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_phoneNumberId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "phoneNumberId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46206,37 +47279,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationZalo_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { - "value": "fallbackFlowId", + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationZalo_fallbackFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { - "value": "oaId", + "value": "processedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46244,90 +47324,97 @@ } ], "isUnique": false, - "where": null, + "where": "\"processedAt\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationZalo_oaId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "parseFailedAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"parseFailedAt\" IS NOT NULL", "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationZalo_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "method": "btree", + "concurrently": false, + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappFlow", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Leaderboard_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Leaderboard_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": true, "columns": [ { - "value": "minigameId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46339,27 +47426,20 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Leaderboard_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "expiresAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -46367,12 +47447,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHours", "nameExplicit": true, "columns": [ { @@ -46388,79 +47468,79 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardAuditLog_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "score", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "scoredAt", + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "NOT \"isBanned\"", + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_ranking_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "workingHoursId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "referrerContactId", + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46472,16 +47552,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursInterval", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "workingHoursId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46493,16 +47573,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursMember", "nameExplicit": true, "columns": [ { - "value": "referrerContactId", + "value": "workingHoursId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46510,31 +47590,24 @@ } ], "isUnique": false, - "where": "\"referrerContactId\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -46542,34 +47615,20 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "Workspace_tenantId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", + "value": "scheduledDeletionAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -46577,16 +47636,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "supportAccessUntil", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46598,12 +47657,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardScoreEvent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkspaceApiToken", "nameExplicit": true, "columns": [ { @@ -46612,26 +47671,19 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "MagicLink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkspaceApiToken", "nameExplicit": true, "columns": [ { @@ -46642,17 +47694,17 @@ "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"isDefault\"", "with": "", "method": "btree", "concurrently": false, - "name": "MagicLink_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkspaceMember", "nameExplicit": true, "columns": [ { @@ -46663,5012 +47715,3985 @@ "opclass": null }, { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ShardTimeRange", + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIAgent", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationEmbedding", + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationEmbedding", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationEmbedding", + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationSource", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationSource", + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIEmbedding", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "MagicLinkStat" + "table": "AIEmbedding", + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIFile", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIFunction", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "triggerFlowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIFunction", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFolder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFolder" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverBulkRun", + "nameExplicit": false, "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversation_history_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverBulkRun", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_workspace_created_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverBulkRun", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "requestedByUserId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_contactInboxId_sourceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversationId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": "\"parentId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "gotoFlowId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "applyToAllRequestedByUserId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_status_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIMCPServer", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsAgentResponseEvent", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsBotMessageEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationWhatsappId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsBroadcastEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsContactEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationInstagramId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsConversationEvent", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsFlowNodeEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsMessageEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationMessengerId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsSequenceEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationInstagramId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerMessageTemplate" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": true, - "where": "\"status\" = 'current'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_current_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "calendarId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_channel_integrationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "retailerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_retailer_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_product_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "confirmationFlowId" ], - "isUnique": true, - "where": "\"status\" IN ('queued', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogSyncRun" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "cancellationFlowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "externalConnectionId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendarAvailability", + "nameExplicit": false, "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "calendarId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppPublication" + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendarReminder", + "nameExplicit": false, "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } + "calendarId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_miniAppId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendarReminder", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "uploadToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_uploadToken_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "appointmentId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_path_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "inputName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "reminderConfigId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_miniAppId_inputName_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_submissionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Account", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Account", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Invitation", + "nameExplicit": false, "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Invitation", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "invitedBy" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Session", + "nameExplicit": false, "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "User", + "nameExplicit": false, "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_minigameId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomatedResponse", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_contactId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "MinigamePlay" + "table": "AutomatedResponse", + "nameExplicit": false, + "columns": [ + "folderId" + ], + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomatedResponse", + "nameExplicit": false, "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_orderId_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomationThrottle", + "nameExplicit": false, "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomationThrottle", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BotField", + "nameExplicit": false, "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_orderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BotField", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "variantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_variantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationWhatsappId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "number", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationMessengerId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_number_key", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "parentBroadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrence", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrence", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "broadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "recurrenceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": false, "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "childBroadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastTarget", + "nameExplicit": false, "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "broadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_discountCodeId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastTarget", + "nameExplicit": false, "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_orderId_createdAt_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "OrderStatusHistory" + "table": "BroadcastTarget", + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ChannelPost", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ChannelPost", + "nameExplicit": false, "columns": [ - { - "value": "actorUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_actorUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CoexistSyncRun", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "requestedByUserId" ], - "isUnique": true, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_user_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomation", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"userId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_platform_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomation", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomation", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductAddon_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductAddon" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariant_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariant" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariantOption_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariantOption" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationReply", + "nameExplicit": false, "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "questionIdSnapshot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "QuestionnaireAnswer" + "table": "CommentAutomationReply", + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationReply", + "nameExplicit": false, "columns": [ - { - "value": "questionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_questionId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "QuestionnaireAnswer" + "table": "ConnectSession", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConnectSession", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "targetConnectionId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConnectSession", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "actorUserId" ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConnectSession", + "nameExplicit": false, "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "orderNo", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "actorTokenId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_customFieldId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "createdBy" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Contact", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"status\" = 'inProgress'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactCustomField", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactCustomField", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "customFieldId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactInbox", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Reflink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Reflink" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactInbox", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReply_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReply" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactNote", + "nameExplicit": false, "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactNote", + "nameExplicit": false, "columns": [ - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "createdById" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_mediaLibraryFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "broadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": false, "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSequence", + "nameExplicit": false, "columns": [ - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSequence", + "nameExplicit": false, "columns": [ - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "sequenceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSequence", + "nameExplicit": false, "columns": [ - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSmartDelay", + "nameExplicit": false, "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_bucket_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSmartDelay", + "nameExplicit": false, "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "appointmentId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSmartDelay", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTag", + "nameExplicit": false, "columns": [ - { - "value": "enrollmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_enrollmentId_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTag", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tagId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspace_sequence_step_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTagChannel", + "nameExplicit": false, "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tagId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_bucket_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTagChannel", + "nameExplicit": false, "columns": [ - { - "value": "updatedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tagChannelId" ], - "isUnique": false, - "where": "\"status\" in ('completed', 'failed', 'canceled')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_terminal_updatedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTagChannel", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Conversation", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "assignedUserId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Conversation", + "nameExplicit": false, "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "assignedInboxTeamId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_sequenceId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "SequenceDispatch" + "table": "Conversation", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Conversation", + "nameExplicit": false, "columns": [ - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": false, "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": false, "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Coupon", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Coupon", + "nameExplicit": false, "columns": [ - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "topicId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Coupon", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "issuedContactId" ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Tag" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CouponTopic", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Tag" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CouponTopic", + "nameExplicit": false, "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "createdById" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_tag_integration_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CustomField", + "nameExplicit": false, "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalLabelId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_external_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CustomField", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_workspace_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DecisionConnection", + "nameExplicit": false, "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DecisionProfile", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chatId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_inboxId_chatId_key", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DecisionProfile", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "connectionId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DynamicImage", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DynamicImage", + "nameExplicit": false, "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "customFieldId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_tenantId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Template" + "table": "EmailTopic", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "EmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "shareToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_shareToken_key", - "entityType": "indexes", - "schema": "public", - "table": "Template" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ - { - "value": "templateId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_templateId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CustomDomain", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "PlatformAdmin", + "nameExplicit": false, "columns": [ - { - "value": "installationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_installationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Tenant", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceKind", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "ownerId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "TenantHelpItem", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "UserQuota", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "WorkspaceUsage", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ErrorLog", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ErrorLog", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_source_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ExternalWebhook", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "nameExplicit": false, "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookLeadAdsLead", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookLeadAdsLead", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_webhookId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Condition" + "table": "FacebookMarketingMessage", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "File", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "File", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Flow", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Flow", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowNodeStat", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_key", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowVersionId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserDeviceToken_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserDeviceToken" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowVersion", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserPersistentMenu_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserPersistentMenu" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowVersion", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Folder", + "nameExplicit": false, "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "nameExplicit": false, "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "nameExplicit": false, "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationGoogleAdsId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_subcategoryId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Vendor" + "table": "GoogleAdsConversionEvent", + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "GoogleAdsSettings", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_name_key", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Vendor" + "table": "IgStoryAutomation", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IgStoryAutomation", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IgStoryAutomation", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_webhookId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "fileId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhook", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "wabaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappBusinessAccount" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "wacid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"wacid\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_wacid_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "attemptId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboundWebhookId" ], - "isUnique": true, - "where": "\"attemptId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_attemptId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Inbox", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxContactStat", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxTeam", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxTeamMember", + "nameExplicit": false, "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxTeamId" ], - "isUnique": false, - "where": "\"status\" = 'ringing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_ringing_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxTeamMember", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_resumableRinging_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "WhatsappCall" + "table": "IntegrationActiveCampaign", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationActiveCampaign", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "recordedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": "\"recordingPath\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_recording_inboxId_recordedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationApi", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_pendingOutbound_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationApi", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Integration", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationClaude", + "nameExplicit": false, "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phoneNumberId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationClaude", + "nameExplicit": false, "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "payloadHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phone_hash_uq", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDeepseek", + "nameExplicit": false, "columns": [ - { - "value": "processedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": "\"processedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_processedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDeepseek", + "nameExplicit": false, "columns": [ - { - "value": "parseFailedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": "\"parseFailedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_parseFailedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDrip", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappFlow" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDrip", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappMessageTemplate" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationFacebookAds", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationFacebookAds", + "nameExplicit": false, "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGemini", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHours" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGemini", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": true, - "where": "\"workingHoursId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspace_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGetResponse", + "nameExplicit": false, "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"workingHoursId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_schedule_date_key", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "IntegrationGetResponse", + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleAds", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleAds", + "nameExplicit": false, "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursInterval_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursInterval" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleCalendar", + "nameExplicit": false, "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursMember_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursMember" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleCalendar", + "nameExplicit": false, "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleSheet", + "nameExplicit": false, "columns": [ - { - "value": "scheduledDeletionAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_scheduledDeletionAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleSheet", + "nameExplicit": false, "columns": [ - { - "value": "supportAccessUntil", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_supportAccessUntil_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": true, - "where": "\"isDefault\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_default_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "welcomeFlowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceMember_workspaceId_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceMember" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": false, "columns": [ - "shardId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "MessageShard", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ShardTimeRange_shardId_MessageShard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ShardTimeRange" + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": false, "columns": [ - "integrationWhatsappId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": false, "columns": [ - "integrationMessengerId" + "integrationId" ], "schemaTo": "public", - "tableTo": "IntegrationMessenger", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": false, "columns": [ - "integrationInstagramId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationInstagram", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": false, "columns": [ - "contactInboxId" + "integrationId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": false, "columns": [ "workspaceId" @@ -51680,80 +51705,97 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": false, "columns": [ - "integrationWhatsappId" + "inboxId" ], "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_k99JXbMObQIn_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": false, "columns": [ - "integrationFacebookAdsId" + "welcomeFlowId" ], "schemaTo": "public", - "tableTo": "IntegrationFacebookAds", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", - "entityType": "fks", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "AdsConversionRule" + "table": "IntegrationMessenger", + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": false, "columns": [ - "integrationMessengerId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationMessenger", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_3zzAptVRRuZD_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": false, "columns": [ - "integrationInstagramId" + "integrationId" ], "schemaTo": "public", - "tableTo": "IntegrationInstagram", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_HUibBtSUZbML_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": false, "columns": [ "workspaceId" @@ -51765,29 +51807,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIAgent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIAgent" + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": false, "columns": [ - "sourceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "AIConversationSource", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": false, "columns": [ "workspaceId" @@ -51799,63 +51841,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": false, "columns": [ - "conversationId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", - "entityType": "fks", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "AIConversationEmbedding" + "table": "IntegrationOpenai", + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationSource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": false, "columns": [ - "conversationId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationSource_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": false, "columns": [ "workspaceId" @@ -51867,29 +51926,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": false, "columns": [ - "aiFileId" + "integrationId" ], "schemaTo": "public", - "tableTo": "AIFile", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIEmbedding_aiFileId_AIFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "nameExplicit": false, "columns": [ "workspaceId" @@ -51901,29 +51960,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFile" + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "nameExplicit": false, "columns": [ - "triggerFlowId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIFunction_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": false, "columns": [ "workspaceId" @@ -51935,63 +51994,63 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIFunction_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": false, "columns": [ - "inboxId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": false, "columns": [ - "requestedByUserId" + "inboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": false, "columns": [ "workspaceId" @@ -52003,12 +52062,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": false, "columns": [ "inboxId" @@ -52020,46 +52079,46 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": false, "columns": [ - "gotoFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": false, "columns": [ - "applyToAllRequestedByUserId" + "inboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": false, "columns": [ "workspaceId" @@ -52071,29 +52130,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIMCPServer_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIMCPServer" + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": false, "columns": [ - "workspaceId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Inbox", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": false, "columns": [ "workspaceId" @@ -52103,65 +52162,65 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": false, "columns": [ - "workspaceId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Inbox", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": false, "columns": [ - "workspaceId" + "welcomeFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsContactEvent" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": false, "columns": [ - "workspaceId" + "handoverResumeFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsConversationEvent" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": false, "columns": [ "workspaceId" @@ -52171,31 +52230,31 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": false, "columns": [ - "workspaceId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Inbox", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": false, "columns": [ "workspaceId" @@ -52205,303 +52264,303 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": false, "columns": [ - "topicId" + "inboxId" ], "schemaTo": "public", - "tableTo": "EmailTopic", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": false, "columns": [ - "workspaceId" + "fallbackFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "conversationId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "contactInboxId" + "minigameId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Minigame", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "workspaceId" + "referralWelcomeFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "calendarId" + "leaderboardId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendar", + "tableTo": "Leaderboard", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Appointment_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "conversationId" + "contactId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Appointment_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "contactInboxId" + "actorUserId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Appointment_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "workspaceId" + "leaderboardId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Leaderboard", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "confirmationFlowId" + "contactId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "cancellationFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "externalConnectionId" + "referrerContactId" ], "schemaTo": "public", - "tableTo": "Integration", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MagicLink", "nameExplicit": false, "columns": [ - "calendarId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendar", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MagicLinkStat", "nameExplicit": false, "columns": [ - "calendarId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendar", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MagicLinkStat", "nameExplicit": false, "columns": [ - "flowId" + "linkId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "MagicLink", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MediaLibraryFile", "nameExplicit": false, "columns": [ "workspaceId" @@ -52513,117 +52572,117 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MediaLibraryFile", "nameExplicit": false, "columns": [ - "appointmentId" + "folderId" ], "schemaTo": "public", - "tableTo": "Appointment", + "tableTo": "MediaLibraryFolder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MediaLibraryFolder", "nameExplicit": false, "columns": [ - "reminderConfigId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendarReminder", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "contactInboxId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "userId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Account_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "tenantId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Account_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationInstagramId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationInstagram", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Invitation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "invitedBy" + "createdBy" ], "schemaTo": "public", "tableTo": "User", @@ -52631,98 +52690,98 @@ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_invitedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "userId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Session_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Session" + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "tenantId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "User_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "User" + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "folderId" + "integrationInstagramId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "IntegrationInstagram", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "nameExplicit": false, "columns": [ - "flowId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": false, "columns": [ "workspaceId" @@ -52734,148 +52793,148 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": false, "columns": [ - "contactInboxId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": false, "columns": [ - "folderId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BotField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": false, "columns": [ - "workspaceId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BotField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationMetaCatalogId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationMetaCatalog", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Broadcast_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": false, "columns": [ - "flowId" + "productId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Product", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Broadcast_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": false, "columns": [ - "integrationWhatsappId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": false, "columns": [ - "integrationMessengerId" + "integrationMetaCatalogId" ], "schemaTo": "public", - "tableTo": "IntegrationMessenger", + "tableTo": "IntegrationMetaCatalog", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": false, "columns": [ - "parentBroadcastId" + "categoryId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniApp", "nameExplicit": false, "columns": [ "workspaceId" @@ -52887,148 +52946,148 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": false, "columns": [ - "broadcastId" + "miniAppId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "MiniApp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": false, "columns": [ - "recurrenceId" + "whatsappFlowId" ], "schemaTo": "public", - "tableTo": "BroadcastRecurrence", + "tableTo": "WhatsappFlow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": false, "columns": [ - "childBroadcastId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": false, "columns": [ - "broadcastId" + "miniAppId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "MiniApp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": false, "columns": [ - "inboxId" + "contactId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ - "flowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastTarget_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ - "workspaceId" + "miniAppId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "MiniApp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Cart_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ "contactId" @@ -53040,29 +53099,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Cart_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ - "contactInboxId" + "submissionId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "MiniAppSubmission", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Cart_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Minigame", "nameExplicit": false, "columns": [ "workspaceId" @@ -53074,165 +53133,165 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ChannelPost_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "inboxId" + "minigameId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Minigame", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ChannelPost_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "requestedByUserId" + "contactId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CoexistSyncRun" + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "workspaceId" + "referrerContactId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "folderId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CommentAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigamePlay", "nameExplicit": false, "columns": [ - "inboxId" + "minigameId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Minigame", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigamePlay", "nameExplicit": false, "columns": [ - "workspaceId" + "contactId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": false, "columns": [ - "automationId" + "userId" ], "schemaTo": "public", - "tableTo": "CommentAutomation", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Credential_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Product", "nameExplicit": false, "columns": [ - "contactId" + "categoryId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Product", "nameExplicit": false, "columns": [ - "contactInboxId" + "subcategoryId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Product", "nameExplicit": false, "columns": [ "workspaceId" @@ -53244,182 +53303,199 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductAddon", "nameExplicit": false, "columns": [ - "automationId" + "productId" ], "schemaTo": "public", - "tableTo": "CommentAutomation", + "tableTo": "Product", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": false, "columns": [ - "contactInboxId" + "parentId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductVariant", "nameExplicit": false, "columns": [ - "automationId" + "productId" ], "schemaTo": "public", - "tableTo": "CommentAutomation", + "tableTo": "Product", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductVariantOption", "nameExplicit": false, "columns": [ - "contactId" + "productId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Product", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationReply_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": false, "columns": [ - "workspaceId" + "submissionId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "QuestionnaireSubmission", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": false, "columns": [ - "workspaceId" + "questionId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "QuestionnaireQuestion", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConnectSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "ConnectSession" + "table": "Questionnaire", + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Questionnaire", "nameExplicit": false, "columns": [ - "targetConnectionId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Connection", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConnectSession_targetConnectionId_Connection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": false, "columns": [ - "actorUserId" + "questionnaireId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Questionnaire", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": false, "columns": [ - "actorTokenId" + "customFieldId" ], "schemaTo": "public", - "tableTo": "WorkspaceApiToken", + "tableTo": "CustomField", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ "workspaceId" @@ -53431,284 +53507,284 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Connection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "inboxId" + "questionnaireId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Questionnaire", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Connection_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "integrationId" + "contactId" ], "schemaTo": "public", - "tableTo": "Integration", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Connection_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "createdBy" + "conversationId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Conversation", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Connection_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "workspaceId" + "currentQuestionId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "QuestionnaireQuestion", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Contact_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Contact" + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "RefLinkStat", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactCustomField_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "RefLinkStat", "nameExplicit": false, "columns": [ - "customFieldId" + "linkId" ], "schemaTo": "public", - "tableTo": "CustomField", + "tableTo": "Reflink", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactCustomField_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "contactId" + "flowId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactInbox_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "inboxId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactInbox_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "contactId" + "customFieldId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "CustomField", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "createdById" + "widgetLogoFileId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "MediaLibraryFile", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "nameExplicit": false, "columns": [ - "broadcastId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReply", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": false, "columns": [ - "contactInboxId" + "savedReplyId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "SavedReply", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": false, "columns": [ - "conversationId" + "mediaLibraryFileId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "MediaLibraryFile", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSequence_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": false, "columns": [ - "sequenceId" + "folderId" ], "schemaTo": "public", - "tableTo": "Sequence", + "tableTo": "Folder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": false, "columns": [ "workspaceId" @@ -53720,12 +53796,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ "workspaceId" @@ -53737,165 +53813,167 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "appointmentId" + "sequenceId" ], "schemaTo": "public", - "tableTo": "Appointment", + "tableTo": "Sequence", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "conversationId" + "contactId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "contactId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTag_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "tagId" + "stepId" ], "schemaTo": "public", - "tableTo": "Tag", + "tableTo": "SequenceStep", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTag_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SequenceDispatch", + "nameExplicit": true, "columns": [ - "tagId" + "enrollmentId", + "workspaceId" ], "schemaTo": "public", - "tableTo": "Tag", + "tableTo": "ContactOnSequence", "columnsTo": [ - "id" + "id", + "workspaceId" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": false, "columns": [ - "tagChannelId" + "flowId" ], "schemaTo": "public", - "tableTo": "TagChannel", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": false, "columns": [ - "contactInboxId" + "sequenceId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Sequence", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": false, "columns": [ - "assignedUserId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Tag", "nameExplicit": false, "columns": [ - "assignedInboxTeamId" + "folderId" ], "schemaTo": "public", - "tableTo": "InboxTeam", + "tableTo": "Folder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Tag", "nameExplicit": false, "columns": [ "workspaceId" @@ -53907,80 +53985,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Conversation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Conversation_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": false, "columns": [ - "workspaceId" + "tagId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Tag", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": false, "columns": [ - "conversationId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConversationParticipant_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": false, "columns": [ - "userId" + "inboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConversationParticipant_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Template", "nameExplicit": false, "columns": [ "workspaceId" @@ -53992,46 +54070,46 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Coupon_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Template", "nameExplicit": false, "columns": [ - "topicId" + "tenantId" ], "schemaTo": "public", - "tableTo": "CouponTopic", + "tableTo": "Tenant", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_topicId_CouponTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Template", "nameExplicit": false, "columns": [ - "issuedContactId" + "createdBy" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Coupon_issuedContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ "workspaceId" @@ -54043,32 +54121,32 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CouponTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ - "createdById" + "templateId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Template", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CouponTopic_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ - "folderId" + "installFolderId" ], "schemaTo": "public", "tableTo": "Folder", @@ -54077,46 +54155,46 @@ ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CustomField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ - "workspaceId" + "installedBy" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": false, "columns": [ - "workspaceId" + "installationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "TemplateInstallation", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DecisionConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionConnection" + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": false, "columns": [ "workspaceId" @@ -54128,29 +54206,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DecisionProfile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": false, "columns": [ - "connectionId" + "folderId" ], "schemaTo": "public", - "tableTo": "DecisionConnection", + "tableTo": "Folder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": false, "columns": [ "workspaceId" @@ -54162,63 +54240,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DiscountCode_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Condition", "nameExplicit": false, "columns": [ - "categoryId" + "triggerId" ], "schemaTo": "public", - "tableTo": "ProductCategory", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCode_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Condition", "nameExplicit": false, "columns": [ - "workspaceId" + "webhookId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Webhook", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DynamicImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": false, "columns": [ - "customFieldId" + "triggerId" ], "schemaTo": "public", - "tableTo": "CustomField", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DynamicImage_customFieldId_CustomField_id_fkey", - "entityType": "fks", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "DynamicImage" + "table": "TriggerContactHistory", + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": false, "columns": [ "workspaceId" @@ -54230,29 +54325,46 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": false, "columns": [ - "workspaceId" + "triggerId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "EcommerceOrderCounter" + "table": "TriggerExecution", + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": false, "columns": [ "workspaceId" @@ -54264,80 +54376,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": false, "columns": [ - "openHoursId" + "triggerId" ], "schemaTo": "public", - "tableTo": "EcommerceOpenHours", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": false, "columns": [ - "abandonedCartFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "UserDeviceToken", "nameExplicit": false, "columns": [ - "checkoutFlowId" + "userId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "UserDeviceToken", "nameExplicit": false, "columns": [ - "orderConfirmationFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "UserPersistentMenu", "nameExplicit": false, "columns": [ "workspaceId" @@ -54349,12 +54461,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": false, "columns": [ "folderId" @@ -54366,13 +54478,13 @@ ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "EmailTopic_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Webhook", + "nameExplicit": false, "columns": [ "workspaceId" ], @@ -54383,114 +54495,114 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AuditLog_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "WebhookExecution", + "nameExplicit": false, "columns": [ - "userId" + "webhookId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Webhook", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AuditLog_userId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": false, "columns": [ - "tenantId" + "contactId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CustomDomain_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomDomain" + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": false, "columns": [ - "userId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "PlatformAdmin_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformAdmin" + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "nameExplicit": false, "columns": [ - "ownerId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Tenant_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tenant" + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "tenantId" + "answeredByUserId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TenantHelpItem_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TenantHelpItem" + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "userId" + "initiatedByUserId" ], "schemaTo": "public", "tableTo": "User", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "UserQuota_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserQuota" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ "workspaceId" @@ -54500,48 +54612,65 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "WhatsappCall", + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceUsage" + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "workspaceId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ErrorLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "contactId" + "conversationId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Conversation", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ErrorLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": false, "columns": [ "workspaceId" @@ -54553,97 +54682,97 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ExternalWebhook" + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": false, "columns": [ - "workspaceId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappFlow", "nameExplicit": false, "columns": [ - "automationId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "FacebookLeadAdsAutomation", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "nameExplicit": false, "columns": [ - "contactId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": false, "columns": [ - "workspaceId" + "userId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": false, "columns": [ - "workspaceId" + "ownerId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": false, "columns": [ "workspaceId" @@ -54655,29 +54784,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "File_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHours", "nameExplicit": false, "columns": [ - "userId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "File_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": false, "columns": [ "workspaceId" @@ -54689,46 +54818,48 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Flow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursDateOverride", + "nameExplicit": true, "columns": [ - "folderId" + "workingHoursId", + "workspaceId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "WorkingHours", "columnsTo": [ - "id" + "id", + "workspaceId" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Flow_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursInterval", "nameExplicit": false, "columns": [ - "workspaceId" + "workingHoursId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "WorkingHours", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowNodeStat" + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursMember", "nameExplicit": false, "columns": [ "workspaceId" @@ -54740,97 +54871,99 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursMember", "nameExplicit": false, "columns": [ - "flowId" + "userId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowRun_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursMember", + "nameExplicit": true, "columns": [ - "flowVersionId" + "workingHoursId", + "workspaceId" ], "schemaTo": "public", - "tableTo": "FlowVersion", + "tableTo": "WorkingHours", "columnsTo": [ - "id" + "id", + "workspaceId" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": false, "columns": [ - "conversationId" + "ownerId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": false, "columns": [ - "workspaceId" + "tenantId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Tenant", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceApiToken", "nameExplicit": false, "columns": [ - "flowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowVersion_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceMac", "nameExplicit": false, "columns": [ "workspaceId" @@ -54842,12 +54975,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Folder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Folder" + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceMember", "nameExplicit": false, "columns": [ "workspaceId" @@ -54859,4572 +54992,3382 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceMember", "nameExplicit": false, "columns": [ - "integrationGoogleAdsId" + "userId" ], "schemaTo": "public", - "tableTo": "IntegrationGoogleAds", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", + "columns": [ + "occurredAt", + "eventId" + ], "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "columns": [ - "contactInboxId" + "occurredAt", + "eventId" ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsBroadcastEvent", + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "AnalyticsContactEvent", + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", + "columns": [ + "occurredAt", + "eventId" + ], "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "columns": [ - "workspaceId" + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsMessageEvent", + "columns": [ + "occurredAt", + "eventId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "GoogleAdsSettings" + "table": "AnalyticsSequenceEvent", + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "Attachment", + "columns": [ + "id", + "createdAt" + ], "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AutomationThrottle", "columns": [ - "workspaceId" + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "BroadcastTarget", + "columns": [ + "broadcastId", + "inboxId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "IgStoryAutomation" + "table": "ContactActiveHourly", + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "ContactActiveMonthly", + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "ContactInboxPost", "columns": [ - "folderId" + "workspaceId", + "contactInboxId", + "postId" ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "ContactOnBroadcast", + "columns": [ + "broadcastId", + "contactId" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IgStoryAutomation_folderId_Folder_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "IgStoryAutomation" + "table": "ContactOnSequence", + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "ContactToTag", + "columns": [ + "contactId", + "tagId" + ], "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "ContactToTagChannel", "columns": [ - "inboxId" + "tagChannelId", + "contactInboxId" ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "LeaderboardParticipant", + "columns": [ + "leaderboardId", + "contactId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "IgStoryAutomation" + "table": "LeaderboardScoreEvent", + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "Message", + "columns": [ + "id", + "createdAt" + ], "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "SequenceDispatch", "columns": [ + "id", "workspaceId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "TriggerContactHistory", + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "MessageShard", + "columns": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "MessageShard_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "Import" + "table": "ShardTimeRange", + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "AdsConversionEvent", + "columns": [ + "id" + ], "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AdsConversionRule", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIAgent", "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Import_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" + "nameExplicit": false, + "name": "AIAgent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIConversationEmbedding", "columns": [ - "fileId" - ], - "schemaTo": "public", - "tableTo": "File", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Import_fileId_File_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIConversationSource", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhook" + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIEmbedding", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIFile", "columns": [ - "inboundWebhookId" - ], - "schemaTo": "public", - "tableTo": "InboundWebhook", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIFile_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIFunction", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIFunction_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIHandoverBulkRun", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIHandoverSettings", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Inbox_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Inbox" + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIMCPServer", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxContactStat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxContactStat" + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AnalyticsEmailTopic", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeam_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeam" + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Appointment", "columns": [ - "inboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" + "nameExplicit": false, + "name": "Appointment_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentCalendar", "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentCalendarAvailability", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentCalendarReminder", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentReminderDispatch", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Account", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" + "nameExplicit": false, + "name": "Account_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Invitation", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Integration_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Integration" + "nameExplicit": false, + "name": "Invitation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Jwk", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" + "nameExplicit": false, + "name": "Jwk_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Session", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" + "nameExplicit": false, + "name": "Session_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "User", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" + "nameExplicit": false, + "name": "User_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Verification", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" + "nameExplicit": false, + "name": "Verification_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AutomatedResponse", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "BotField", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" + "nameExplicit": false, + "name": "BotField_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Broadcast", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" + "nameExplicit": false, + "name": "Broadcast_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "BroadcastRecurrence", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ChannelPost", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" + "nameExplicit": false, + "name": "ChannelPost_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CoexistSyncRun", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomation", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomationEvent", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomationMiss", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomationReply", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ConnectSession", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "nameExplicit": false, + "name": "ConnectSession_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Connection", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" + "nameExplicit": false, + "name": "Connection_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Contact", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" + "nameExplicit": false, + "name": "Contact_pkey", + "entityType": "pks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactCustomField", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "entityType": "pks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactInbox", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_inboxId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" + "nameExplicit": false, + "name": "ContactInbox_pkey", + "entityType": "pks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactNote", "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationInstagram_welcomeFlowId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" + "nameExplicit": false, + "name": "ContactNote_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ContactOnSmartDelay", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Conversation", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" + "nameExplicit": false, + "name": "Conversation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ConversationParticipant", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Coupon", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" + "nameExplicit": false, + "name": "Coupon_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CouponTopic", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" + "nameExplicit": false, + "name": "CouponTopic_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CustomField", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" + "nameExplicit": false, + "name": "CustomField_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "DecisionConnection", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "DecisionProfile", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "DynamicImage", "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "DynamicImage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "EmailTopic", "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "EmailTopic_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AuditLog", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" + "nameExplicit": false, + "name": "AuditLog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CustomDomain", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" + "nameExplicit": false, + "name": "CustomDomain_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "License", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" + "nameExplicit": false, + "name": "License_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "PlatformAdmin", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Tenant", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" + "nameExplicit": false, + "name": "Tenant_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TenantHelpItem", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserQuota", "columns": [ - "aiAgentId" - ], - "schemaTo": "public", - "tableTo": "AIAgent", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" + "nameExplicit": false, + "name": "UserQuota_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceUsage", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ErrorLog", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "nameExplicit": false, + "name": "ErrorLog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ExternalWebhook", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookLeadAdsAutomation", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookLeadAdsLead", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookMarketingMessage", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookMarketingMessagesAuth", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "File", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" + "nameExplicit": false, + "name": "File_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Flow", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" + "nameExplicit": false, + "name": "Flow_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowAnalyticsSession", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowNodeStat", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowRun", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" + "nameExplicit": false, + "name": "FlowRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowVersion", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" + "nameExplicit": false, + "name": "FlowVersion_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Folder", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" + "nameExplicit": false, + "name": "Folder_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "GoogleAdsConversionEvent", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "GoogleAdsSettings", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IgStoryAutomation", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Import", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" + "nameExplicit": false, + "name": "Import_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboundWebhook", "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboundWebhookRequest", "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Inbox", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" + "nameExplicit": false, + "name": "Inbox_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboxContactStat", "columns": [ "inboxId" ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboxTeam", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" + "nameExplicit": false, + "name": "InboxTeam_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboxTeamMember", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationActiveCampaign", "columns": [ - "fallbackFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationApi", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Leaderboard_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Integration", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "Integration_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationClaude", "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationDeepseek", "columns": [ - "referralWelcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationDrip", "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationFacebookAds", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGemini", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGetResponse", "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGoogleAds", "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGoogleCalendar", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGoogleSheet", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationInstagram", "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationKlaviyo", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLink" + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMailchimp", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMailerLite", "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "MagicLink", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_linkId_MagicLink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMessenger", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMetaCatalog", "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFolder", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMoosend", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFolder" + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOpenai", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOpenaiCompatible", "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOpenrouter", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOutlookCalendar", "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_LwL2ykeZegup_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationSendGrid", "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MessagingAdOperation_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationSmtp", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationTelegram", "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationThreads", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationTiktok", "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationWebchat", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerMessageTemplate" + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationWhatsapp", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationZalo", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Leaderboard", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" + "nameExplicit": false, + "name": "Leaderboard_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "LeaderboardAuditLog", "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MagicLink", "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_wJXyKUssR08y_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" + "nameExplicit": false, + "name": "MagicLink_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MediaLibraryFile", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MediaLibraryFolder", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessageCleanup", "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessagingAdOperation", "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessagingAdsConnection", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniApp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniApp" + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessengerMessageTemplate", "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MetaCapiEvent", "columns": [ - "whatsappFlowId" - ], - "schemaTo": "public", - "tableTo": "WhatsappFlow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MetaCatalogItem", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MetaCatalogSyncRun", "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniApp", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" + "nameExplicit": false, + "name": "MiniApp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniAppPublication", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniAppSubmission", "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniAppUpload", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Minigame", "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "MiniAppSubmission", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "Minigame_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MinigameContact", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Minigame_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Minigame" + "nameExplicit": false, + "name": "MinigameContact_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MinigamePlay", "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "PlatformCredential", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "Credential_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Product", "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "Product_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductAddon", "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "ProductAddon_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductCategory", "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" + "nameExplicit": false, + "name": "ProductCategory_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductVariant", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" + "nameExplicit": false, + "name": "ProductVariant_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductVariantOption", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "QuestionnaireAnswer", "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Questionnaire", "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "Questionnaire_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "QuestionnaireQuestion", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "QuestionnaireSubmission", "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Reflink", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "Reflink_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ResponseSlaPolicy", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SavedReply", "columns": [ - "variantId" - ], - "schemaTo": "public", - "tableTo": "ProductVariant", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_variantId_ProductVariant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "SavedReply_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SavedReplyImage", "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Sequence", "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "Sequence_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SequenceStep", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Order_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "SequenceStep_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Spreadsheet", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SystemField", "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "SystemField_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Tag", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "Tag_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TagChannel", "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "TagChannel_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TelegramChat", "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "TelegramChat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Template", "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" + "nameExplicit": false, + "name": "Template_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TemplateInstallation", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TemplateInstalledResource", "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderStatusHistory_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Trigger", "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Credential_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformCredential" + "nameExplicit": false, + "name": "Trigger_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Condition", "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "Condition_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TriggerExecution", "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TriggerStat", "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "TriggerStat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserDeviceToken", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Product_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserPersistentMenu", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductAddon_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductAddon" + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Webhook", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" + "nameExplicit": false, + "name": "Webhook_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WebhookExecution", "columns": [ - "parentId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_parentId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappBusinessAccount", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariant_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariant" + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappCall", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariantOption_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariantOption" + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappCallPermission", "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireSubmission", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappCoexistStaging", "columns": [ - "questionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappFlow", "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Questionnaire_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappMessageTemplate", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Questionnaire_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappSignupSession", "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHours", "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" + "nameExplicit": false, + "name": "WorkingHours_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursDateOverride", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursInterval", "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursMember", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Workspace", "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "Workspace_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceApiToken", "columns": [ - "currentQuestionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceMac", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceMember", "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "Reflink", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_linkId_Reflink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Message", + "nameExplicit": true, "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" + "contactInboxId", + "sourceId", + "createdAt" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_flowId_Flow_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques" + }, + { "schema": "public", - "table": "Reflink" + "table": "ProductCategory", + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques" }, { - "nameExplicit": false, + "schema": "public", + "table": "ResponseSlaPolicy", + "nameExplicit": true, "columns": [ "workspaceId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserDeviceToken", + "nameExplicit": true, "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" + "token" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_customFieldId_CustomField_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques" + }, + { "schema": "public", - "table": "Reflink" + "table": "WorkingHours", + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursMember", + "nameExplicit": true, "columns": [ - "widgetLogoFileId" + "workspaceId", + "userId" ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques" + }, + { + "schema": "public", + "table": "WorkspaceApiToken", + "nameExplicit": true, + "columns": [ + "tokenHash" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques" + }, + { "schema": "public", - "table": "Reflink" + "table": "WorkspaceMac", + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques" }, { + "schema": "public", + "table": "UserQuota", "nameExplicit": false, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "userId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ResponseSlaPolicy" + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "entityType": "uniques" }, { + "schema": "public", + "table": "WorkspaceUsage", "nameExplicit": false, "columns": [ "workspaceId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "entityType": "uniques" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "Broadcast", + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "Connection", + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "Connection", + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks" + }, + { "schema": "public", - "table": "SavedReply" + "table": "Connection", + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "savedReplyId" - ], - "schemaTo": "public", - "tableTo": "SavedReply", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SavedReplyImage" + "table": "Connection", + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "mediaLibraryFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SavedReplyImage" + "table": "Connection", + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SavedReplyImage" + "table": "Connection", + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Sequence_folderId_Folder_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Sequence" + "table": "Connection", + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Sequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Sequence" + "table": "GoogleAdsConversionEvent", + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactId_Contact_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "stepId" - ], - "schemaTo": "public", - "tableTo": "SequenceStep", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks" }, { - "nameExplicit": true, - "columns": [ - "enrollmentId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "ContactOnSequence", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_enrollment_workspace_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "SequenceStep_flowId_Flow_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceStep" + "table": "GoogleAdsConversionEvent", + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceStep_sequenceId_Sequence_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceStep" + "table": "GoogleAdsConversionEvent", + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Spreadsheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Spreadsheet" + "table": "IntegrationWhatsapp", + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Tag_folderId_Folder_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Tag" + "table": "MessagingAdOperation", + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Tag_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Tag" + "table": "MessagingAdsConnection", + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TagChannel" + "table": "MetaCapiEvent", + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_tagId_Tag_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TagChannel" + "table": "MetaCapiEvent", + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TelegramChat" + "table": "MetaCapiEvent", + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_inboxId_Inbox_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TelegramChat" + "table": "QuestionnaireQuestion", + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Template_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Template" + "table": "ResponseSlaPolicy", + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Template_tenantId_Tenant_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Template" + "table": "ResponseSlaPolicy", + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Template_createdBy_User_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Template" + "table": "WhatsappSignupSession", + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TemplateInstallation" + "table": "WorkingHoursInterval", + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "templateId" - ], - "schemaTo": "public", - "tableTo": "Template", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_templateId_Template_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TemplateInstallation" + "table": "WorkingHoursInterval", + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "installFolderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" + "values": [ + "flow", + "flowNode", + "automatedResponse", + "whatsappFlow", + "emailTopic" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installFolderId_Folder_id_fkey", - "entityType": "fks", + "name": "contactActivityReferenceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowExecuted", + "flowNodeExecuted", + "automatedResponseMatched", + "formCompleted", + "messageSent", + "messageDelivered", + "messageOpened", + "messageClicked" + ], + "name": "contactActivityType", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActivity", "schema": "public", - "table": "TemplateInstallation" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "installedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installedBy_User_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "TemplateInstallation" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "installationId" - ], - "schemaTo": "public", - "tableTo": "TemplateInstallation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "TemplateInstalledResource" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "contactActivityType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activityType", "schema": "public", - "table": "TemplateInstalledResource" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Trigger_folderId_Folder_id_fkey", - "entityType": "fks", + "type": "contactActivityReferenceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceType", + "schema": "public", + "table": "ContactActivity", + "entityType": "columns" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentReferenceId", "schema": "public", - "table": "Trigger" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Trigger_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceId", "schema": "public", - "table": "Trigger" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_triggerId_Trigger_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstOccurredAt", "schema": "public", - "table": "Condition" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "activityType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentReferenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_webhookId_Webhook_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactActivity_reference_idx", "schema": "public", - "table": "Condition" + "table": "ContactActivity", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" + "workspaceId", + "contactId", + "activityType", + "referenceType", + "parentReferenceId", + "referenceId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactActivity_pkey", "schema": "public", - "table": "TriggerContactHistory" + "table": "ContactActivity", + "entityType": "pks" }, { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_contactId_Contact_id_fkey", - "entityType": "fks", + "value": "(\"activityType\" = 'flowExecuted' AND \"referenceType\" = 'flow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'flowNodeExecuted' AND \"referenceType\" = 'flowNode' AND \"parentReferenceId\" <> 0) OR (\"activityType\" = 'automatedResponseMatched' AND \"referenceType\" = 'automatedResponse' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'formCompleted' AND \"referenceType\" = 'whatsappFlow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageSent' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageDelivered' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageOpened' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageClicked' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0)", + "name": "ContactActivity_allowed_pair_check", "schema": "public", - "table": "TriggerContactHistory" + "table": "ContactActivity", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "isRlsEnabled": false, + "name": "ContactKeywordMessage", "schema": "public", - "table": "TriggerContactHistory" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_triggerId_Trigger_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "TriggerExecution" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_contactId_Contact_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "TriggerExecution" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", "schema": "public", - "table": "TriggerExecution" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_triggerId_Trigger_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automatedResponseId", "schema": "public", - "table": "TriggerStat" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", "schema": "public", - "table": "TriggerStat" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_userId_User_id_fkey", - "entityType": "fks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "normalizedText", "schema": "public", - "table": "UserDeviceToken" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", "schema": "public", - "table": "UserDeviceToken" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "ContactKeywordMessage_text_trgm_idx", "schema": "public", - "table": "UserPersistentMenu" + "table": "ContactKeywordMessage", + "entityType": "indexes" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "text_pattern_ops", + "default": false + } + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Vendor_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactKeywordMessage_text_prefix_idx", "schema": "public", - "table": "Vendor" + "table": "ContactKeywordMessage", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" + "workspaceId", + "contactId", + "messageId" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactKeywordMessage_pkey", "schema": "public", - "table": "Vendor" + "table": "ContactKeywordMessage", + "entityType": "pks" }, { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_categoryId_ProductCategory_id_fkey", - "entityType": "fks", + "isRlsEnabled": false, + "name": "ContactState", "schema": "public", - "table": "Vendor" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "Vendor" + "table": "ContactState", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Webhook_folderId_Folder_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "Webhook" + "table": "ContactState", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Webhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastDeliveredAt", "schema": "public", - "table": "Webhook" + "table": "ContactState", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastDeliveredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_webhookId_Webhook_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": "\"lastDeliveredAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactState_lastDeliveredAt_idx", "schema": "public", - "table": "WebhookExecution" + "table": "ContactState", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ + "workspaceId", "contactId" ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_contactId_Contact_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactState_pkey", "schema": "public", - "table": "WebhookExecution" + "table": "ContactState", + "entityType": "pks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicReferenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", "schema": "public", - "table": "WebhookExecution" + "table": "AnalyticsEmailTopic", + "entityType": "columns" }, { "nameExplicit": false, "columns": [ - "workspaceId" + "topicId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "EmailTopic", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", "schema": "public", - "table": "WhatsappBusinessAccount" + "table": "AnalyticsEmailTopic", + "entityType": "fks" }, { - "nameExplicit": false, - "columns": [ - "answeredByUserId" + "values": [ + "entireOrder", + "category", + "products" ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_answeredByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "initiatedByUserId" + "values": [ + "none", + "amount", + "quantity" ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_initiatedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "discountType", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" + "values": [ + "default", + "externalLink", + "flow", + "productPage" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "inboxId" + "values": [ + "default", + "flow", + "none" ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "productImageSize", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "contactInboxId" + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "conversationId" + "values": [ + "user", + "apiToken", + "system", + "contact" ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "orderSource", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "contactInboxId" + "values": [ + "unpaid", + "paid", + "refunded" ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", "schema": "public", - "table": "WhatsappCallPermission" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "WhatsappFlow" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "WhatsappMessageTemplate" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_userId_User_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_ownerId_User_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", "schema": "public", - "table": "WorkingHours" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", - "entityType": "fks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workingHoursId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", "schema": "public", - "table": "WorkingHoursMember" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_userId_User_id_fkey", - "entityType": "fks", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", "schema": "public", - "table": "WorkingHoursMember" + "table": "Cart", + "entityType": "indexes" }, { "nameExplicit": true, "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", "schema": "public", - "table": "WorkingHoursMember" + "table": "Cart", + "entityType": "indexes" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_userId_User_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", "schema": "public", - "table": "Workspace" + "table": "Cart", + "entityType": "indexes" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_tenantId_Tenant_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", "schema": "public", - "table": "Workspace" + "table": "Cart", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "Cart_pkey", "schema": "public", - "table": "WorkspaceApiToken" + "table": "Cart", + "entityType": "pks" }, { "nameExplicit": false, @@ -59438,2629 +58381,3687 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "Cart_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "WorkspaceMac" + "table": "Cart", + "entityType": "fks" }, { "nameExplicit": false, "columns": [ - "workspaceId" + "contactId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "Cart_contactId_Contact_id_fkey", "schema": "public", - "table": "WorkspaceMember" + "table": "Cart", + "entityType": "fks" }, { "nameExplicit": false, "columns": [ - "userId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsAgentResponseEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsBotMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "columns": [ - "broadcastId", - "contactInboxId", - "batchId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsBroadcastEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsContactEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsConversationEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "columns": [ - "flowId", - "analyticsId", - "nodeId", - "buttonId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsFlowNodeEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "columns": [ - "sequenceId", - "stepId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsSequenceEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Attachment_pkey", - "entityType": "pks", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", "schema": "public", - "table": "Attachment" + "table": "Cart", + "entityType": "fks" }, { - "columns": [ - "workspaceId", - "contactInboxId", - "throttleType", - "subjectId" - ], - "nameExplicit": true, - "name": "AutomationThrottle_pkey", - "entityType": "pks", + "isRlsEnabled": false, + "name": "DiscountCode", "schema": "public", - "table": "AutomationThrottle" + "entityType": "tables" }, { - "columns": [ - "broadcastId", - "inboxId" - ], - "nameExplicit": true, - "name": "BroadcastTarget_pkey", - "entityType": "pks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "BroadcastTarget" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "workspaceId", - "hourBucket", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveHourly_pkey", - "entityType": "pks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "ContactActiveHourly" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "workspaceId", - "periodStart", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveMonthly_pkey", - "entityType": "pks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "ContactActiveMonthly" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "workspaceId", - "contactInboxId", - "postId" - ], - "nameExplicit": true, - "name": "ContactInboxPost_pkey", - "entityType": "pks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "ContactInboxPost" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "broadcastId", - "contactId" - ], - "nameExplicit": true, - "name": "ContactsOnBroadcast_pkey", - "entityType": "pks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", "schema": "public", - "table": "ContactOnBroadcast" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "ContactOnSequence_pkey", - "entityType": "pks", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", "schema": "public", - "table": "ContactOnSequence" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "contactId", - "tagId" - ], - "nameExplicit": false, - "name": "ContactToTag_pkey", - "entityType": "pks", + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", "schema": "public", - "table": "ContactToTag" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "tagChannelId", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactToTagChannel_pkey", - "entityType": "pks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", "schema": "public", - "table": "ContactToTagChannel" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "leaderboardId", - "contactId" - ], - "nameExplicit": false, - "name": "LeaderboardParticipant_pkey", - "entityType": "pks", + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", "schema": "public", - "table": "LeaderboardParticipant" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "createdAt", - "id" - ], - "nameExplicit": false, - "name": "LeaderboardScoreEvent_pkey", - "entityType": "pks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", "schema": "public", - "table": "LeaderboardScoreEvent" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Message_pkey", - "entityType": "pks", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", "schema": "public", - "table": "Message" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "SequenceDispatch_pkey", - "entityType": "pks", + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", "schema": "public", - "table": "SequenceDispatch" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "contactId" - ], - "nameExplicit": true, - "name": "TriggerContactHistory_pkey", - "entityType": "pks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", "schema": "public", - "table": "TriggerContactHistory" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageShard_pkey", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", "schema": "public", - "table": "MessageShard", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ShardTimeRange_pkey", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", "schema": "public", - "table": "ShardTimeRange", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionEvent_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", "schema": "public", - "table": "AdsConversionEvent", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionRule_pkey", + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", "schema": "public", - "table": "AdsConversionRule", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIAgent_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", "schema": "public", - "table": "AIAgent", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationEmbedding_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", "schema": "public", - "table": "AIConversationEmbedding", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationSource_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", "schema": "public", - "table": "AIConversationSource", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIEmbedding_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", "schema": "public", - "table": "AIEmbedding", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "AIFile_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", "schema": "public", - "table": "AIFile", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "AIFunction_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", "schema": "public", - "table": "AIFunction", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "AIHandoverBulkRun_pkey", + "name": "DiscountCode_pkey", "schema": "public", - "table": "AIHandoverBulkRun", + "table": "DiscountCode", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "AIHandoverSettings_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "AIHandoverSettings", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "AIMCPServer_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", "schema": "public", - "table": "AIMCPServer", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AnalyticsEmailTopic_pkey", + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", "schema": "public", - "table": "AnalyticsEmailTopic", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "checks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Appointment_pkey", + "isRlsEnabled": false, + "name": "EcommerceOpenHours", "schema": "public", - "table": "Appointment", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendar_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "AppointmentCalendar", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarAvailability_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "AppointmentCalendarAvailability", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarReminder_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "AppointmentCalendarReminder", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentReminderDispatch_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "AppointmentReminderDispatch", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Account_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", "schema": "public", - "table": "Account", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Invitation_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", "schema": "public", - "table": "Invitation", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "Jwk_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", "schema": "public", - "table": "Jwk", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "Session_pkey", + "name": "EcommerceOpenHours_pkey", "schema": "public", - "table": "Session", + "table": "EcommerceOpenHours", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "User_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "User", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Verification_pkey", + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", "schema": "public", - "table": "Verification", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AutomatedResponse_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "AutomatedResponse", - "entityType": "pks" + "table": "EcommerceOrderCounter", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BotField_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", "schema": "public", - "table": "BotField", - "entityType": "pks" + "table": "EcommerceOrderCounter", + "entityType": "columns" }, { "columns": [ - "id" + "workspaceId" ], "nameExplicit": false, - "name": "Broadcast_pkey", + "name": "EcommerceOrderCounter_pkey", "schema": "public", - "table": "Broadcast", + "table": "EcommerceOrderCounter", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "BroadcastRecurrence_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "BroadcastRecurrence", - "entityType": "pks" + "table": "EcommerceOrderCounter", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrenceOccurrence_pkey", + "isRlsEnabled": false, + "name": "EcommerceSettings", "schema": "public", - "table": "BroadcastRecurrenceOccurrence", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Cart_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "Cart", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ChannelPost_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "ChannelPost", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CoexistSyncRun_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "CoexistSyncRun", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomation_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "CommentAutomation", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationEvent_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", "schema": "public", - "table": "CommentAutomationEvent", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationMiss_pkey", + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", "schema": "public", - "table": "CommentAutomationMiss", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationReply_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", "schema": "public", - "table": "CommentAutomationReply", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConnectSession_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", "schema": "public", - "table": "ConnectSession", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Connection_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", "schema": "public", - "table": "Connection", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Contact_pkey", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", "schema": "public", - "table": "Contact", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactCustomField_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", "schema": "public", - "table": "ContactCustomField", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactInbox_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", "schema": "public", - "table": "ContactInbox", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactNote_pkey", + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", "schema": "public", - "table": "ContactNote", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactOnSmartDelay_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", "schema": "public", - "table": "ContactOnSmartDelay", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Conversation_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", "schema": "public", - "table": "Conversation", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConversationParticipant_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", "schema": "public", - "table": "ConversationParticipant", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Coupon_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", "schema": "public", - "table": "Coupon", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CouponTopic_pkey", + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", "schema": "public", - "table": "CouponTopic", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomField_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", "schema": "public", - "table": "CustomField", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionConnection_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", "schema": "public", - "table": "DecisionConnection", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionProfile_pkey", + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", "schema": "public", - "table": "DecisionProfile", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCode_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", "schema": "public", - "table": "DiscountCode", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DynamicImage_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", "schema": "public", - "table": "DynamicImage", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceOpenHours_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", "schema": "public", - "table": "EcommerceOpenHours", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "workspaceId" - ], - "nameExplicit": false, - "name": "EcommerceOrderCounter_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", "schema": "public", - "table": "EcommerceOrderCounter", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceSettings_pkey", + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", "schema": "public", "table": "EcommerceSettings", - "entityType": "pks" + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EmailTopic_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", "schema": "public", - "table": "EmailTopic", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AuditLog_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", "schema": "public", - "table": "AuditLog", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomDomain_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", "schema": "public", - "table": "CustomDomain", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "License_pkey", + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", "schema": "public", - "table": "License", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "PlatformAdmin_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", "schema": "public", - "table": "PlatformAdmin", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tenant_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", "schema": "public", - "table": "Tenant", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TenantHelpItem_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", "schema": "public", - "table": "TenantHelpItem", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserQuota_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", "schema": "public", - "table": "UserQuota", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceUsage_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", "schema": "public", - "table": "WorkspaceUsage", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ErrorLog_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", "schema": "public", - "table": "ErrorLog", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "ExternalWebhook_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", "schema": "public", - "table": "ExternalWebhook", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookLeadAdsAutomation_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", "schema": "public", - "table": "FacebookLeadAdsAutomation", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookLeadAdsLead_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", "schema": "public", - "table": "FacebookLeadAdsLead", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookMarketingMessage_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", "schema": "public", - "table": "FacebookMarketingMessage", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookMarketingMessagesAuth_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", "schema": "public", - "table": "FacebookMarketingMessagesAuth", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "File_pkey", + "name": "EcommerceSettings_pkey", "schema": "public", - "table": "File", + "table": "EcommerceSettings", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "Flow_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "Flow", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowAnalyticsSession_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", "schema": "public", - "table": "FlowAnalyticsSession", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowNodeStat_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", "schema": "public", - "table": "FlowNodeStat", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowRun_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", "schema": "public", - "table": "FlowRun", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowVersion_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", "schema": "public", - "table": "FlowVersion", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Folder_pkey", + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", "schema": "public", - "table": "Folder", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "checks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsConversionEvent_pkey", + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", "schema": "public", - "table": "GoogleAdsConversionEvent", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsSettings_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "GoogleAdsSettings", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IgStoryAutomation_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "IgStoryAutomation", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Import_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "Import", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhook_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "InboundWebhook", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhookRequest_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", "schema": "public", - "table": "InboundWebhookRequest", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Inbox_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", "schema": "public", - "table": "Inbox", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "inboxId" - ], - "nameExplicit": false, - "name": "InboxContactStat_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "InboxContactStat", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeam_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", "schema": "public", - "table": "InboxTeam", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "InboxTeamMember_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", "schema": "public", - "table": "InboxTeamMember", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "IntegrationActiveCampaign_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", "schema": "public", - "table": "IntegrationActiveCampaign", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "IntegrationApi_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", "schema": "public", - "table": "IntegrationApi", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "Integration_pkey", + "name": "DiscountCodeRedemption_pkey", "schema": "public", - "table": "Integration", + "table": "DiscountCodeRedemption", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationClaude_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "IntegrationClaude", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationDeepseek_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", "schema": "public", - "table": "IntegrationDeepseek", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationDrip_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", "schema": "public", - "table": "IntegrationDrip", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationFacebookAds_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", "schema": "public", - "table": "IntegrationFacebookAds", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGemini_pkey", + "isRlsEnabled": false, + "name": "OrderItem", "schema": "public", - "table": "IntegrationGemini", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGetResponse_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "IntegrationGetResponse", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleAds_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "IntegrationGoogleAds", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleCalendar_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "IntegrationGoogleCalendar", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleSheet_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", "schema": "public", - "table": "IntegrationGoogleSheet", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationInstagram_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "IntegrationInstagram", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationKlaviyo_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", "schema": "public", - "table": "IntegrationKlaviyo", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailchimp_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", "schema": "public", - "table": "IntegrationMailchimp", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailerLite_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", "schema": "public", - "table": "IntegrationMailerLite", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMessenger_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", "schema": "public", - "table": "IntegrationMessenger", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMetaCatalog_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", "schema": "public", - "table": "IntegrationMetaCatalog", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMoosend_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", "schema": "public", - "table": "IntegrationMoosend", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenai_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", "schema": "public", - "table": "IntegrationOpenai", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenaiCompatible_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", "schema": "public", - "table": "IntegrationOpenaiCompatible", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenrouter_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", "schema": "public", - "table": "IntegrationOpenrouter", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOutlookCalendar_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", "schema": "public", - "table": "IntegrationOutlookCalendar", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSendGrid_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", "schema": "public", - "table": "IntegrationSendGrid", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSmtp_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", "schema": "public", - "table": "IntegrationSmtp", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTelegram_pkey", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", "schema": "public", - "table": "IntegrationTelegram", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationThreads_pkey", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", "schema": "public", - "table": "IntegrationThreads", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTiktok_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", "schema": "public", - "table": "IntegrationTiktok", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWebchat_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", "schema": "public", - "table": "IntegrationWebchat", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWhatsapp_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", "schema": "public", - "table": "IntegrationWhatsapp", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationZalo_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", "schema": "public", - "table": "IntegrationZalo", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Leaderboard_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", "schema": "public", - "table": "Leaderboard", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "LeaderboardAuditLog_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", "schema": "public", - "table": "LeaderboardAuditLog", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MagicLink_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", "schema": "public", - "table": "MagicLink", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MediaLibraryFile_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", "schema": "public", - "table": "MediaLibraryFile", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MediaLibraryFolder_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", "schema": "public", - "table": "MediaLibraryFolder", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MessageCleanup_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", "schema": "public", - "table": "MessageCleanup", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "MessagingAdOperation_pkey", + "name": "OrderItem_pkey", "schema": "public", - "table": "MessagingAdOperation", + "table": "OrderItem", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MessagingAdsConnection_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", "schema": "public", - "table": "MessagingAdsConnection", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MessengerMessageTemplate_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "MessengerMessageTemplate", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MessengerWelcomeMessageFlow_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", "schema": "public", - "table": "MessengerWelcomeMessageFlow", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MetaCapiEvent_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", "schema": "public", - "table": "MetaCapiEvent", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MetaCatalogItem_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", "schema": "public", - "table": "MetaCatalogItem", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MetaCatalogSyncRun_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", "schema": "public", - "table": "MetaCatalogSyncRun", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniApp_pkey", + "isRlsEnabled": false, + "name": "Order", "schema": "public", - "table": "MiniApp", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppPublication_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "MiniAppPublication", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppSubmission_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "MiniAppSubmission", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppUpload_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "MiniAppUpload", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Minigame_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "Minigame", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigameContact_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", "schema": "public", - "table": "MinigameContact", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigamePlay_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "MinigamePlay", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCodeRedemption_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", "schema": "public", - "table": "DiscountCodeRedemption", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderItem_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", "schema": "public", - "table": "OrderItem", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Order_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", "schema": "public", "table": "Order", - "entityType": "pks" + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderStatusHistory_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", "schema": "public", - "table": "OrderStatusHistory", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Credential_pkey", + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", "schema": "public", - "table": "PlatformCredential", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Product_pkey", + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", "schema": "public", - "table": "Product", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductAddon_pkey", + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", "schema": "public", - "table": "ProductAddon", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductCategory_pkey", + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", "schema": "public", - "table": "ProductCategory", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariant_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", "schema": "public", - "table": "ProductVariant", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariantOption_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", "schema": "public", - "table": "ProductVariantOption", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireAnswer_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", "schema": "public", - "table": "QuestionnaireAnswer", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Questionnaire_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", "schema": "public", - "table": "Questionnaire", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireQuestion_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", "schema": "public", - "table": "QuestionnaireQuestion", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireSubmission_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", "schema": "public", - "table": "QuestionnaireSubmission", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Reflink_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", "schema": "public", - "table": "Reflink", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ResponseSlaPolicy_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", "schema": "public", - "table": "ResponseSlaPolicy", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReply_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", "schema": "public", - "table": "SavedReply", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReplyImage_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", "schema": "public", - "table": "SavedReplyImage", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Sequence_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", "schema": "public", - "table": "Sequence", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SequenceStep_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", "schema": "public", - "table": "SequenceStep", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Spreadsheet_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", "schema": "public", - "table": "Spreadsheet", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SystemField_pkey", + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", "schema": "public", - "table": "SystemField", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tag_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", "schema": "public", - "table": "Tag", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TagChannel_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", "schema": "public", - "table": "TagChannel", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TelegramChat_pkey", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", "schema": "public", - "table": "TelegramChat", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Template_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", "schema": "public", - "table": "Template", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstallation_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", "schema": "public", - "table": "TemplateInstallation", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstalledResource_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", "schema": "public", - "table": "TemplateInstalledResource", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Trigger_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", "schema": "public", - "table": "Trigger", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Condition_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", "schema": "public", - "table": "Condition", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerExecution_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", "schema": "public", - "table": "TriggerExecution", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "TriggerStat_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", "schema": "public", - "table": "TriggerStat", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "UserDeviceToken_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", "schema": "public", - "table": "UserDeviceToken", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "UserPersistentMenu_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", "schema": "public", - "table": "UserPersistentMenu", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "Vendor_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", "schema": "public", - "table": "Vendor", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "Webhook_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", "schema": "public", - "table": "Webhook", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "WebhookExecution_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", "schema": "public", - "table": "WebhookExecution", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "WhatsappBusinessAccount_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", "schema": "public", - "table": "WhatsappBusinessAccount", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "WhatsappCall_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", "schema": "public", - "table": "WhatsappCall", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "WhatsappCallPermission_pkey", + "name": "Order_pkey", "schema": "public", - "table": "WhatsappCallPermission", + "table": "Order", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappCoexistStaging_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "WhatsappCoexistStaging", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappFlow_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", "schema": "public", - "table": "WhatsappFlow", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappMessageTemplate_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", "schema": "public", - "table": "WhatsappMessageTemplate", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappSignupSession_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", "schema": "public", - "table": "WhatsappSignupSession", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WorkingHours_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", "schema": "public", - "table": "WorkingHours", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WorkingHoursDateOverride_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", "schema": "public", - "table": "WorkingHoursDateOverride", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursInterval_pkey", + "isRlsEnabled": false, + "name": "OrderStatusHistory", "schema": "public", - "table": "WorkingHoursInterval", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursMember_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "WorkingHoursMember", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Workspace_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "Workspace", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceApiToken_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "WorkspaceApiToken", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMac_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", "schema": "public", - "table": "WorkspaceMac", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMember_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "WorkspaceMember", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "contactInboxId", - "sourceId", - "createdAt" - ], - "nullsNotDistinct": false, - "name": "Message_source_dedup_idx", - "entityType": "uniques", + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", "schema": "public", - "table": "Message" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "workspaceId", - "parentId", - "name" - ], - "nullsNotDistinct": true, - "name": "ProductCategory_workspaceId_parent_name_key", - "entityType": "uniques", + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", "schema": "public", - "table": "ProductCategory" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "ResponseSlaPolicy_workspaceId_key", - "entityType": "uniques", + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", "schema": "public", - "table": "ResponseSlaPolicy" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "UserDeviceToken_token_key", - "entityType": "uniques", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", "schema": "public", - "table": "UserDeviceToken" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "id", - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkingHours_id_workspaceId_key", - "entityType": "uniques", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", "schema": "public", - "table": "WorkingHours" + "table": "OrderStatusHistory", + "entityType": "columns" }, { "nameExplicit": true, "columns": [ - "workspaceId", - "userId" + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nullsNotDistinct": false, - "name": "WorkingHoursMember_workspaceId_userId_key", - "entityType": "uniques", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", "schema": "public", - "table": "WorkingHoursMember" + "table": "OrderStatusHistory", + "entityType": "indexes" }, { "nameExplicit": true, "columns": [ - "tokenHash" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nullsNotDistinct": false, - "name": "WorkspaceApiToken_tokenHash_key", - "entityType": "uniques", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", "schema": "public", - "table": "WorkspaceApiToken" + "table": "OrderStatusHistory", + "entityType": "indexes" }, { "nameExplicit": true, "columns": [ - "workspaceId", - "periodStart", - "periodEnd" + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nullsNotDistinct": false, - "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", - "entityType": "uniques", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", "schema": "public", - "table": "WorkspaceMac" + "table": "OrderStatusHistory", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "userId" + "id" ], - "nullsNotDistinct": false, - "name": "UserQuota_userId_key", - "schema": "public", - "table": "UserQuota", - "entityType": "uniques" - }, - { "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkspaceUsage_workspaceId_key", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "uniques" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", - "name": "AdsConversionEvent_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", - "name": "Broadcast_occurrence_pair_check", - "entityType": "checks", - "schema": "public", - "table": "Broadcast" - }, - { - "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", - "name": "ConnectSession_actor_at_most_one", - "entityType": "checks", + "name": "OrderStatusHistory_pkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "pks" }, { - "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", - "name": "ConnectSession_status_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "fks" }, { - "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", - "name": "ConnectSession_purpose_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "fks" }, { - "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", - "name": "ConnectSession_errorCode_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "fks" }, { - "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", - "name": "ConnectSession_errorCode_terminal_failure_check", - "entityType": "checks", + "isRlsEnabled": false, + "name": "Vendor", "schema": "public", - "table": "ConnectSession" + "entityType": "tables" }, { - "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", - "name": "ConnectSession_terminal_consumedAt_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "ConnectSession" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", - "name": "ConnectSession_terminal_clears_encryptedAuth_check", - "entityType": "checks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "ConnectSession" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", - "name": "ConnectSession_active_reconnect_requires_target_check", - "entityType": "checks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "ConnectSession" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", - "name": "Connection_kind_relation_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", - "name": "Connection_inbox_integration_exclusive_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"kind\" IN ('channel', 'integration')", - "name": "Connection_kind_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", - "name": "Connection_status_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", - "name": "Connection_statusReason_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", - "name": "Connection_status_reason_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", - "name": "Connection_disconnectedAt_check", - "entityType": "checks", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", - "name": "DiscountCode_usedCount_check", - "entityType": "checks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", "schema": "public", - "table": "DiscountCode" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", - "name": "EcommerceSettings_serviceFeePercent_check", - "entityType": "checks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", "schema": "public", - "table": "EcommerceSettings" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sent_requires_request_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sending_requires_claim_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", - "name": "GoogleAdsConversionEvent_processing_status_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", - "name": "GoogleAdsConversionEvent_failure_stage_check", - "entityType": "checks", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", - "name": "GoogleAdsConversionEvent_value_currency_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "\"value\" IS NULL OR \"value\" >= 0", - "name": "GoogleAdsConversionEvent_value_non_negative_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "length(\"clickId\") BETWEEN 10 AND 512", - "name": "GoogleAdsConversionEvent_clickId_length_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", - "name": "GoogleAdsConversionEvent_uploadMethod_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", - "name": "GoogleAdsConversionEvent_attempt_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", - "name": "IntegrationWhatsapp_registrationStatus_error_consistent", - "entityType": "checks", + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Vendor", + "entityType": "pks" }, { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdOperation_channel_integration_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "MessagingAdOperation" + "table": "Vendor", + "entityType": "fks" }, { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdsConnection_channel_integration_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", "schema": "public", - "table": "MessagingAdsConnection" + "table": "Vendor", + "entityType": "fks" }, { - "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", - "name": "MetaCapiEvent_channel_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", "schema": "public", - "table": "MetaCapiEvent" + "table": "Vendor", + "entityType": "fks" }, { - "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", - "name": "MetaCapiEvent_actionSource_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", "schema": "public", - "table": "MetaCapiEvent" + "table": "Vendor", + "entityType": "fks" }, { - "value": "\"contentType\" IN ('product', 'product_group')", - "name": "MetaCapiEvent_contentType_check", - "entityType": "checks", + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", "schema": "public", - "table": "MetaCapiEvent" + "table": "Vendor", + "entityType": "checks" }, { - "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", - "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", - "entityType": "checks", + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", "schema": "public", - "table": "QuestionnaireQuestion" + "table": "Attachment" }, { - "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", - "name": "ResponseSlaPolicy_targets_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", "schema": "public", - "table": "ResponseSlaPolicy" + "table": "Product" }, { - "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", - "name": "ResponseSlaPolicy_threshold_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", "schema": "public", - "table": "ResponseSlaPolicy" + "table": "ProductCategory" }, { - "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", - "name": "Vendor_discountPercent_check", - "entityType": "checks", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", "schema": "public", - "table": "Vendor" + "table": "ProductCategory" }, { - "value": "cardinality(\"candidatePhoneNumberIds\") > 0", - "name": "WhatsappSignupSession_candidates_not_empty", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AuditLog" }, { - "value": "\"weekday\" BETWEEN 0 AND 6", - "name": "WorkingHoursInterval_weekday_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Product" }, { - "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", - "name": "WorkingHoursInterval_minutes_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Product" } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261025020838_add_workspace_purge_indexes/migration.sql b/packages/database/drizzle/20261025020838_add_workspace_purge_indexes/migration.sql new file mode 100644 index 0000000000..aba22e7e54 --- /dev/null +++ b/packages/database/drizzle/20261025020838_add_workspace_purge_indexes/migration.sql @@ -0,0 +1,207 @@ +-- Leading indexes on the foreign keys that workspace purge cascades through. +-- Deleting a parent row fires `DELETE FROM WHERE = $1` per row; +-- without an index on every check seq-scans the child table. Nullable +-- FKs use a partial index (`WHERE IS NOT NULL`) so NULL rows add no size. +-- +-- Every index is built CONCURRENTLY, so drizzle's runner executes this file +-- outside a transaction (see scripts/run-migrations.mjs) and a failed build must +-- be safely re-runnable: each statement is preceded by a guard that drops only a +-- leftover INVALID index of the same name, and the build is `IF NOT EXISTS`. +-- HASH-partitioned tables are handled separately in +-- 20261025020711_add_workspace_purge_partitioned_indexes. +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIConversationEmbedding_lookup_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIConversationEmbedding_lookup_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIConversationEmbedding_lookup_idx" ON "AIConversationEmbedding" ("workspaceId", "conversationId", "sourceId", "status");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIEmbedding_aiFileId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIEmbedding_aiFileId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIEmbedding_aiFileId_idx" ON "AIEmbedding" ("aiFileId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"ContactToTag_tagId_idx"') AND NOT indisvalid) THEN + DROP INDEX "ContactToTag_tagId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "ContactToTag_tagId_idx" ON "ContactToTag" ("tagId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowRun_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_workspaceId_idx" ON "FlowRun" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_flowId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowRun_flowId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_flowId_idx" ON "FlowRun" ("flowId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowRun_flowVersionId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowRun_flowVersionId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowRun_flowVersionId_idx" ON "FlowRun" ("flowVersionId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowVersion_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowVersion_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowVersion_workspaceId_idx" ON "FlowVersion" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FlowVersion_flowId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FlowVersion_flowId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FlowVersion_flowId_idx" ON "FlowVersion" ("flowId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardParticipant_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "LeaderboardParticipant_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardParticipant_workspaceId_idx" ON "LeaderboardParticipant" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardParticipant_referrerContactId_idx"') AND NOT indisvalid) THEN + DROP INDEX "LeaderboardParticipant_referrerContactId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardParticipant_referrerContactId_idx" ON "LeaderboardParticipant" ("referrerContactId") WHERE "referrerContactId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"CommentAutomationReply_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "CommentAutomationReply_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "CommentAutomationReply_workspaceId_idx" ON "CommentAutomationReply" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"LeaderboardAuditLog_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "LeaderboardAuditLog_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "LeaderboardAuditLog_workspaceId_idx" ON "LeaderboardAuditLog" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIAgent_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIAgent_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIAgent_workspaceId_idx" ON "AIAgent" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AIFile_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AIFile_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AIFile_workspaceId_idx" ON "AIFile" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"Flow_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "Flow_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "Flow_workspaceId_idx" ON "Flow" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"InboxTeam_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "InboxTeam_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "InboxTeam_workspaceId_idx" ON "InboxTeam" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"SavedReply_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "SavedReply_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SavedReply_workspaceId_idx" ON "SavedReply" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"SavedReplyImage_workspaceId_idx"') AND NOT indisvalid) THEN + DROP INDEX "SavedReplyImage_workspaceId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "SavedReplyImage_workspaceId_idx" ON "SavedReplyImage" ("workspaceId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_contactId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AnalyticsEmailTopic_contactId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_contactId_idx" ON "AnalyticsEmailTopic" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_conversationId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AnalyticsEmailTopic_conversationId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_conversationId_idx" ON "AnalyticsEmailTopic" ("conversationId") WHERE "conversationId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"AnalyticsEmailTopic_contactInboxId_idx"') AND NOT indisvalid) THEN + DROP INDEX "AnalyticsEmailTopic_contactInboxId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "AnalyticsEmailTopic_contactInboxId_idx" ON "AnalyticsEmailTopic" ("contactInboxId") WHERE "contactInboxId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"FacebookLeadAdsLead_contactId_idx"') AND NOT indisvalid) THEN + DROP INDEX "FacebookLeadAdsLead_contactId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "FacebookLeadAdsLead_contactId_idx" ON "FacebookLeadAdsLead" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MiniAppUpload_contactId_idx"') AND NOT indisvalid) THEN + DROP INDEX "MiniAppUpload_contactId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "MiniAppUpload_contactId_idx" ON "MiniAppUpload" ("contactId") WHERE "contactId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MinigameContact_referrerContactId_idx"') AND NOT indisvalid) THEN + DROP INDEX "MinigameContact_referrerContactId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "MinigameContact_referrerContactId_idx" ON "MinigameContact" ("referrerContactId") WHERE "referrerContactId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"MinigameContact_contactInboxId_idx"') AND NOT indisvalid) THEN + DROP INDEX "MinigameContact_contactInboxId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "MinigameContact_contactInboxId_idx" ON "MinigameContact" ("contactInboxId") WHERE "contactInboxId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_contactId_idx"') AND NOT indisvalid) THEN + DROP INDEX "QuestionnaireSubmission_contactId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_contactId_idx" ON "QuestionnaireSubmission" ("contactId");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_conversationId_idx"') AND NOT indisvalid) THEN + DROP INDEX "QuestionnaireSubmission_conversationId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_conversationId_idx" ON "QuestionnaireSubmission" ("conversationId") WHERE "conversationId" IS NOT NULL;--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"QuestionnaireSubmission_currentQuestionId_idx"') AND NOT indisvalid) THEN + DROP INDEX "QuestionnaireSubmission_currentQuestionId_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "QuestionnaireSubmission_currentQuestionId_idx" ON "QuestionnaireSubmission" ("currentQuestionId") WHERE "currentQuestionId" IS NOT NULL; diff --git a/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/snapshot.json b/packages/database/drizzle/20261025020838_add_workspace_purge_indexes/snapshot.json similarity index 81% rename from packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/snapshot.json rename to packages/database/drizzle/20261025020838_add_workspace_purge_indexes/snapshot.json index 050e7ff5c3..91d9c409a1 100644 --- a/packages/database/drizzle/20261024103305_add_workspace_purge_hot_indexes/snapshot.json +++ b/packages/database/drizzle/20261025020838_add_workspace_purge_indexes/snapshot.json @@ -1,12 +1,13 @@ { - "version": "8", - "dialect": "postgres", - "id": "40cf9d2a-d989-4410-a8f6-1ba0485e39de", + "id": "2e489004-42f1-4a07-83d3-c6cd07aa47ca", "prevIds": [ - "9d0ba254-b168-43a3-ac8d-86a99cf55674" + "9ca0f238-71f7-4aba-a8a8-8bdc3b0bb367" ], + "version": "8", + "dialect": "postgres", "ddl": [ { + "schema": "public", "values": [ "pending", "sent", @@ -15,20 +16,20 @@ "skipped_region" ], "name": "adsConversionCapiStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "automatic", "rule", "trigger" ], "name": "adsConversionEventSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "whatsapp", "facebook", @@ -36,19 +37,19 @@ "instagram" ], "name": "adsConversionChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "lead", "purchase" ], "name": "adsConversionEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "success", @@ -56,10 +57,10 @@ "processing" ], "name": "aiConversationEmbeddingStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "processing", @@ -67,10 +68,10 @@ "error" ], "name": "aiConversationSourceStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "document", "image", @@ -78,10 +79,10 @@ "web_search" ], "name": "aiConversationSourceType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "success", @@ -89,19 +90,19 @@ "processing" ], "name": "aiEmbeddingStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "enable", "disable" ], "name": "aiHandoverBulkAction", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "running", @@ -111,10 +112,10 @@ "cancelled" ], "name": "aiHandoverBulkStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "automated_response", "ai_agent", @@ -122,29 +123,29 @@ "none" ], "name": "analyticsBotResponseType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "success", "fallback" ], "name": "analyticsBotResult", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "flow", "agent", "fallback" ], "name": "analyticsBotRouteType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "message:sent", "message:delivered", @@ -153,29 +154,29 @@ "flow:clicked" ], "name": "analyticsBroadcastEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "contact_created", "contact_deleted", "contact_blocked" ], "name": "analyticsContactEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "bot", "human" ], "name": "analyticsContactSenderType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "conversation_created", "conversation_assigned", @@ -188,68 +189,68 @@ "conversation_unarchived" ], "name": "analyticsConversationEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "message_human_sent", "message_bot_sent" ], "name": "analyticsMessageEventType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "processing", "ingested", "failed" ], "name": "analyticsStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "synced", "failed" ], "name": "appointmentExternalSyncStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inPerson", "phoneCall", "onlineMeeting" ], "name": "appointmentLocationTypeSnapshot", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "scheduled", "cancelled" ], "name": "appointmentStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inPerson", "phoneCall", "onlineMeeting" ], "name": "appointmentLocationType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "rollingDays", "dateRange", @@ -257,20 +258,20 @@ "anyFutureDate" ], "name": "appointmentScheduleWindowType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "minutes", "hours", "days" ], "name": "appointmentReminderTimingUnit", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "sent", @@ -278,10 +279,10 @@ "failed" ], "name": "appointmentReminderDispatchStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "image", "video", @@ -290,37 +291,37 @@ "file" ], "name": "fileType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inbound", "outbound" ], "name": "automatedResponseType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "defaultReply" ], "name": "automationThrottleType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "now", "future", "recurring" ], "name": "broadcastScheduleType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "scheduled", "sent", @@ -331,20 +332,20 @@ "recurring" ], "name": "broadcastStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "created", "skipped", "missed" ], "name": "broadcastOccurrenceOutcome", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "catchUpSuperseded", "paused", @@ -356,29 +357,29 @@ "excludedDate" ], "name": "broadcastOccurrenceReason", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "whatsapp", "messenger", "instagram" ], "name": "coexistChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "contacts", "messages" ], "name": "coexistMessengerSyncPhase", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "init", "running", @@ -388,19 +389,19 @@ "waiting" ], "name": "coexistRunStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "coexist", "contact_scan" ], "name": "coexistRunType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "messenger", "instagram", @@ -409,37 +410,37 @@ "tiktok" ], "name": "commentAutomationType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "equal", "contain" ], "name": "commentExcludeKeywordsType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "sent", "failed" ], "name": "commentAutomationEventStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "public", "private" ], "name": "commentAutomationReplyChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "AIAgent", "text", @@ -447,10 +448,10 @@ "none" ], "name": "commentAutomationReplyType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "outsideSchedule", "postNotMatched", @@ -462,20 +463,20 @@ "engagedOnOtherPost" ], "name": "commentAutomationMissReason", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "male", "female", "unknown" ], "name": "gender", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "captured", @@ -483,10 +484,10 @@ "failed" ], "name": "contactInboxProfileSnapshotState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "text", "location", @@ -499,10 +500,10 @@ "storyMention" ], "name": "lastUserInputType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inboundReceived", "standbyReceived", @@ -515,20 +516,20 @@ "serviceRejected" ], "name": "threadControlEvent", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "owned", "standby", "idle" ], "name": "threadControlState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "scheduled", @@ -537,29 +538,29 @@ "canceled" ], "name": "ContactOnSmartDelayStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "waitNode", "followUp", "quickReplyFollowUp" ], "name": "ContactOnSmartDelayType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "active", "archived" ], "name": "couponTopicStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "shortText", "email", @@ -571,171 +572,67 @@ "longText" ], "name": "customFieldType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "enabled", "disabled" ], "name": "DecisionConnectionStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "passed", "failed" ], "name": "DecisionConnectionTestStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "typesafe", "systemOneCompatible", "openrouterDecision" ], "name": "DecisionProviderKind", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "enabled", "disabled" ], "name": "DecisionProfileStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "entireOrder", - "category", - "products" - ], - "name": "discountAppliesTo", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "everyone", - "specificCustomers" - ], - "name": "discountEligibility", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "amount", - "quantity" - ], - "name": "discountMinimumType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "percentage", - "fixedAmount", - "freeShipping" - ], - "name": "discountType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "externalLink", - "flow", - "productPage" - ], - "name": "checkoutMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "left", - "leftSpace", - "right", - "rightSpace" - ], - "name": "currencyPosition", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "default", - "flow", - "none" - ], - "name": "orderConfirmationMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "bigSquare", - "mediumRectangle" - ], - "name": "productImageSize", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "none", - "delivery", - "pickup", - "deliveryAndPickup" - ], - "name": "shippingMode", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "list", - "listWithoutImage", - "card", - "cardSquare", - "image", - "imageSquare" - ], - "name": "webshopProductView", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "import", "generic", "export" ], "name": "fileContextType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "uploaded", "failed" ], "name": "fileStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "tag", "flow", @@ -751,28 +648,28 @@ "outboundAutomatedResponse" ], "name": "folderType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "gclid", "gbraid" ], "name": "googleAdsClickIdType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "flowStep", "triggerAction" ], "name": "googleAdsEventSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "sending", @@ -783,20 +680,20 @@ "skipped_expired" ], "name": "googleAdsEventStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "delivery", "processing", "timeout" ], "name": "googleAdsFailureStage", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "processing", "success", @@ -806,28 +703,28 @@ "timed_out" ], "name": "googleAdsProcessingStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "storyReply", "storyMention" ], "name": "igStoryAutomationTrigger", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "instagram", "instagramFacebook" ], "name": "igStoryAutomationType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "csv", "xlsx", @@ -835,10 +732,10 @@ "json" ], "name": "importFormat", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "processing", @@ -846,10 +743,10 @@ "failed" ], "name": "importStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "contacts", "coupons", @@ -857,10 +754,10 @@ "flow" ], "name": "importType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "received", "processing", @@ -870,28 +767,28 @@ "failed" ], "name": "inboundWebhookRequestStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "oauth", "fbe" ], "name": "metaCatalogAuthMode", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "active", "invalid" ], "name": "metaCatalogConnectionStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "idle", "queued", @@ -901,38 +798,38 @@ "failed" ], "name": "metaCatalogImportStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "metaNative", "browserWhisper" ], "name": "whatsappCallRecordingMode", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "metaNative", "browserWhisper" ], "name": "whatsappCallTranscriptionMode", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending_verification", "registered", "failed" ], "name": "whatsappRegistrationStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "messenger", "instagram", @@ -945,10 +842,10 @@ "gamification" ], "name": "leaderboardPlatform", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "draft", "active", @@ -956,10 +853,10 @@ "finished" ], "name": "leaderboardStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "adjust", "resetOne", @@ -968,10 +865,10 @@ "unban" ], "name": "leaderboardAuditAction", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "rule", "flow", @@ -980,39 +877,39 @@ "reset" ], "name": "leaderboardScoreSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "text", "location", "refLink" ], "name": "contentType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "message", "comment" ], "name": "messageKind", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "incoming", "outgoing", "activity" ], "name": "messageType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "bot", "contact", @@ -1021,10 +918,10 @@ "api" ], "name": "senderType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "processing", @@ -1032,20 +929,20 @@ "failed" ], "name": "MessageCleanupStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "whatsapp", "messenger", "instagram" ], "name": "messagingAdChannel", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "campaignCreated", @@ -1055,10 +952,10 @@ "failed" ], "name": "messagingAdCreateState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "draft", "publishing", @@ -1070,29 +967,29 @@ "publishFailed" ], "name": "messagingAdPublishState", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "push", "import" ], "name": "metaCatalogItemDirection", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "all", "category", "selected" ], "name": "metaCatalogSyncScope", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "queued", "running", @@ -1101,27 +998,27 @@ "failed" ], "name": "metaCatalogSyncStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "web" ], "name": "miniAppSubmissionSource", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "submitted" ], "name": "miniAppUploadStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "luckyWheel", "jackpot", @@ -1130,79 +1027,19 @@ "scratchOff" ], "name": "minigameType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "user", - "apiToken", - "system", - "contact" - ], - "name": "orderActorType", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "webshop", - "api", - "manual" - ], - "name": "orderSource", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "pending", - "accepted", - "shipped", - "concluded", - "cancelled" - ], - "name": "orderStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "cod" - ], - "name": "paymentMethod", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "unpaid", - "paid", - "refunded" - ], - "name": "paymentStatus", - "entityType": "enums", - "schema": "public" - }, - { - "values": [ - "delivery", - "pickup" - ], - "name": "shippingType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "dont_track", "track" ], "name": "inventoryPolicy", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "text", "number", @@ -1217,10 +1054,10 @@ "websiteLink" ], "name": "questionnaireQuestionType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "inProgress", "completed", @@ -1229,27 +1066,27 @@ "timeout" ], "name": "questionnaireSubmissionStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "refLink", "qrCode" ], "name": "ReflinkType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "me" ], "name": "SystemFieldType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "creator", "administrator", @@ -1259,10 +1096,10 @@ "kicked" ], "name": "telegramBotChatStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "private", "group", @@ -1270,10 +1107,10 @@ "channel" ], "name": "telegramChatType", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "pending", "installing", @@ -1282,10 +1119,10 @@ "failed" ], "name": "templateInstallationStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "flows", "products", @@ -1303,28 +1140,28 @@ "productCategories" ], "name": "templateResourceCategory", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "ios", "android" ], "name": "devicePlatform", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "userInitiated", "businessInitiated" ], "name": "whatsappCallDirection", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "completed", "failed", @@ -1332,10 +1169,10 @@ "canceled" ], "name": "whatsappCallOutcome", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "ringing", "accepted", @@ -1344,1349 +1181,1290 @@ "failed" ], "name": "whatsappCallStatus", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "accept", "reject" ], "name": "whatsappCallPermissionResponse", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "allTime", "oncePerHour", "oncePerDay" ], "name": "defaultReplyFrequency", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "full", "read_only" ], "name": "WorkspaceApiTokenPermission", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "values": [ "owner", "agent" ], "name": "workspaceMemberRole", - "entityType": "enums", - "schema": "public" + "entityType": "enums" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessageShard", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ShardTimeRange", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AdsConversionEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AdsConversionRule", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIAgent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIConversationEmbedding", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIConversationSource", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIEmbedding", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIFile", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIFunction", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIHandoverBulkRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIHandoverSettings", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AIMCPServer", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsAgentResponseEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsBotMessageEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsBroadcastEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsContactEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsConversationEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsFlowNodeEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsMessageEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsSequenceEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsEmailTopic", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AnalyticsManifestStatus", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Appointment", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentCalendar", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentCalendarAvailability", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentCalendarReminder", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AppointmentReminderDispatch", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Attachment", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Account", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Invitation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Jwk", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Session", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "User", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Verification", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AutomatedResponse", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AutomationThrottle", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BotField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Broadcast", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BroadcastRecurrence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BroadcastRecurrenceOccurrence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "BroadcastTarget", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Cart", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ChannelPost", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CoexistSyncRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomationEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomationMiss", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CommentAutomationReply", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ConnectSession", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Connection", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Contact", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactActiveHourly", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactActiveMonthly", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactCustomField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactInbox", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactInboxPost", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactNote", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactOnBroadcast", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactOnSequence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactOnSmartDelay", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactToTag", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ContactToTagChannel", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Conversation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ConversationParticipant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Coupon", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CouponTopic", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CustomField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "DecisionConnection", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "DecisionProfile", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCode", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "DynamicImage", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOpenHours", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceOrderCounter", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "EcommerceSettings", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "EmailTopic", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "AuditLog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "CustomDomain", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "License", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "PlatformAdmin", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Tenant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TenantHelpItem", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "UserQuota", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceUsage", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ErrorLog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ExternalWebhook", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookLeadAdsAutomation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookLeadAdsLead", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookMarketingMessage", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FacebookMarketingMessagesAuth", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "File", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Flow", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowAnalyticsSession", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowNodeStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "FlowVersion", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Folder", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "GoogleAdsConversionEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "GoogleAdsSettings", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IgStoryAutomation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Import", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboundWebhook", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboundWebhookRequest", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Inbox", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboxContactStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboxTeam", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "InboxTeamMember", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationActiveCampaign", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationApi", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Integration", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationClaude", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationDeepseek", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationDrip", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationFacebookAds", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGemini", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGetResponse", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGoogleAds", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGoogleCalendar", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationGoogleSheet", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationInstagram", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationKlaviyo", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMailchimp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMailerLite", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMessenger", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMetaCatalog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationMoosend", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOpenai", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOpenaiCompatible", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOpenrouter", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationOutlookCalendar", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationSendGrid", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationSmtp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationTelegram", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationThreads", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationTiktok", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationWebchat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationWhatsapp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "IntegrationZalo", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Leaderboard", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "LeaderboardAuditLog", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "LeaderboardParticipant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "LeaderboardScoreEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MagicLink", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MagicLinkStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MediaLibraryFile", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MediaLibraryFolder", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Message", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessageCleanup", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessagingAdOperation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessagingAdsConnection", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessengerMessageTemplate", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MessengerWelcomeMessageFlow", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MetaCapiEvent", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MetaCatalogItem", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MetaCatalogSyncRun", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniApp", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniAppPublication", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniAppSubmission", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MiniAppUpload", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Minigame", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MinigameContact", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "MinigamePlay", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "DiscountCodeRedemption", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderItem", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Order", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "OrderStatusHistory", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "PlatformCredential", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Product", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductAddon", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductCategory", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductVariant", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ProductVariantOption", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "QuestionnaireAnswer", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Questionnaire", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "QuestionnaireQuestion", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "QuestionnaireSubmission", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "RefLinkStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Reflink", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "ResponseSlaPolicy", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SavedReply", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SavedReplyImage", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Sequence", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SequenceDispatch", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SequenceStep", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Spreadsheet", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "SystemField", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Tag", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TagChannel", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TelegramChat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Template", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TemplateInstallation", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TemplateInstalledResource", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Trigger", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Condition", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TriggerContactHistory", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TriggerExecution", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "TriggerStat", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "UserDeviceToken", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "UserPersistentMenu", - "entityType": "tables", - "schema": "public" - }, - { - "isRlsEnabled": false, - "name": "Vendor", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Webhook", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WebhookExecution", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappBusinessAccount", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappCall", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappCallPermission", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappCoexistStaging", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappFlow", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappMessageTemplate", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WhatsappSignupSession", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHours", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHoursDateOverride", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHoursInterval", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkingHoursMember", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "Workspace", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceApiToken", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceMac", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", "isRlsEnabled": false, "name": "WorkspaceMember", - "entityType": "tables", - "schema": "public" + "entityType": "tables" }, { + "schema": "public", + "table": "MessageShard", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2695,11 +2473,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2708,11 +2486,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2721,11 +2499,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2734,11 +2512,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2747,11 +2525,11 @@ "generated": null, "identity": null, "name": "host", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "integer", "typeSchema": null, "notNull": false, @@ -2760,11 +2538,11 @@ "generated": null, "identity": null, "name": "port", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2773,11 +2551,11 @@ "generated": null, "identity": null, "name": "database", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": true, @@ -2786,11 +2564,11 @@ "generated": null, "identity": null, "name": "user", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": false, @@ -2799,11 +2577,11 @@ "generated": null, "identity": null, "name": "credentialRef", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": false, @@ -2812,11 +2590,11 @@ "generated": null, "identity": null, "name": "sslMode", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "boolean", "typeSchema": null, "notNull": false, @@ -2825,11 +2603,11 @@ "generated": null, "identity": null, "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "boolean", "typeSchema": null, "notNull": false, @@ -2838,11 +2616,11 @@ "generated": null, "identity": null, "name": "isMain", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "integer", "typeSchema": null, "notNull": false, @@ -2851,11 +2629,11 @@ "generated": null, "identity": null, "name": "shardKey", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "text", "typeSchema": null, "notNull": false, @@ -2864,11 +2642,11 @@ "generated": null, "identity": null, "name": "readHost", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageShard", "type": "integer", "typeSchema": null, "notNull": false, @@ -2877,11 +2655,11 @@ "generated": null, "identity": null, "name": "readPort", - "entityType": "columns", - "schema": "public", - "table": "MessageShard" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2890,11 +2668,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2903,11 +2681,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2916,11 +2694,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2929,11 +2707,11 @@ "generated": null, "identity": null, "name": "shardId", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2942,11 +2720,11 @@ "generated": null, "identity": null, "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "ShardTimeRange", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -2955,11 +2733,11 @@ "generated": null, "identity": null, "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "ShardTimeRange" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -2968,11 +2746,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2981,11 +2759,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -2994,11 +2772,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3007,11 +2785,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionChannel", "typeSchema": "public", "notNull": true, @@ -3020,11 +2798,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3033,11 +2811,11 @@ "generated": null, "identity": null, "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3046,11 +2824,11 @@ "generated": null, "identity": null, "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3059,11 +2837,11 @@ "generated": null, "identity": null, "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3072,11 +2850,11 @@ "generated": null, "identity": null, "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionEventSource", "typeSchema": "public", "notNull": true, @@ -3085,11 +2863,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionEventType", "typeSchema": "public", "notNull": true, @@ -3098,11 +2876,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3111,11 +2889,11 @@ "generated": null, "identity": null, "name": "ctwaClid", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3124,11 +2902,11 @@ "generated": null, "identity": null, "name": "adId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3137,11 +2915,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3150,11 +2928,11 @@ "generated": null, "identity": null, "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "numeric", "typeSchema": null, "notNull": false, @@ -3163,11 +2941,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -3176,11 +2954,11 @@ "generated": null, "identity": null, "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -3189,11 +2967,11 @@ "generated": null, "identity": null, "name": "contents", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3202,11 +2980,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -3215,11 +2993,11 @@ "generated": null, "identity": null, "name": "sourceEventId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "adsConversionCapiStatus", "typeSchema": "public", "notNull": true, @@ -3228,11 +3006,11 @@ "generated": null, "identity": null, "name": "capiStatus", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -3241,11 +3019,11 @@ "generated": null, "identity": null, "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3254,11 +3032,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3267,11 +3045,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3280,11 +3058,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3293,11 +3071,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "adsConversionChannel", "typeSchema": "public", "notNull": true, @@ -3306,11 +3084,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3319,11 +3097,11 @@ "generated": null, "identity": null, "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3332,11 +3110,11 @@ "generated": null, "identity": null, "name": "integrationFacebookAdsId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3345,11 +3123,11 @@ "generated": null, "identity": null, "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3358,11 +3136,11 @@ "generated": null, "identity": null, "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "text", "typeSchema": null, "notNull": false, @@ -3371,11 +3149,11 @@ "generated": null, "identity": null, "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "adsConversionEventType", "typeSchema": "public", "notNull": true, @@ -3384,11 +3162,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3397,11 +3175,11 @@ "generated": null, "identity": null, "name": "trigger", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "text", "typeSchema": null, "notNull": false, @@ -3410,11 +3188,11 @@ "generated": null, "identity": null, "name": "markAs", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AdsConversionRule", "type": "boolean", "typeSchema": null, "notNull": true, @@ -3423,11 +3201,11 @@ "generated": null, "identity": null, "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AdsConversionRule" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3436,11 +3214,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3449,11 +3227,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3462,11 +3240,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3475,11 +3253,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": true, @@ -3488,11 +3266,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": false, @@ -3501,11 +3279,11 @@ "generated": null, "identity": null, "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": false, @@ -3514,11 +3292,11 @@ "generated": null, "identity": null, "name": "actionPrompt", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3527,11 +3305,11 @@ "generated": null, "identity": null, "name": "actionRules", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3540,11 +3318,11 @@ "generated": null, "identity": null, "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -3553,11 +3331,11 @@ "generated": null, "identity": null, "name": "isDefault", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -3566,11 +3344,11 @@ "generated": null, "identity": null, "name": "isRichResponse", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": true, @@ -3579,11 +3357,11 @@ "generated": null, "identity": null, "name": "tools", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "text", "typeSchema": null, "notNull": true, @@ -3592,11 +3370,11 @@ "generated": null, "identity": null, "name": "webSearchAuthorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -3605,11 +3383,11 @@ "generated": null, "identity": null, "name": "models", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "double precision", "typeSchema": null, "notNull": true, @@ -3618,11 +3396,11 @@ "generated": null, "identity": null, "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIAgent", "type": "integer", "typeSchema": null, "notNull": true, @@ -3631,11 +3409,11 @@ "generated": null, "identity": null, "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "AIAgent" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3644,11 +3422,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3657,11 +3435,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3670,11 +3448,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3683,11 +3461,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3696,11 +3474,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3709,11 +3487,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "integer", "typeSchema": null, "notNull": true, @@ -3722,11 +3500,11 @@ "generated": null, "identity": null, "name": "chunkIndex", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "text", "typeSchema": null, "notNull": true, @@ -3735,11 +3513,11 @@ "generated": null, "identity": null, "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "vector(1536)", "typeSchema": null, "notNull": false, @@ -3748,11 +3526,11 @@ "generated": null, "identity": null, "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "aiConversationEmbeddingStatus", "typeSchema": "public", "notNull": true, @@ -3761,11 +3539,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationEmbedding", "type": "text", "typeSchema": null, "notNull": false, @@ -3774,11 +3552,11 @@ "generated": null, "identity": null, "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3787,11 +3565,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3800,11 +3578,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -3813,11 +3591,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3826,11 +3604,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3839,11 +3617,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3852,11 +3630,11 @@ "generated": null, "identity": null, "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "bigint", "typeSchema": null, "notNull": false, @@ -3865,11 +3643,11 @@ "generated": null, "identity": null, "name": "attachmentId", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "aiConversationSourceType", "typeSchema": "public", "notNull": true, @@ -3878,11 +3656,11 @@ "generated": null, "identity": null, "name": "sourceType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "aiConversationSourceStatus", "typeSchema": "public", "notNull": true, @@ -3891,11 +3669,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": true, @@ -3904,11 +3682,11 @@ "generated": null, "identity": null, "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3917,11 +3695,11 @@ "generated": null, "identity": null, "name": "contentHash", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3930,11 +3708,11 @@ "generated": null, "identity": null, "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3943,11 +3721,11 @@ "generated": null, "identity": null, "name": "title", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -3956,11 +3734,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3969,11 +3747,11 @@ "generated": null, "identity": null, "name": "summary", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIConversationSource", "type": "text", "typeSchema": null, "notNull": false, @@ -3982,11 +3760,11 @@ "generated": null, "identity": null, "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "AIConversationSource" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -3995,11 +3773,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4008,11 +3786,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4021,11 +3799,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "text", "typeSchema": null, "notNull": true, @@ -4034,11 +3812,11 @@ "generated": null, "identity": null, "name": "content", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "vector(1536)", "typeSchema": null, "notNull": false, @@ -4047,11 +3825,11 @@ "generated": null, "identity": null, "name": "embedding", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "aiEmbeddingStatus", "typeSchema": "public", "notNull": true, @@ -4060,11 +3838,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4073,11 +3851,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIEmbedding", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4086,11 +3864,11 @@ "generated": null, "identity": null, "name": "aiFileId", - "entityType": "columns", - "schema": "public", - "table": "AIEmbedding" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4099,11 +3877,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4112,11 +3890,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4125,11 +3903,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "text", "typeSchema": null, "notNull": true, @@ -4138,11 +3916,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "text", "typeSchema": null, "notNull": true, @@ -4151,11 +3929,11 @@ "generated": null, "identity": null, "name": "path", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "integer", "typeSchema": null, "notNull": true, @@ -4164,11 +3942,11 @@ "generated": null, "identity": null, "name": "size", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "text", "typeSchema": null, "notNull": true, @@ -4177,11 +3955,11 @@ "generated": null, "identity": null, "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4190,11 +3968,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFile" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4203,11 +3981,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4216,11 +3994,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4229,11 +4007,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "text", "typeSchema": null, "notNull": true, @@ -4242,11 +4020,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "text", "typeSchema": null, "notNull": false, @@ -4255,11 +4033,11 @@ "generated": null, "identity": null, "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -4268,11 +4046,11 @@ "generated": null, "identity": null, "name": "dataCollect", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "text", "typeSchema": null, "notNull": false, @@ -4281,11 +4059,11 @@ "generated": null, "identity": null, "name": "outputMessage", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4294,11 +4072,11 @@ "generated": null, "identity": null, "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIFunction", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4307,11 +4085,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIFunction" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4320,11 +4098,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4333,11 +4111,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4346,11 +4124,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4359,11 +4137,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4372,11 +4150,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": true, @@ -4385,11 +4163,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4398,11 +4176,11 @@ "generated": null, "identity": null, "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "aiHandoverBulkAction", "typeSchema": "public", "notNull": true, @@ -4411,11 +4189,11 @@ "generated": null, "identity": null, "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "aiHandoverBulkStatus", "typeSchema": "public", "notNull": true, @@ -4424,11 +4202,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4437,11 +4215,11 @@ "generated": null, "identity": null, "name": "message", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4450,11 +4228,11 @@ "generated": null, "identity": null, "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4463,11 +4241,11 @@ "generated": null, "identity": null, "name": "requestedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4476,11 +4254,11 @@ "generated": null, "identity": null, "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4489,11 +4267,11 @@ "generated": null, "identity": null, "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4502,11 +4280,11 @@ "generated": null, "identity": null, "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -4515,11 +4293,11 @@ "generated": null, "identity": null, "name": "pausedUntil", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4528,11 +4306,11 @@ "generated": null, "identity": null, "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4541,11 +4319,11 @@ "generated": null, "identity": null, "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4554,11 +4332,11 @@ "generated": null, "identity": null, "name": "chunkSeq", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": false, @@ -4567,11 +4345,11 @@ "generated": null, "identity": null, "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4580,11 +4358,11 @@ "generated": null, "identity": null, "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4593,11 +4371,11 @@ "generated": null, "identity": null, "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -4606,11 +4384,11 @@ "generated": null, "identity": null, "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4619,11 +4397,11 @@ "generated": null, "identity": null, "name": "cursorContactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4632,11 +4410,11 @@ "generated": null, "identity": null, "name": "inFlightFromId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4645,11 +4423,11 @@ "generated": null, "identity": null, "name": "inFlightToId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverBulkRun", "type": "text", "typeSchema": null, "notNull": false, @@ -4658,11 +4436,11 @@ "generated": null, "identity": null, "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverBulkRun" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4671,11 +4449,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4684,11 +4462,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4697,11 +4475,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4710,11 +4488,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4723,11 +4501,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "text", "typeSchema": null, "notNull": true, @@ -4736,11 +4514,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4749,11 +4527,11 @@ "generated": null, "identity": null, "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4762,11 +4540,11 @@ "generated": null, "identity": null, "name": "scheduleEnabled", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -4775,11 +4553,11 @@ "generated": null, "identity": null, "name": "timeRanges", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4788,11 +4566,11 @@ "generated": null, "identity": null, "name": "gotoFlowId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "text", "typeSchema": null, "notNull": false, @@ -4801,11 +4579,11 @@ "generated": null, "identity": null, "name": "returnMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4814,11 +4592,11 @@ "generated": null, "identity": null, "name": "pauseBotWaitingForStaff", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "boolean", "typeSchema": null, "notNull": true, @@ -4827,11 +4605,11 @@ "generated": null, "identity": null, "name": "applyToAllCustomers", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "integer", "typeSchema": null, "notNull": true, @@ -4840,11 +4618,11 @@ "generated": null, "identity": null, "name": "applyToAllRevision", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "text", "typeSchema": null, "notNull": false, @@ -4853,11 +4631,11 @@ "generated": null, "identity": null, "name": "applyToAllMessage", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIHandoverSettings", "type": "bigint", "typeSchema": null, "notNull": false, @@ -4866,11 +4644,11 @@ "generated": null, "identity": null, "name": "applyToAllRequestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "AIHandoverSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4879,11 +4657,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4892,11 +4670,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -4905,11 +4683,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "text", "typeSchema": null, "notNull": true, @@ -4918,11 +4696,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "text", "typeSchema": null, "notNull": true, @@ -4931,11 +4709,11 @@ "generated": null, "identity": null, "name": "url", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -4944,11 +4722,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -4957,11 +4735,11 @@ "generated": null, "identity": null, "name": "availableTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "text", "typeSchema": null, "notNull": true, @@ -4970,11 +4748,11 @@ "generated": null, "identity": null, "name": "selectedTools", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AIMCPServer", "type": "bigint", "typeSchema": null, "notNull": true, @@ -4983,11 +4761,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AIMCPServer" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -4996,11 +4774,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5009,11 +4787,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5022,11 +4800,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5035,11 +4813,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5048,11 +4826,11 @@ "generated": null, "identity": null, "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5061,11 +4839,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5074,11 +4852,11 @@ "generated": null, "identity": null, "name": "awaitingSince", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5087,11 +4865,11 @@ "generated": null, "identity": null, "name": "measuredFrom", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "integer", "typeSchema": null, "notNull": true, @@ -5100,11 +4878,11 @@ "generated": null, "identity": null, "name": "responseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "integer", "typeSchema": null, "notNull": false, @@ -5113,11 +4891,11 @@ "generated": null, "identity": null, "name": "workingResponseSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -5126,11 +4904,11 @@ "generated": null, "identity": null, "name": "isFirstResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5139,11 +4917,11 @@ "generated": null, "identity": null, "name": "workingHoursId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "integer", "typeSchema": null, "notNull": false, @@ -5152,11 +4930,11 @@ "generated": null, "identity": null, "name": "slaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "boolean", "typeSchema": null, "notNull": false, @@ -5165,11 +4943,11 @@ "generated": null, "identity": null, "name": "slaMet", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5178,11 +4956,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5191,11 +4969,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5204,11 +4982,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5217,11 +4995,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5230,11 +5008,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5243,11 +5021,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5256,11 +5034,11 @@ "generated": null, "identity": null, "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5269,11 +5047,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5282,11 +5060,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "boolean", "typeSchema": null, "notNull": true, @@ -5295,11 +5073,11 @@ "generated": null, "identity": null, "name": "hasResponse", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "analyticsBotResponseType", "typeSchema": "public", "notNull": false, @@ -5308,11 +5086,11 @@ "generated": null, "identity": null, "name": "responseType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "analyticsBotRouteType", "typeSchema": "public", "notNull": false, @@ -5321,11 +5099,11 @@ "generated": null, "identity": null, "name": "routeType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "analyticsBotResult", "typeSchema": "public", "notNull": false, @@ -5334,11 +5112,11 @@ "generated": null, "identity": null, "name": "result", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5347,11 +5125,11 @@ "generated": null, "identity": null, "name": "aiProvider", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5360,11 +5138,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5373,11 +5151,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5386,11 +5164,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5399,11 +5177,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5412,11 +5190,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5425,11 +5203,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5438,11 +5216,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5451,11 +5229,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "analyticsBroadcastEventType", "typeSchema": "public", "notNull": true, @@ -5464,11 +5242,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5477,11 +5255,11 @@ "generated": null, "identity": null, "name": "batchId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5490,11 +5268,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsBroadcastEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5503,11 +5281,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5516,11 +5294,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5529,11 +5307,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5542,11 +5320,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "analyticsContactEventType", "typeSchema": "public", "notNull": true, @@ -5555,11 +5333,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5568,11 +5346,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5581,11 +5359,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5594,11 +5372,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5607,11 +5385,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5620,11 +5398,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5633,11 +5411,11 @@ "generated": null, "identity": null, "name": "language", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5646,11 +5424,11 @@ "generated": null, "identity": null, "name": "country", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "analyticsContactSenderType", "typeSchema": "public", "notNull": false, @@ -5659,11 +5437,11 @@ "generated": null, "identity": null, "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5672,11 +5450,11 @@ "generated": null, "identity": null, "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5685,11 +5463,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsContactEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5698,11 +5476,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsContactEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5711,11 +5489,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5724,11 +5502,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5737,11 +5515,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "analyticsConversationEventType", "typeSchema": "public", "notNull": true, @@ -5750,11 +5528,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5763,11 +5541,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5776,11 +5554,11 @@ "generated": null, "identity": null, "name": "fromAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5789,11 +5567,11 @@ "generated": null, "identity": null, "name": "toAssignee", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -5802,11 +5580,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -5815,11 +5593,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -5828,11 +5606,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5841,11 +5619,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsConversationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5854,11 +5632,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5867,11 +5645,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5880,11 +5658,11 @@ "generated": null, "identity": null, "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5893,11 +5671,11 @@ "generated": null, "identity": null, "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5906,11 +5684,11 @@ "generated": null, "identity": null, "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5919,11 +5697,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5932,11 +5710,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5945,11 +5723,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -5958,11 +5736,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -5971,11 +5749,11 @@ "generated": null, "identity": null, "name": "eventId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5984,11 +5762,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -5997,11 +5775,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "analyticsMessageEventType", "typeSchema": "public", "notNull": true, @@ -6010,11 +5788,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6023,11 +5801,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "analyticsContactSenderType", "typeSchema": "public", "notNull": false, @@ -6036,11 +5814,11 @@ "generated": null, "identity": null, "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6049,11 +5827,11 @@ "generated": null, "identity": null, "name": "adminId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -6062,11 +5840,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6075,11 +5853,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -6088,11 +5866,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -6101,11 +5879,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -6114,11 +5892,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsMessageEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6127,11 +5905,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsMessageEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6140,11 +5918,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6153,11 +5931,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -6166,11 +5944,11 @@ "generated": null, "identity": null, "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6179,11 +5957,11 @@ "generated": null, "identity": null, "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6192,11 +5970,11 @@ "generated": null, "identity": null, "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6205,11 +5983,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsSequenceEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6218,11 +5996,11 @@ "generated": null, "identity": null, "name": "insertedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6231,11 +6009,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6244,11 +6022,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6257,24 +6035,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "topicId", - "entityType": "columns", "schema": "public", - "table": "AnalyticsEmailTopic" - }, - { + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6283,11 +6048,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6296,11 +6061,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6309,11 +6074,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6322,11 +6087,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "text", "typeSchema": null, "notNull": true, @@ -6335,11 +6100,11 @@ "generated": null, "identity": null, "name": "email", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "text", "typeSchema": null, "notNull": true, @@ -6348,11 +6113,11 @@ "generated": null, "identity": null, "name": "token", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6361,11 +6126,11 @@ "generated": null, "identity": null, "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6374,11 +6139,11 @@ "generated": null, "identity": null, "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6387,11 +6152,11 @@ "generated": null, "identity": null, "name": "firstSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6400,11 +6165,11 @@ "generated": null, "identity": null, "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "integer", "typeSchema": null, "notNull": true, @@ -6413,11 +6178,11 @@ "generated": null, "identity": null, "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6426,11 +6191,11 @@ "generated": null, "identity": null, "name": "firstClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6439,11 +6204,11 @@ "generated": null, "identity": null, "name": "lastClickedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsEmailTopic", "type": "integer", "typeSchema": null, "notNull": true, @@ -6452,11 +6217,11 @@ "generated": null, "identity": null, "name": "clickCount", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsEmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "text", "typeSchema": null, "notNull": true, @@ -6465,11 +6230,11 @@ "generated": null, "identity": null, "name": "objectKey", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "analyticsStatus", "typeSchema": "public", "notNull": true, @@ -6478,11 +6243,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "integer", "typeSchema": null, "notNull": true, @@ -6491,11 +6256,11 @@ "generated": null, "identity": null, "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "timestamp", "typeSchema": null, "notNull": false, @@ -6504,11 +6269,11 @@ "generated": null, "identity": null, "name": "ingestedAt", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "AnalyticsManifestStatus", "type": "text", "typeSchema": null, "notNull": false, @@ -6517,11 +6282,11 @@ "generated": null, "identity": null, "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "AnalyticsManifestStatus" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6530,11 +6295,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6543,11 +6308,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6556,11 +6321,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6569,11 +6334,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6582,11 +6347,11 @@ "generated": null, "identity": null, "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6595,11 +6360,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6608,11 +6373,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6621,11 +6386,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6634,11 +6399,11 @@ "generated": null, "identity": null, "name": "startAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6647,11 +6412,11 @@ "generated": null, "identity": null, "name": "endAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": true, @@ -6660,11 +6425,11 @@ "generated": null, "identity": null, "name": "inviteeTimezone", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "appointmentStatus", "typeSchema": "public", "notNull": true, @@ -6673,11 +6438,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "appointmentLocationTypeSnapshot", "typeSchema": "public", "notNull": true, @@ -6686,11 +6451,11 @@ "generated": null, "identity": null, "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": false, @@ -6699,11 +6464,11 @@ "generated": null, "identity": null, "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": false, @@ -6712,11 +6477,11 @@ "generated": null, "identity": null, "name": "externalEventId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "bigint", "typeSchema": null, "notNull": false, @@ -6725,11 +6490,11 @@ "generated": null, "identity": null, "name": "externalEventIntegrationId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "text", "typeSchema": null, "notNull": false, @@ -6738,11 +6503,11 @@ "generated": null, "identity": null, "name": "externalEventProviderCalendarId", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "appointmentExternalSyncStatus", "typeSchema": "public", "notNull": false, @@ -6751,11 +6516,11 @@ "generated": null, "identity": null, "name": "externalSyncStatus", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6764,11 +6529,11 @@ "generated": null, "identity": null, "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "Appointment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -6777,11 +6542,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Appointment" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6790,11 +6555,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6803,11 +6568,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -6816,11 +6581,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -6829,11 +6594,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": true, @@ -6842,11 +6607,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -6855,11 +6620,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "boolean", "typeSchema": null, "notNull": true, @@ -6868,11 +6633,11 @@ "generated": null, "identity": null, "name": "active", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": true, @@ -6881,11 +6646,11 @@ "generated": null, "identity": null, "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": true, @@ -6894,11 +6659,11 @@ "generated": null, "identity": null, "name": "durationMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -6907,11 +6672,11 @@ "generated": null, "identity": null, "name": "bufferAfterMinutes", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "appointmentLocationType", "typeSchema": "public", "notNull": true, @@ -6920,11 +6685,11 @@ "generated": null, "identity": null, "name": "locationType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -6933,11 +6698,11 @@ "generated": null, "identity": null, "name": "locationDetail", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "appointmentScheduleWindowType", "typeSchema": "public", "notNull": true, @@ -6946,11 +6711,11 @@ "generated": null, "identity": null, "name": "scheduleWindowType", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -6959,11 +6724,11 @@ "generated": null, "identity": null, "name": "scheduleWindowConfig", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -6972,11 +6737,11 @@ "generated": null, "identity": null, "name": "maxAppointmentsPerUser", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "boolean", "typeSchema": null, "notNull": true, @@ -6985,11 +6750,11 @@ "generated": null, "identity": null, "name": "dailyLimitEnabled", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -6998,11 +6763,11 @@ "generated": null, "identity": null, "name": "maxPerDay", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "boolean", "typeSchema": null, "notNull": true, @@ -7011,11 +6776,11 @@ "generated": null, "identity": null, "name": "allowGroupMeeting", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "integer", "typeSchema": null, "notNull": false, @@ -7024,11 +6789,11 @@ "generated": null, "identity": null, "name": "maxPerSlot", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7037,11 +6802,11 @@ "generated": null, "identity": null, "name": "confirmationMessage", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7050,11 +6815,11 @@ "generated": null, "identity": null, "name": "confirmationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7063,11 +6828,11 @@ "generated": null, "identity": null, "name": "cancellationFlowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7076,11 +6841,11 @@ "generated": null, "identity": null, "name": "externalConnectionId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7089,11 +6854,11 @@ "generated": null, "identity": null, "name": "externalEventTitleTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7102,11 +6867,11 @@ "generated": null, "identity": null, "name": "externalEventDescriptionTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -7115,11 +6880,11 @@ "generated": null, "identity": null, "name": "externalEventAttendeesTemplate", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "text", "typeSchema": null, "notNull": true, @@ -7128,11 +6893,11 @@ "generated": null, "identity": null, "name": "publicLinkSlug", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7141,11 +6906,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7154,11 +6919,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7167,11 +6932,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7180,11 +6945,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7193,11 +6958,11 @@ "generated": null, "identity": null, "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "integer", "typeSchema": null, "notNull": true, @@ -7206,11 +6971,11 @@ "generated": null, "identity": null, "name": "weekday", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "integer", "typeSchema": null, "notNull": true, @@ -7219,11 +6984,11 @@ "generated": null, "identity": null, "name": "startMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarAvailability", "type": "integer", "typeSchema": null, "notNull": true, @@ -7232,11 +6997,11 @@ "generated": null, "identity": null, "name": "endMinute", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7245,11 +7010,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7258,11 +7023,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7271,11 +7036,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7284,11 +7049,11 @@ "generated": null, "identity": null, "name": "calendarId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7297,11 +7062,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "integer", "typeSchema": null, "notNull": true, @@ -7310,11 +7075,11 @@ "generated": null, "identity": null, "name": "timingValue", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentCalendarReminder", "type": "appointmentReminderTimingUnit", "typeSchema": "public", "notNull": true, @@ -7323,11 +7088,11 @@ "generated": null, "identity": null, "name": "timingUnit", - "entityType": "columns", - "schema": "public", - "table": "AppointmentCalendarReminder" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7336,11 +7101,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7349,11 +7114,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7362,11 +7127,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7375,11 +7140,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7388,11 +7153,11 @@ "generated": null, "identity": null, "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7401,11 +7166,11 @@ "generated": null, "identity": null, "name": "reminderConfigId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7414,11 +7179,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7427,11 +7192,11 @@ "generated": null, "identity": null, "name": "sendAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "appointmentReminderDispatchStatus", "typeSchema": "public", "notNull": true, @@ -7440,11 +7205,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "text", "typeSchema": null, "notNull": true, @@ -7453,11 +7218,11 @@ "generated": null, "identity": null, "name": "jobId", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7466,11 +7231,11 @@ "generated": null, "identity": null, "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7479,11 +7244,11 @@ "generated": null, "identity": null, "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "AppointmentReminderDispatch", "type": "text", "typeSchema": null, "notNull": false, @@ -7492,11 +7257,11 @@ "generated": null, "identity": null, "name": "failedReason", - "entityType": "columns", - "schema": "public", - "table": "AppointmentReminderDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7505,11 +7270,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7518,11 +7283,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7531,11 +7296,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7544,11 +7309,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7557,11 +7322,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7570,11 +7335,11 @@ "generated": null, "identity": null, "name": "messageId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7583,11 +7348,11 @@ "generated": null, "identity": null, "name": "messageCreatedAt", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "fileType", "typeSchema": "public", "notNull": true, @@ -7596,11 +7361,11 @@ "generated": null, "identity": null, "name": "fileType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": false, @@ -7609,11 +7374,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": true, @@ -7622,11 +7387,11 @@ "generated": null, "identity": null, "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "integer", "typeSchema": null, "notNull": false, @@ -7635,11 +7400,11 @@ "generated": null, "identity": null, "name": "width", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "integer", "typeSchema": null, "notNull": false, @@ -7648,11 +7413,11 @@ "generated": null, "identity": null, "name": "height", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "integer", "typeSchema": null, "notNull": true, @@ -7661,11 +7426,11 @@ "generated": null, "identity": null, "name": "size", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": false, @@ -7674,11 +7439,11 @@ "generated": null, "identity": null, "name": "thumbnailPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": true, @@ -7687,11 +7452,11 @@ "generated": null, "identity": null, "name": "originPath", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { + "schema": "public", + "table": "Attachment", "type": "text", "typeSchema": null, "notNull": false, @@ -7700,24 +7465,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Attachment" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "keepOriginal", - "entityType": "columns", "schema": "public", - "table": "Attachment" - }, - { + "table": "Account", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7726,11 +7478,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7739,11 +7491,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7752,11 +7504,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": true, @@ -7765,11 +7517,11 @@ "generated": null, "identity": null, "name": "accountId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": true, @@ -7778,11 +7530,11 @@ "generated": null, "identity": null, "name": "providerId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7791,11 +7543,11 @@ "generated": null, "identity": null, "name": "accessToken", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7804,11 +7556,11 @@ "generated": null, "identity": null, "name": "accessTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7817,11 +7569,11 @@ "generated": null, "identity": null, "name": "refreshToken", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -7830,11 +7582,11 @@ "generated": null, "identity": null, "name": "refreshTokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7843,11 +7595,11 @@ "generated": null, "identity": null, "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7856,11 +7608,11 @@ "generated": null, "identity": null, "name": "idToken", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "text", "typeSchema": null, "notNull": false, @@ -7869,11 +7621,11 @@ "generated": null, "identity": null, "name": "password", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7882,11 +7634,11 @@ "generated": null, "identity": null, "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Account", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7895,11 +7647,11 @@ "generated": null, "identity": null, "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Account" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7908,11 +7660,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7921,11 +7673,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7934,11 +7686,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "text", "typeSchema": null, "notNull": true, @@ -7947,11 +7699,11 @@ "generated": null, "identity": null, "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -7960,11 +7712,11 @@ "generated": null, "identity": null, "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -7973,11 +7725,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -7986,11 +7738,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Invitation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -7999,11 +7751,11 @@ "generated": null, "identity": null, "name": "invitedBy", - "entityType": "columns", - "schema": "public", - "table": "Invitation" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8012,11 +7764,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8025,11 +7777,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8038,11 +7790,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "text", "typeSchema": null, "notNull": true, @@ -8051,11 +7803,11 @@ "generated": null, "identity": null, "name": "publicKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "text", "typeSchema": null, "notNull": true, @@ -8064,11 +7816,11 @@ "generated": null, "identity": null, "name": "privateKey", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Jwk", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -8077,11 +7829,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Jwk" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8090,11 +7842,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8103,11 +7855,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8116,11 +7868,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8129,11 +7881,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "text", "typeSchema": null, "notNull": true, @@ -8142,11 +7894,11 @@ "generated": null, "identity": null, "name": "token", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "text", "typeSchema": null, "notNull": false, @@ -8155,11 +7907,11 @@ "generated": null, "identity": null, "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "text", "typeSchema": null, "notNull": false, @@ -8168,11 +7920,11 @@ "generated": null, "identity": null, "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "Session", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8181,11 +7933,11 @@ "generated": null, "identity": null, "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Session" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8194,11 +7946,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8207,11 +7959,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8220,11 +7972,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "text", "typeSchema": null, "notNull": false, @@ -8233,11 +7985,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "text", "typeSchema": null, "notNull": true, @@ -8246,11 +7998,11 @@ "generated": null, "identity": null, "name": "email", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8259,11 +8011,11 @@ "generated": null, "identity": null, "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "text", "typeSchema": null, "notNull": false, @@ -8272,11 +8024,11 @@ "generated": null, "identity": null, "name": "image", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8285,11 +8037,11 @@ "generated": null, "identity": null, "name": "isAnonymous", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8298,11 +8050,11 @@ "generated": null, "identity": null, "name": "mustChangePassword", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "User", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8311,11 +8063,11 @@ "generated": null, "identity": null, "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "User" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8324,11 +8076,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8337,11 +8089,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8350,11 +8102,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "text", "typeSchema": null, "notNull": true, @@ -8363,11 +8115,11 @@ "generated": null, "identity": null, "name": "identifier", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "text", "typeSchema": null, "notNull": true, @@ -8376,11 +8128,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "Verification", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8389,11 +8141,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "Verification" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8402,11 +8154,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8415,11 +8167,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8428,11 +8180,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8441,11 +8193,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8454,11 +8206,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "text", "typeSchema": null, "notNull": true, @@ -8467,11 +8219,11 @@ "generated": null, "identity": null, "name": "keywords", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "boolean", "typeSchema": null, "notNull": true, @@ -8480,11 +8232,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "text", "typeSchema": null, "notNull": false, @@ -8493,11 +8245,11 @@ "generated": null, "identity": null, "name": "text", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8506,11 +8258,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomatedResponse", "type": "automatedResponseType", "typeSchema": "public", "notNull": true, @@ -8519,11 +8271,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "AutomatedResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8532,11 +8284,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8545,11 +8297,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "automationThrottleType", "typeSchema": "public", "notNull": true, @@ -8558,11 +8310,11 @@ "generated": null, "identity": null, "name": "throttleType", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8571,11 +8323,11 @@ "generated": null, "identity": null, "name": "subjectId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8584,11 +8336,11 @@ "generated": null, "identity": null, "name": "lastTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "AutomationThrottle", "type": "uuid", "typeSchema": null, "notNull": true, @@ -8597,11 +8349,11 @@ "generated": null, "identity": null, "name": "claimId", - "entityType": "columns", - "schema": "public", - "table": "AutomationThrottle" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8610,11 +8362,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8623,11 +8375,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8636,11 +8388,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "text", "typeSchema": null, "notNull": true, @@ -8649,11 +8401,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "customFieldType", "typeSchema": "public", "notNull": true, @@ -8662,11 +8414,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "text", "typeSchema": null, "notNull": false, @@ -8675,11 +8427,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "text", "typeSchema": null, "notNull": false, @@ -8688,11 +8440,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8701,11 +8453,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "BotField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8714,11 +8466,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BotField" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8727,11 +8479,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8740,11 +8492,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8753,11 +8505,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8766,11 +8518,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -8779,11 +8531,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8792,11 +8544,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8805,11 +8557,11 @@ "generated": null, "identity": null, "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8818,11 +8570,11 @@ "generated": null, "identity": null, "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -8831,11 +8583,11 @@ "generated": null, "identity": null, "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -8844,11 +8596,11 @@ "generated": null, "identity": null, "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8857,11 +8609,11 @@ "generated": null, "identity": null, "name": "targetMode", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "broadcastStatus", "typeSchema": "public", "notNull": true, @@ -8870,11 +8622,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "broadcastScheduleType", "typeSchema": "public", "notNull": true, @@ -8883,11 +8635,11 @@ "generated": null, "identity": null, "name": "schedulesType", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -8896,11 +8648,11 @@ "generated": null, "identity": null, "name": "schedulesAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -8909,11 +8661,11 @@ "generated": null, "identity": null, "name": "contactFilter", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8922,11 +8674,11 @@ "generated": null, "identity": null, "name": "subaction", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "text", "typeSchema": null, "notNull": true, @@ -8935,11 +8687,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -8948,11 +8700,11 @@ "generated": null, "identity": null, "name": "contactCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -8961,11 +8713,11 @@ "generated": null, "identity": null, "name": "handoffCompletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -8974,11 +8726,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": true, @@ -8987,11 +8739,11 @@ "generated": null, "identity": null, "name": "resumeCount", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -9000,11 +8752,11 @@ "generated": null, "identity": null, "name": "audienceRangeStart", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -9013,11 +8765,11 @@ "generated": null, "identity": null, "name": "audienceRangeEnd", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "integer", "typeSchema": null, "notNull": false, @@ -9026,11 +8778,11 @@ "generated": null, "identity": null, "name": "sendRatePerMinute", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9039,11 +8791,11 @@ "generated": null, "identity": null, "name": "parentBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "Broadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9052,11 +8804,11 @@ "generated": null, "identity": null, "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "Broadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9065,11 +8817,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9078,11 +8830,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9091,11 +8843,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9104,11 +8856,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9117,11 +8869,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -9130,11 +8882,11 @@ "generated": null, "identity": null, "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9143,11 +8895,11 @@ "generated": null, "identity": null, "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9156,11 +8908,11 @@ "generated": null, "identity": null, "name": "accountedThroughAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "integer", "typeSchema": null, "notNull": true, @@ -9169,11 +8921,11 @@ "generated": null, "identity": null, "name": "occurrenceCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9182,11 +8934,11 @@ "generated": null, "identity": null, "name": "lastOccurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9195,11 +8947,11 @@ "generated": null, "identity": null, "name": "pausedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9208,11 +8960,11 @@ "generated": null, "identity": null, "name": "endedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9221,11 +8973,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9234,11 +8986,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9247,11 +8999,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9260,11 +9012,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9273,11 +9025,11 @@ "generated": null, "identity": null, "name": "recurrenceId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "text", "typeSchema": null, "notNull": true, @@ -9286,11 +9038,11 @@ "generated": null, "identity": null, "name": "localSlot", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9299,11 +9051,11 @@ "generated": null, "identity": null, "name": "occurrenceAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "broadcastOccurrenceOutcome", "typeSchema": "public", "notNull": true, @@ -9312,11 +9064,11 @@ "generated": null, "identity": null, "name": "outcome", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "broadcastOccurrenceReason", "typeSchema": "public", "notNull": false, @@ -9325,11 +9077,11 @@ "generated": null, "identity": null, "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9338,11 +9090,11 @@ "generated": null, "identity": null, "name": "childBroadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9351,11 +9103,11 @@ "generated": null, "identity": null, "name": "materializedAt", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "type": "integer", "typeSchema": null, "notNull": true, @@ -9364,11 +9116,11 @@ "generated": null, "identity": null, "name": "supersededCount", - "entityType": "columns", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9377,11 +9129,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9390,11 +9142,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9403,11 +9155,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "bigint", "typeSchema": null, "notNull": false, @@ -9416,11 +9168,11 @@ "generated": null, "identity": null, "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "BroadcastTarget", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -9429,11 +9181,11 @@ "generated": null, "identity": null, "name": "templateData", - "entityType": "columns", - "schema": "public", - "table": "BroadcastTarget" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9442,11 +9194,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9455,11 +9207,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9468,11 +9220,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9481,11 +9233,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9493,259 +9245,129 @@ "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "inboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "channel", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "ChannelPost", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "items", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "sourceAccountId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "externalPostId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "abandonedNotifiedAt", - "entityType": "columns", - "schema": "public", - "table": "Cart" + "name": "caption", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "mediaType", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "thumbnail", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "ChannelPost", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "permalink", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ChannelPost", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "name": "publishedAt", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceAccountId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "externalPostId", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "caption", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "mediaType", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "thumbnail", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permalink", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "publishedAt", - "entityType": "columns", "schema": "public", - "table": "ChannelPost" - }, - { + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9754,11 +9376,11 @@ "generated": null, "identity": null, "name": "metadataFetchedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ChannelPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9767,11 +9389,11 @@ "generated": null, "identity": null, "name": "metadataAttemptedAt", - "entityType": "columns", - "schema": "public", - "table": "ChannelPost" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9780,11 +9402,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9793,11 +9415,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -9806,11 +9428,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9819,11 +9441,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -9832,11 +9454,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistChannel", "typeSchema": "public", "notNull": true, @@ -9845,11 +9467,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistRunType", "typeSchema": "public", "notNull": true, @@ -9858,11 +9480,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistRunStatus", "typeSchema": "public", "notNull": true, @@ -9871,11 +9493,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": true, @@ -9884,11 +9506,11 @@ "generated": null, "identity": null, "name": "triggerSource", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9897,11 +9519,11 @@ "generated": null, "identity": null, "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9910,11 +9532,11 @@ "generated": null, "identity": null, "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9923,11 +9545,11 @@ "generated": null, "identity": null, "name": "lastHeartbeatAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -9936,11 +9558,11 @@ "generated": null, "identity": null, "name": "totalScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -9949,11 +9571,11 @@ "generated": null, "identity": null, "name": "currentScan", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -9962,11 +9584,11 @@ "generated": null, "identity": null, "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -9975,11 +9597,11 @@ "generated": null, "identity": null, "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -9988,11 +9610,11 @@ "generated": null, "identity": null, "name": "currentPageNumber", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10001,11 +9623,11 @@ "generated": null, "identity": null, "name": "importedContactCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10014,11 +9636,11 @@ "generated": null, "identity": null, "name": "importedMessageCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10027,11 +9649,11 @@ "generated": null, "identity": null, "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10040,11 +9662,11 @@ "generated": null, "identity": null, "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10053,11 +9675,11 @@ "generated": null, "identity": null, "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -10066,11 +9688,11 @@ "generated": null, "identity": null, "name": "currentError", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": false, @@ -10079,11 +9701,11 @@ "generated": null, "identity": null, "name": "lastPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": false, @@ -10092,11 +9714,11 @@ "generated": null, "identity": null, "name": "lastChunkOrder", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "integer", "typeSchema": null, "notNull": true, @@ -10105,11 +9727,11 @@ "generated": null, "identity": null, "name": "syncProgress", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "coexistMessengerSyncPhase", "typeSchema": "public", "notNull": true, @@ -10118,11 +9740,11 @@ "generated": null, "identity": null, "name": "messengerSyncPhase", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -10131,11 +9753,11 @@ "generated": null, "identity": null, "name": "pendingPatches", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -10144,11 +9766,11 @@ "generated": null, "identity": null, "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10157,11 +9779,11 @@ "generated": null, "identity": null, "name": "scanFromAt", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10170,11 +9792,11 @@ "generated": null, "identity": null, "name": "requestedByUserId", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CoexistSyncRun", "type": "text", "typeSchema": null, "notNull": false, @@ -10183,11 +9805,11 @@ "generated": null, "identity": null, "name": "resumeCursor", - "entityType": "columns", - "schema": "public", - "table": "CoexistSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10196,11 +9818,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10209,11 +9831,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10222,11 +9844,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -10235,11 +9857,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10248,11 +9870,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10261,11 +9883,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "commentAutomationType", "typeSchema": "public", "notNull": true, @@ -10274,11 +9896,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10287,11 +9909,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "boolean", "typeSchema": null, "notNull": true, @@ -10300,11 +9922,11 @@ "generated": null, "identity": null, "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": false, @@ -10313,11 +9935,11 @@ "generated": null, "identity": null, "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": false, @@ -10326,11 +9948,11 @@ "generated": null, "identity": null, "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10339,11 +9961,11 @@ "generated": null, "identity": null, "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10352,11 +9974,11 @@ "generated": null, "identity": null, "name": "sentCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10365,11 +9987,11 @@ "generated": null, "identity": null, "name": "deliveredCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10378,11 +10000,11 @@ "generated": null, "identity": null, "name": "seenCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10391,11 +10013,11 @@ "generated": null, "identity": null, "name": "clickedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10404,11 +10026,11 @@ "generated": null, "identity": null, "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -10417,11 +10039,11 @@ "generated": null, "identity": null, "name": "missedCount", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10430,11 +10052,11 @@ "generated": null, "identity": null, "name": "post", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10443,11 +10065,11 @@ "generated": null, "identity": null, "name": "privateReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10456,11 +10078,11 @@ "generated": null, "identity": null, "name": "publicReply", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10469,11 +10091,11 @@ "generated": null, "identity": null, "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -10482,11 +10104,11 @@ "generated": null, "identity": null, "name": "excludeKeywords", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "commentExcludeKeywordsType", "typeSchema": "public", "notNull": true, @@ -10495,11 +10117,11 @@ "generated": null, "identity": null, "name": "excludeKeywordsType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10508,11 +10130,11 @@ "generated": null, "identity": null, "name": "options", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10521,11 +10143,11 @@ "generated": null, "identity": null, "name": "hideComments", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomation", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -10534,11 +10156,11 @@ "generated": null, "identity": null, "name": "replyAfter", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10547,11 +10169,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10560,11 +10182,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10573,11 +10195,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10586,11 +10208,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10599,11 +10221,11 @@ "generated": null, "identity": null, "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10612,11 +10234,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10625,11 +10247,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -10638,11 +10260,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -10651,11 +10273,11 @@ "generated": null, "identity": null, "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10664,11 +10286,11 @@ "generated": null, "identity": null, "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "commentAutomationReplyChannel", "typeSchema": "public", "notNull": true, @@ -10677,11 +10299,11 @@ "generated": null, "identity": null, "name": "replyChannel", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "commentAutomationReplyType", "typeSchema": "public", "notNull": true, @@ -10690,11 +10312,11 @@ "generated": null, "identity": null, "name": "replyType", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10703,11 +10325,11 @@ "generated": null, "identity": null, "name": "replyText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "commentAutomationEventStatus", "typeSchema": "public", "notNull": true, @@ -10716,11 +10338,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10729,11 +10351,11 @@ "generated": null, "identity": null, "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10742,11 +10364,11 @@ "generated": null, "identity": null, "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10755,11 +10377,11 @@ "generated": null, "identity": null, "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -10768,11 +10390,11 @@ "generated": null, "identity": null, "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10781,11 +10403,11 @@ "generated": null, "identity": null, "name": "errorDetail", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -10794,11 +10416,11 @@ "generated": null, "identity": null, "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10807,11 +10429,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10820,11 +10442,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10833,11 +10455,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10846,11 +10468,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10859,11 +10481,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10872,11 +10494,11 @@ "generated": null, "identity": null, "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10885,11 +10507,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "bigint", "typeSchema": null, "notNull": false, @@ -10898,11 +10520,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "text", "typeSchema": null, "notNull": true, @@ -10911,11 +10533,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "text", "typeSchema": null, "notNull": true, @@ -10924,11 +10546,11 @@ "generated": null, "identity": null, "name": "commentId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "text", "typeSchema": null, "notNull": false, @@ -10937,11 +10559,11 @@ "generated": null, "identity": null, "name": "commentText", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "commentAutomationMissReason", "typeSchema": "public", "notNull": true, @@ -10950,11 +10572,11 @@ "generated": null, "identity": null, "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationMiss", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10963,11 +10585,11 @@ "generated": null, "identity": null, "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationMiss" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -10976,11 +10598,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -10989,11 +10611,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11002,11 +10624,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11015,11 +10637,11 @@ "generated": null, "identity": null, "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11028,11 +10650,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "text", "typeSchema": null, "notNull": true, @@ -11041,11 +10663,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "CommentAutomationReply", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11054,11 +10676,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CommentAutomationReply" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11067,11 +10689,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11080,11 +10702,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11093,11 +10715,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11106,11 +10728,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11119,11 +10741,11 @@ "generated": null, "identity": null, "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11132,11 +10754,11 @@ "generated": null, "identity": null, "name": "purpose", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11145,11 +10767,11 @@ "generated": null, "identity": null, "name": "targetConnectionId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11158,11 +10780,11 @@ "generated": null, "identity": null, "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11171,11 +10793,11 @@ "generated": null, "identity": null, "name": "actorTokenId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11184,11 +10806,11 @@ "generated": null, "identity": null, "name": "platformOwnerId", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11197,11 +10819,11 @@ "generated": null, "identity": null, "name": "originHost", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11210,11 +10832,11 @@ "generated": null, "identity": null, "name": "returnUrl", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11223,11 +10845,11 @@ "generated": null, "identity": null, "name": "stateNonceHash", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11236,11 +10858,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11249,11 +10871,11 @@ "generated": null, "identity": null, "name": "step", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -11262,11 +10884,11 @@ "generated": null, "identity": null, "name": "nextAction", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -11275,11 +10897,11 @@ "generated": null, "identity": null, "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -11288,11 +10910,11 @@ "generated": null, "identity": null, "name": "targets", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -11301,11 +10923,11 @@ "generated": null, "identity": null, "name": "targetClaims", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": true, @@ -11314,11 +10936,11 @@ "generated": null, "identity": null, "name": "resultConnectionIds", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -11327,11 +10949,11 @@ "generated": null, "identity": null, "name": "results", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "text", "typeSchema": null, "notNull": false, @@ -11340,11 +10962,11 @@ "generated": null, "identity": null, "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11353,11 +10975,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "ConnectSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11366,11 +10988,11 @@ "generated": null, "identity": null, "name": "consumedAt", - "entityType": "columns", - "schema": "public", - "table": "ConnectSession" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11379,11 +11001,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11392,11 +11014,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11405,11 +11027,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11418,11 +11040,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11431,11 +11053,11 @@ "generated": null, "identity": null, "name": "provider", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11444,11 +11066,11 @@ "generated": null, "identity": null, "name": "kind", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": false, @@ -11457,11 +11079,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11470,11 +11092,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11483,11 +11105,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11496,11 +11118,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11509,11 +11131,11 @@ "generated": null, "identity": null, "name": "displayName", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": true, @@ -11522,11 +11144,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": false, @@ -11535,11 +11157,11 @@ "generated": null, "identity": null, "name": "statusReason", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "text", "typeSchema": null, "notNull": false, @@ -11548,11 +11170,11 @@ "generated": null, "identity": null, "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11561,11 +11183,11 @@ "generated": null, "identity": null, "name": "authExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "bigint", "typeSchema": null, "notNull": false, @@ -11574,11 +11196,11 @@ "generated": null, "identity": null, "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11587,11 +11209,11 @@ "generated": null, "identity": null, "name": "connectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Connection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11600,11 +11222,11 @@ "generated": null, "identity": null, "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Connection" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11613,11 +11235,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11626,11 +11248,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11639,11 +11261,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11652,11 +11274,11 @@ "generated": null, "identity": null, "name": "avatar", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11665,11 +11287,11 @@ "generated": null, "identity": null, "name": "phoneNumber", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11678,11 +11300,11 @@ "generated": null, "identity": null, "name": "email", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "boolean", "typeSchema": null, "notNull": true, @@ -11691,11 +11313,11 @@ "generated": null, "identity": null, "name": "emailVerified", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "boolean", "typeSchema": null, "notNull": true, @@ -11704,11 +11326,11 @@ "generated": null, "identity": null, "name": "emailOptIn", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11717,11 +11339,11 @@ "generated": null, "identity": null, "name": "firstName", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11730,11 +11352,11 @@ "generated": null, "identity": null, "name": "lastName", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11746,11 +11368,11 @@ }, "identity": null, "name": "fullName", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "gender", "typeSchema": "public", "notNull": false, @@ -11759,11 +11381,11 @@ "generated": null, "identity": null, "name": "gender", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11772,11 +11394,11 @@ "generated": null, "identity": null, "name": "lastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11785,11 +11407,11 @@ "generated": null, "identity": null, "name": "ref", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11798,11 +11420,11 @@ "generated": null, "identity": null, "name": "country", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11811,11 +11433,11 @@ "generated": null, "identity": null, "name": "state", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11824,11 +11446,11 @@ "generated": null, "identity": null, "name": "city", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -11837,11 +11459,11 @@ "generated": null, "identity": null, "name": "location", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11850,11 +11472,11 @@ "generated": null, "identity": null, "name": "locale", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "text", "typeSchema": null, "notNull": false, @@ -11863,11 +11485,11 @@ "generated": null, "identity": null, "name": "timezone", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11876,11 +11498,11 @@ "generated": null, "identity": null, "name": "subscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11889,11 +11511,11 @@ "generated": null, "identity": null, "name": "broadcastSubscribedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -11902,11 +11524,11 @@ "generated": null, "identity": null, "name": "blockedAt", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "integer", "typeSchema": null, "notNull": true, @@ -11915,11 +11537,11 @@ "generated": null, "identity": null, "name": "totalTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "integer", "typeSchema": null, "notNull": true, @@ -11928,11 +11550,11 @@ "generated": null, "identity": null, "name": "totalNewTagged", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "Contact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11941,11 +11563,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Contact" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11954,11 +11576,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11967,11 +11589,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -11980,11 +11602,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -11993,11 +11615,11 @@ "generated": null, "identity": null, "name": "hourBucket", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveHourly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12006,11 +11628,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveHourly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12019,11 +11641,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12032,11 +11654,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12045,11 +11667,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12058,11 +11680,11 @@ "generated": null, "identity": null, "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12071,11 +11693,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactActiveMonthly", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12084,11 +11706,11 @@ "generated": null, "identity": null, "name": "workspaceMacId", - "entityType": "columns", - "schema": "public", - "table": "ContactActiveMonthly" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12097,11 +11719,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12110,11 +11732,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12123,11 +11745,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "text", "typeSchema": null, "notNull": true, @@ -12136,11 +11758,11 @@ "generated": null, "identity": null, "name": "value", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12149,11 +11771,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactCustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12162,11 +11784,11 @@ "generated": null, "identity": null, "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "ContactCustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12175,11 +11797,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12188,11 +11810,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12201,11 +11823,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12214,11 +11836,11 @@ "generated": null, "identity": null, "name": "originalContactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12227,11 +11849,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12240,11 +11862,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": true, @@ -12253,11 +11875,11 @@ "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": true, @@ -12266,11 +11888,11 @@ "generated": null, "identity": null, "name": "source", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": true, @@ -12279,11 +11901,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "boolean", "typeSchema": null, "notNull": false, @@ -12292,11 +11914,11 @@ "generated": null, "identity": null, "name": "followsBusiness", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "boolean", "typeSchema": null, "notNull": false, @@ -12305,11 +11927,11 @@ "generated": null, "identity": null, "name": "businessFollowsContact", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "boolean", "typeSchema": null, "notNull": false, @@ -12318,11 +11940,11 @@ "generated": null, "identity": null, "name": "accountVerified", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "integer", "typeSchema": null, "notNull": false, @@ -12331,11 +11953,11 @@ "generated": null, "identity": null, "name": "followerCount", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "contactInboxProfileSnapshotState", "typeSchema": "public", "notNull": false, @@ -12344,11 +11966,11 @@ "generated": null, "identity": null, "name": "profileSnapshotState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "integer", "typeSchema": null, "notNull": false, @@ -12357,11 +11979,11 @@ "generated": null, "identity": null, "name": "profileSnapshotAttempts", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12370,11 +11992,11 @@ "generated": null, "identity": null, "name": "profileSnapshotNextAttemptAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12383,11 +12005,11 @@ "generated": null, "identity": null, "name": "language", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12396,11 +12018,11 @@ "generated": null, "identity": null, "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12409,11 +12031,11 @@ "generated": null, "identity": null, "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12422,11 +12044,11 @@ "generated": null, "identity": null, "name": "firstInteractionAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12435,11 +12057,11 @@ "generated": null, "identity": null, "name": "lastMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12448,11 +12070,11 @@ "generated": null, "identity": null, "name": "lastIncomingMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12461,11 +12083,11 @@ "generated": null, "identity": null, "name": "lastOutboundMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -12474,11 +12096,11 @@ "generated": null, "identity": null, "name": "referral", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12487,11 +12109,11 @@ "generated": null, "identity": null, "name": "lastCommentMessageId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12500,11 +12122,11 @@ "generated": null, "identity": null, "name": "lastCommentMessageAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "integer", "typeSchema": null, "notNull": true, @@ -12513,11 +12135,11 @@ "generated": null, "identity": null, "name": "consecutiveFailedReply", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12526,11 +12148,11 @@ "generated": null, "identity": null, "name": "lastInputFailure", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12539,11 +12161,11 @@ "generated": null, "identity": null, "name": "lastErrorLog", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12552,11 +12174,11 @@ "generated": null, "identity": null, "name": "lastBtnTitle", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12565,11 +12187,11 @@ "generated": null, "identity": null, "name": "lastUserInput", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "lastUserInputType", "typeSchema": "public", "notNull": false, @@ -12578,11 +12200,11 @@ "generated": null, "identity": null, "name": "lastUserInputType", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12591,11 +12213,11 @@ "generated": null, "identity": null, "name": "webchatParentUrl", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12604,11 +12226,11 @@ "generated": null, "identity": null, "name": "sourceUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12617,11 +12239,11 @@ "generated": null, "identity": null, "name": "sourceParentUserId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12630,11 +12252,11 @@ "generated": null, "identity": null, "name": "sourceUsername", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -12643,11 +12265,11 @@ "generated": null, "identity": null, "name": "sourceIdentityHistory", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "threadControlState", "typeSchema": "public", "notNull": false, @@ -12656,11 +12278,11 @@ "generated": null, "identity": null, "name": "threadControlState", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12669,11 +12291,11 @@ "generated": null, "identity": null, "name": "threadOwnerRole", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12682,11 +12304,11 @@ "generated": null, "identity": null, "name": "threadControlUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "threadControlEvent", "typeSchema": "public", "notNull": false, @@ -12695,11 +12317,11 @@ "generated": null, "identity": null, "name": "threadControlLastEvent", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12708,11 +12330,11 @@ "generated": null, "identity": null, "name": "threadOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12721,11 +12343,11 @@ "generated": null, "identity": null, "name": "threadOwnerExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInbox", "type": "text", "typeSchema": null, "notNull": false, @@ -12734,11 +12356,11 @@ "generated": null, "identity": null, "name": "threadPreviousOwnerAppId", - "entityType": "columns", - "schema": "public", - "table": "ContactInbox" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12747,11 +12369,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12760,11 +12382,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12773,11 +12395,11 @@ "generated": null, "identity": null, "name": "postId", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactInboxPost", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12786,11 +12408,11 @@ "generated": null, "identity": null, "name": "commentedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactInboxPost" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12799,11 +12421,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12812,11 +12434,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -12825,11 +12447,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "text", "typeSchema": null, "notNull": true, @@ -12838,11 +12460,11 @@ "generated": null, "identity": null, "name": "text", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12851,11 +12473,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactNote", "type": "bigint", "typeSchema": null, "notNull": false, @@ -12864,11 +12486,11 @@ "generated": null, "identity": null, "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "ContactNote" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12877,11 +12499,11 @@ "generated": null, "identity": null, "name": "broadcastId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12890,11 +12512,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12903,11 +12525,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "bigint", "typeSchema": null, "notNull": true, @@ -12916,11 +12538,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "boolean", "typeSchema": null, "notNull": true, @@ -12929,11 +12551,11 @@ "generated": null, "identity": null, "name": "sent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12942,11 +12564,11 @@ "generated": null, "identity": null, "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12955,11 +12577,11 @@ "generated": null, "identity": null, "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12968,11 +12590,11 @@ "generated": null, "identity": null, "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -12981,11 +12603,11 @@ "generated": null, "identity": null, "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "text", "typeSchema": null, "notNull": false, @@ -12994,11 +12616,11 @@ "generated": null, "identity": null, "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnBroadcast", "type": "boolean", "typeSchema": null, "notNull": false, @@ -13010,11 +12632,11 @@ }, "identity": null, "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "ContactOnBroadcast" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13023,11 +12645,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13036,11 +12658,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13049,11 +12671,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13062,11 +12684,11 @@ "generated": null, "identity": null, "name": "enrolledAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13075,11 +12697,11 @@ "generated": null, "identity": null, "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "integer", "typeSchema": null, "notNull": true, @@ -13088,11 +12710,11 @@ "generated": null, "identity": null, "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "text", "typeSchema": null, "notNull": false, @@ -13101,11 +12723,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13114,11 +12736,11 @@ "generated": null, "identity": null, "name": "nextRunAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13127,11 +12749,11 @@ "generated": null, "identity": null, "name": "lastStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13140,11 +12762,11 @@ "generated": null, "identity": null, "name": "nextStepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13153,11 +12775,11 @@ "generated": null, "identity": null, "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "text", "typeSchema": null, "notNull": false, @@ -13166,11 +12788,11 @@ "generated": null, "identity": null, "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "text", "typeSchema": null, "notNull": false, @@ -13179,11 +12801,11 @@ "generated": null, "identity": null, "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13192,11 +12814,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13205,11 +12827,11 @@ "generated": null, "identity": null, "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13218,11 +12840,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSequence" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13231,11 +12853,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13244,11 +12866,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13257,11 +12879,11 @@ "generated": null, "identity": null, "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13270,11 +12892,11 @@ "generated": null, "identity": null, "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13283,11 +12905,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13296,11 +12918,11 @@ "generated": null, "identity": null, "name": "appointmentId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13309,11 +12931,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "text", "typeSchema": null, "notNull": false, @@ -13322,11 +12944,11 @@ "generated": null, "identity": null, "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "text", "typeSchema": null, "notNull": false, @@ -13335,11 +12957,11 @@ "generated": null, "identity": null, "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -13348,11 +12970,11 @@ "generated": null, "identity": null, "name": "metadata", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "ContactOnSmartDelayType", "typeSchema": "public", "notNull": true, @@ -13361,11 +12983,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13374,11 +12996,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13387,11 +13009,11 @@ "generated": null, "identity": null, "name": "triggerAt", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "type": "ContactOnSmartDelayStatus", "typeSchema": "public", "notNull": true, @@ -13400,11 +13022,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "ContactOnSmartDelay" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTag", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13413,11 +13035,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTag", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13426,11 +13048,11 @@ "generated": null, "identity": null, "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTag" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13439,11 +13061,11 @@ "generated": null, "identity": null, "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13452,11 +13074,11 @@ "generated": null, "identity": null, "name": "tagChannelId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13465,11 +13087,11 @@ "generated": null, "identity": null, "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "ContactToTagChannel", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13478,11 +13100,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ContactToTagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13491,11 +13113,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13504,11 +13126,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13517,11 +13139,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "boolean", "typeSchema": null, "notNull": true, @@ -13530,11 +13152,11 @@ "generated": null, "identity": null, "name": "botEnabled", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13543,11 +13165,11 @@ "generated": null, "identity": null, "name": "botResumeAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13556,11 +13178,11 @@ "generated": null, "identity": null, "name": "archivedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -13569,11 +13191,11 @@ "generated": null, "identity": null, "name": "additionalAttributes", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13582,11 +13204,11 @@ "generated": null, "identity": null, "name": "contactLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13595,11 +13217,11 @@ "generated": null, "identity": null, "name": "agentLastReadAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13608,11 +13230,11 @@ "generated": null, "identity": null, "name": "aiContextLastMessageId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13621,11 +13243,11 @@ "generated": null, "identity": null, "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "boolean", "typeSchema": null, "notNull": true, @@ -13634,11 +13256,11 @@ "generated": null, "identity": null, "name": "followed", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13647,11 +13269,11 @@ "generated": null, "identity": null, "name": "assignedUserId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13660,11 +13282,11 @@ "generated": null, "identity": null, "name": "assignedInboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13673,11 +13295,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13686,11 +13308,11 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "text", "typeSchema": null, "notNull": false, @@ -13699,11 +13321,11 @@ "generated": null, "identity": null, "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "text", "typeSchema": null, "notNull": false, @@ -13712,11 +13334,11 @@ "generated": null, "identity": null, "name": "lastStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "text", "typeSchema": null, "notNull": false, @@ -13725,11 +13347,11 @@ "generated": null, "identity": null, "name": "currentStep", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13738,11 +13360,11 @@ "generated": null, "identity": null, "name": "adminRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13751,11 +13373,11 @@ "generated": null, "identity": null, "name": "contactRepliedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13764,11 +13386,11 @@ "generated": null, "identity": null, "name": "awaitingHumanReplySince", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13777,11 +13399,11 @@ "generated": null, "identity": null, "name": "awaitingHumanReplyClosedAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13790,11 +13412,11 @@ "generated": null, "identity": null, "name": "assignedUserAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13803,11 +13425,11 @@ "generated": null, "identity": null, "name": "responseDueAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -13816,11 +13438,11 @@ "generated": null, "identity": null, "name": "responseSlaBreachingAt", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "Conversation", "type": "integer", "typeSchema": null, "notNull": false, @@ -13829,11 +13451,11 @@ "generated": null, "identity": null, "name": "responseSlaTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "Conversation" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13842,11 +13464,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13855,11 +13477,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13868,11 +13490,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13881,11 +13503,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13894,11 +13516,11 @@ "generated": null, "identity": null, "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "ConversationParticipant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13907,11 +13529,11 @@ "generated": null, "identity": null, "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "ConversationParticipant" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13920,11 +13542,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13933,11 +13555,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -13946,11 +13568,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13959,11 +13581,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -13972,11 +13594,11 @@ "generated": null, "identity": null, "name": "topicId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "text", "typeSchema": null, "notNull": true, @@ -13985,11 +13607,11 @@ "generated": null, "identity": null, "name": "code", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "bigint", "typeSchema": null, "notNull": false, @@ -13998,11 +13620,11 @@ "generated": null, "identity": null, "name": "issuedContactId", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14011,11 +13633,11 @@ "generated": null, "identity": null, "name": "issuedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "Coupon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14024,11 +13646,11 @@ "generated": null, "identity": null, "name": "usedAt", - "entityType": "columns", - "schema": "public", - "table": "Coupon" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14037,11 +13659,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14050,11 +13672,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14063,11 +13685,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14076,11 +13698,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "text", "typeSchema": null, "notNull": true, @@ -14089,11 +13711,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "text", "typeSchema": null, "notNull": false, @@ -14102,11 +13724,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14115,11 +13737,11 @@ "generated": null, "identity": null, "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "couponTopicStatus", "typeSchema": "public", "notNull": true, @@ -14128,11 +13750,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14141,11 +13763,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "boolean", "typeSchema": null, "notNull": true, @@ -14154,11 +13776,11 @@ "generated": null, "identity": null, "name": "hasEverHadCoupon", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CouponTopic", "type": "bigint", "typeSchema": null, "notNull": false, @@ -14167,11 +13789,11 @@ "generated": null, "identity": null, "name": "createdById", - "entityType": "columns", - "schema": "public", - "table": "CouponTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14180,11 +13802,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14193,11 +13815,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14206,11 +13828,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "text", "typeSchema": null, "notNull": true, @@ -14219,11 +13841,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "customFieldType", "typeSchema": "public", "notNull": true, @@ -14232,11 +13854,11 @@ "generated": null, "identity": null, "name": "type", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "text", "typeSchema": null, "notNull": false, @@ -14245,11 +13867,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "bigint", "typeSchema": null, "notNull": false, @@ -14258,11 +13880,11 @@ "generated": null, "identity": null, "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "boolean", "typeSchema": null, "notNull": true, @@ -14271,11 +13893,11 @@ "generated": null, "identity": null, "name": "showInInbox", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14284,11 +13906,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "CustomField" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14297,11 +13919,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14310,11 +13932,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14323,11 +13945,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14336,11 +13958,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "text", "typeSchema": null, "notNull": true, @@ -14349,11 +13971,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "DecisionProviderKind", "typeSchema": "public", "notNull": true, @@ -14362,11 +13984,11 @@ "generated": null, "identity": null, "name": "providerKind", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "text", "typeSchema": null, "notNull": false, @@ -14375,11 +13997,11 @@ "generated": null, "identity": null, "name": "endpoint", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -14388,11 +14010,11 @@ "generated": null, "identity": null, "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -14401,11 +14023,11 @@ "generated": null, "identity": null, "name": "modelCatalog", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "text", "typeSchema": null, "notNull": false, @@ -14414,11 +14036,11 @@ "generated": null, "identity": null, "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "DecisionConnectionStatus", "typeSchema": "public", "notNull": true, @@ -14427,11 +14049,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "DecisionConnectionTestStatus", "typeSchema": "public", "notNull": false, @@ -14440,11 +14062,11 @@ "generated": null, "identity": null, "name": "lastTestStatus", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -14453,11 +14075,11 @@ "generated": null, "identity": null, "name": "lastTestedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14466,11 +14088,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14479,11 +14101,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14492,11 +14114,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14505,11 +14127,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "text", "typeSchema": null, "notNull": true, @@ -14518,11 +14140,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "text", "typeSchema": null, "notNull": false, @@ -14531,11 +14153,11 @@ "generated": null, "identity": null, "name": "description", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "DecisionProfileStatus", "typeSchema": "public", "notNull": true, @@ -14544,11 +14166,11 @@ "generated": null, "identity": null, "name": "status", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14557,11 +14179,11 @@ "generated": null, "identity": null, "name": "connectionId", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "text", "typeSchema": null, "notNull": true, @@ -14570,11 +14192,11 @@ "generated": null, "identity": null, "name": "model", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -14583,11 +14205,11 @@ "generated": null, "identity": null, "name": "contract", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -14596,11 +14218,11 @@ "generated": null, "identity": null, "name": "thresholdConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "boolean", "typeSchema": null, "notNull": true, @@ -14609,11 +14231,11 @@ "generated": null, "identity": null, "name": "globalRouterEnabled", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DecisionProfile", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -14622,11 +14244,11 @@ "generated": null, "identity": null, "name": "globalRouterConfig", - "entityType": "columns", - "schema": "public", - "table": "DecisionProfile" + "entityType": "columns" }, { + "schema": "public", + "table": "DynamicImage", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14635,11 +14257,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "entityType": "columns" }, { + "schema": "public", + "table": "DynamicImage", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14648,11 +14270,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "entityType": "columns" }, { + "schema": "public", + "table": "DynamicImage", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14661,245 +14283,219 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "DynamicImage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "DynamicImage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "code", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "DynamicImage", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoApply", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "customFieldId", + "entityType": "columns" }, { - "type": "discountType", - "typeSchema": "public", + "schema": "public", + "table": "DynamicImage", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountType", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "data", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "DynamicImage", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'0'", + "default": null, "generated": null, "identity": null, - "name": "discountValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "backgroundUrl", + "entityType": "columns" }, { - "type": "discountAppliesTo", - "typeSchema": "public", + "schema": "public", + "table": "DynamicImage", + "type": "boolean", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'entireOrder'", + "default": "true", "generated": null, "identity": null, - "name": "appliesTo", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "enabled", + "entityType": "columns" }, { + "schema": "public", + "table": "EmailTopic", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "EmailTopic", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "productIds", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "createdAt", + "entityType": "columns" }, { - "type": "discountMinimumType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'none'", - "generated": null, - "identity": null, - "name": "minimumType", - "entityType": "columns", "schema": "public", - "table": "DiscountCode" - }, - { - "type": "numeric(19,4)", + "table": "EmailTopic", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "now()", "generated": null, "identity": null, - "name": "minimumValue", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "EmailTopic", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "usageLimit", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "EmailTopic", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "usedCount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "EmailTopic", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "oncePerCustomer", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "folderId", + "entityType": "columns" }, { - "type": "discountEligibility", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'everyone'", - "generated": null, - "identity": null, - "name": "eligibility", - "entityType": "columns", "schema": "public", - "table": "DiscountCode" - }, - { - "type": "jsonb", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "customerFilter", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "sendsTotal", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "deliveredsTotal", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "seensTotal", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "EmailTopic", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "0", "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "DiscountCode" + "name": "clicksTotal", + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -14908,11 +14504,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14921,11 +14517,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -14934,11 +14530,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "text", "typeSchema": null, "notNull": true, @@ -14946,51 +14542,51 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "action", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "AuditLog", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "detail", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "AuditLog", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "ipAddress", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "AuditLog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "data", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "userAgent", + "entityType": "columns" }, { + "schema": "public", + "table": "AuditLog", "type": "text", "typeSchema": null, "notNull": false, @@ -14998,25 +14594,38 @@ "default": null, "generated": null, "identity": null, - "name": "backgroundUrl", - "entityType": "columns", - "schema": "public", - "table": "DynamicImage" + "name": "source", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "AuditLog", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "DynamicImage" + "table": "AuditLog", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "userId", + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15025,11 +14634,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15038,11 +14647,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15051,11 +14660,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15063,12 +14672,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "tenantId", + "entityType": "columns" }, { + "schema": "public", + "table": "CustomDomain", "type": "text", "typeSchema": null, "notNull": true, @@ -15076,51 +14685,77 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "domain", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "CustomDomain", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'pending'", "generated": null, "identity": null, - "name": "ranges", - "entityType": "columns", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "CustomDomain", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", + "name": "verifiedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceOrderCounter" + "table": "CustomDomain", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfHostnameId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "CustomDomain", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "lastNumber", - "entityType": "columns", + "name": "cfOwnershipValue", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceOrderCounter" + "table": "CustomDomain", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cfAcmeValue", + "entityType": "columns" }, { + "schema": "public", + "table": "License", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15129,11 +14764,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "License", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15142,11 +14777,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "entityType": "columns" }, { + "schema": "public", + "table": "License", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15155,206 +14790,206 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "License", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "licenseId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "License", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderingAvailable", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "token", + "entityType": "columns" }, { - "type": "webshopProductView", - "typeSchema": "public", + "schema": "public", + "table": "License", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "webshopProductView", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "expiresAt", + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformAdmin", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "PlatformAdmin", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "searchProducts", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformAdmin", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "facebookPixelId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "PlatformAdmin", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "abandonedCartDelayMinutes", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "userId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformAdmin", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'super-admin'", "generated": null, "identity": null, - "name": "abandonedCartFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "role", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Tenant", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "productButtons", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "id", + "entityType": "columns" }, { - "type": "productImageSize", - "typeSchema": "public", + "schema": "public", + "table": "Tenant", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "productImageSize", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tenant", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "allowRateOrders", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tenant", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "notifyOnCartStatusChange", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "ownerId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "paymentMethods", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "disabledReason", + "entityType": "columns" }, { - "type": "currencyPosition", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currencyPosition", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "brandName", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15362,38 +14997,38 @@ "default": null, "generated": null, "identity": null, - "name": "currencySymbol", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "logoLightPath", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "serviceFeePercent", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "logoDarkPath", + "entityType": "columns" }, { - "type": "shippingMode", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "faviconPath", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15401,25 +15036,25 @@ "default": null, "generated": null, "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "customCss", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shippingCountries", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "customJs", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15427,38 +15062,38 @@ "default": null, "generated": null, "identity": null, - "name": "defaultShippingCountry", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "theme", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Tenant", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deliveryCost", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "storageUrl", + "entityType": "columns" }, { - "type": "checkoutMode", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "checkoutMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "policyUrl", + "entityType": "columns" }, { + "schema": "public", + "table": "Tenant", "type": "text", "typeSchema": null, "notNull": false, @@ -15466,129 +15101,181 @@ "default": null, "generated": null, "identity": null, - "name": "checkoutLink", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "termsOfServiceUrl", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Tenant", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "checkoutFlowId", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "signupEmailTemplate", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Tenant", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "forgotPasswordEmailTemplate", + "entityType": "columns" }, { - "type": "orderConfirmationMode", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Tenant", + "type": "jsonb", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'default'", + "default": null, "generated": null, "identity": null, - "name": "orderConfirmationMode", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "magicLinkEmailTemplate", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Tenant", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderConfirmationFlowId", - "entityType": "columns", + "name": "accountCredentialsEmailTemplate", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceSettings" + "table": "Tenant", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hiddenChannels", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requireName", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "requireEmail", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceSettings" + "table": "TenantHelpItem", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requirePhone", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "tenantId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requireState", - "entityType": "columns", - "schema": "public", - "table": "EcommerceSettings" + "name": "name", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TenantHelpItem", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "requireZip", - "entityType": "columns", + "name": "url", + "entityType": "columns" + }, + { + "schema": "public", + "table": "TenantHelpItem", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "icon", + "entityType": "columns" + }, + { "schema": "public", - "table": "EcommerceSettings" + "table": "TenantHelpItem", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "position", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15597,11 +15284,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15610,11 +15297,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -15623,24 +15310,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "EmailTopic" - }, - { + "table": "UserQuota", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15648,25 +15322,25 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "userId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "contactsLimit", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, "notNull": true, @@ -15674,25 +15348,25 @@ "default": "0", "generated": null, "identity": null, - "name": "sendsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "contactsUsed", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "deliveredsTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "workspacesLimit", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, "notNull": true, @@ -15700,285 +15374,298 @@ "default": "0", "generated": null, "identity": null, - "name": "seensTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "workspacesUsed", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "clicksTotal", - "entityType": "columns", - "schema": "public", - "table": "EmailTopic" + "name": "channelsLimit", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "channelsUsed", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "teamMembersLimit", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "teamMembersUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "macLimit", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "macUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "ipAddress", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "botMessagesLimit", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "botMessagesUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "monthlyBotMessagesLimit", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "monthlyBotMessagesUsed", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "AuditLog" + "name": "monthlyBotMessagesPeriodStart", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "botMessagesTopUpGranted", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "whiteLabel", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "ssoSaml", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "UserQuota", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "saasMode", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "domain", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "planName", + "entityType": "columns" }, { + "schema": "public", + "table": "UserQuota", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "planStatus", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "UserQuota", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "selectedTrialPlanId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cfHostnameId", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "periodStart", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cfOwnershipValue", - "entityType": "columns", - "schema": "public", - "table": "CustomDomain" + "name": "periodEnd", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserQuota", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cfAcmeValue", - "entityType": "columns", + "name": "channelsTornDownAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "CustomDomain" + "table": "UserQuota", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "syncedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceUsage", "type": "bigint", "typeSchema": null, "notNull": true, @@ -15987,11 +15674,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "License" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceUsage", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16000,12 +15687,12 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "License" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, @@ -16013,115 +15700,102 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "License" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "licenseId", - "entityType": "columns", "schema": "public", - "table": "License" - }, - { - "type": "text", + "table": "WorkspaceUsage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "License" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "expiresAt", - "entityType": "columns", - "schema": "public", - "table": "License" + "name": "contactsUsed", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "channelsUsed", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "teamMembersUsed", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "botMessagesUsed", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceUsage", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "macUsed", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceUsage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'super-admin'", + "default": "now()", "generated": null, "identity": null, - "name": "role", - "entityType": "columns", - "schema": "public", - "table": "PlatformAdmin" + "name": "syncedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16130,11 +15804,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16143,11 +15817,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16156,50 +15830,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "action", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "disabledReason", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "detail", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": false, @@ -16207,38 +15868,38 @@ "default": null, "generated": null, "identity": null, - "name": "brandName", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "httpCode", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ErrorLog", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "logoLightPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ErrorLog", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "logoDarkPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": false, @@ -16246,12 +15907,12 @@ "default": null, "generated": null, "identity": null, - "name": "faviconPath", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "sourceId", + "entityType": "columns" }, { + "schema": "public", + "table": "ErrorLog", "type": "text", "typeSchema": null, "notNull": false, @@ -16259,142 +15920,103 @@ "default": null, "generated": null, "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "stackTrace", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ExternalWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customJs", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ExternalWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "theme", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ExternalWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "storageUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "ExternalWebhook", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'make'", "generated": null, "identity": null, - "name": "policyUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "provider", + "entityType": "columns" }, { + "schema": "public", + "table": "ExternalWebhook", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "termsOfServiceUrl", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "event", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "signupEmailTemplate", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", + "table": "ExternalWebhook", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "forgotPasswordEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "url", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "magicLinkEmailTemplate", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { - "type": "jsonb", + "table": "ExternalWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "accountCredentialsEmailTemplate", - "entityType": "columns", - "schema": "public", - "table": "Tenant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "hiddenChannels", - "entityType": "columns", "schema": "public", - "table": "Tenant" - }, - { + "table": "FacebookLeadAdsAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16403,11 +16025,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16416,11 +16038,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16429,11 +16051,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "TenantHelpItem" + "table": "FacebookLeadAdsAutomation", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16441,12 +16076,12 @@ "default": null, "generated": null, "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -16454,12 +16089,25 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", + "name": "pageId", + "entityType": "columns" + }, + { "schema": "public", - "table": "TenantHelpItem" + "table": "FacebookLeadAdsAutomation", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pageName", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "text", "typeSchema": null, "notNull": true, @@ -16467,12 +16115,12 @@ "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "name": "formId", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "text", "typeSchema": null, "notNull": false, @@ -16480,12 +16128,25 @@ "default": null, "generated": null, "identity": null, - "name": "icon", - "entityType": "columns", + "name": "formName", + "entityType": "columns" + }, + { "schema": "public", - "table": "TenantHelpItem" + "table": "FacebookLeadAdsAutomation", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fieldMapping", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "type": "integer", "typeSchema": null, "notNull": true, @@ -16493,12 +16154,12 @@ "default": "0", "generated": null, "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "TenantHelpItem" + "name": "leadsHandledCount", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16507,11 +16168,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16520,11 +16181,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16533,11 +16194,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "type": "bigint", "typeSchema": null, "notNull": true, @@ -16545,337 +16206,350 @@ "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", + "name": "automationId", + "entityType": "columns" + }, + { "schema": "public", - "table": "UserQuota" + "table": "FacebookLeadAdsLead", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "leadgenId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookLeadAdsLead", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "contactId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "workspacesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "workspacesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channelsLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "teamMembersLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "pageId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "adAccountId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "macLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "currency", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "macUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "currencyOffset", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "botMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "budgetType", + "entityType": "columns" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "budgetMinorUnits", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "monthlyBotMessagesLimit", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "content", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "monthlyBotMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "campaignId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "FacebookMarketingMessage", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "monthlyBotMessagesPeriodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "facebookUserId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "botMessagesTopUpGranted", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "whiteLabel", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "ssoSaml", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "saasMode", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "planName", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "planStatus", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "tokenExpiresAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "selectedTrialPlanId", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "periodStart", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "facebookUserId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "File", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "periodEnd", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "channelsTornDownAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -16883,142 +16557,155 @@ "default": "now()", "generated": null, "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "UserQuota" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "File", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "userId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "File", + "type": "fileContextType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "contextType", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "subType", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "contactsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "path", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "channelsUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "fileName", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "teamMembersUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "mimeType", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "File", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "botMessagesUsed", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "fileSize", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "File", + "type": "fileStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": "'pending'", "generated": null, "identity": null, - "name": "macUsed", - "entityType": "columns", + "name": "status", + "entityType": "columns" + }, + { "schema": "public", - "table": "WorkspaceUsage" + "table": "File", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "meta", + "entityType": "columns" }, { + "schema": "public", + "table": "File", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "syncedAt", - "entityType": "columns", - "schema": "public", - "table": "WorkspaceUsage" + "name": "uploadedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17027,11 +16714,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17040,11 +16727,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17053,11 +16740,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "text", "typeSchema": null, "notNull": true, @@ -17065,51 +16752,51 @@ "default": null, "generated": null, "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "detail", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "active", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "httpCode", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "enableInInbox", + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "currentVersionId", + "entityType": "columns" }, { + "schema": "public", + "table": "Flow", "type": "bigint", "typeSchema": null, "notNull": false, @@ -17117,38 +16804,38 @@ "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "draftVersionId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Flow", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "stackTrace", - "entityType": "columns", - "schema": "public", - "table": "ErrorLog" + "name": "folderId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17157,11 +16844,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17170,11 +16857,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17183,63 +16870,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'make'", - "generated": null, - "identity": null, - "name": "provider", - "entityType": "columns", "schema": "public", - "table": "ExternalWebhook" - }, - { - "type": "text", + "table": "FlowAnalyticsSession", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "event", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowAnalyticsSession", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowAnalyticsSession", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ExternalWebhook" + "name": "deletedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17248,11 +16922,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17261,11 +16935,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17274,24 +16948,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "FacebookLeadAdsAutomation" - }, - { + "table": "FlowNodeStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17300,37 +16961,37 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "analyticsId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "text", "typeSchema": null, "notNull": true, @@ -17338,12 +16999,12 @@ "default": null, "generated": null, "identity": null, - "name": "formId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "nodeId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "text", "typeSchema": null, "notNull": false, @@ -17351,116 +17012,116 @@ "default": null, "generated": null, "identity": null, - "name": "formName", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "buttonId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "fieldMapping", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "contactId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FlowNodeStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "leadsHandledCount", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowNodeStat", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "eventType", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "FlowNodeStat", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "errorContent", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowNodeStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "automationId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "seenAt", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowNodeStat", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "leadgenId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "refId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "FlowNodeStat", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "refType", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17469,11 +17130,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17482,11 +17143,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17495,11 +17156,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { + "schema": "public", + "table": "FlowRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17508,141 +17169,180 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowRun", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowRun", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "flowVersionId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowRun", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "conversationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FlowVersion", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "currencyOffset", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessage" + "table": "FlowVersion", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "budgetType", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "budgetMinorUnits", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "flowId", + "entityType": "columns" }, { + "schema": "public", + "table": "FlowVersion", "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, + "dimensions": 1, "default": null, "generated": null, "identity": null, - "name": "content", - "entityType": "columns", + "name": "nodes", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessage" + "table": "FlowVersion", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": null, + "generated": null, + "identity": null, + "name": "edges", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "campaignId", - "entityType": "columns", + "name": "isDraft", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessage" + "table": "FlowVersion", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isLatest", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "FlowVersion", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "facebookUserId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "startNodeId", + "entityType": "columns" }, { + "schema": "public", + "table": "Folder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17651,11 +17351,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "entityType": "columns" }, { + "schema": "public", + "table": "Folder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17664,11 +17364,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "entityType": "columns" }, { + "schema": "public", + "table": "Folder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17677,76 +17377,89 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Folder", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "name", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "Folder", + "type": "folderType", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "folderType", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Folder", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "parentId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Folder", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Folder", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "facebookUserId", - "entityType": "columns", + "name": "isTrash", + "entityType": "columns" + }, + { "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "table": "Folder", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "paths", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -17755,11 +17468,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17768,11 +17481,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -17781,24 +17494,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "File" + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "bigint", "typeSchema": null, "notNull": false, @@ -17806,51 +17519,51 @@ "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "integrationGoogleAdsId", + "entityType": "columns" }, { - "type": "fileContextType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contextType", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "contactInboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "subType", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "customerId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "loginCustomerId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -17858,12 +17571,12 @@ "default": null, "generated": null, "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionCustomerId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -17871,103 +17584,103 @@ "default": null, "generated": null, "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionActionId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fileSize", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionActionName", + "entityType": "columns" }, { - "type": "fileStatus", - "typeSchema": "public", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "conversionActionCategory", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "lookbackWindowDays", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "uploadedAt", - "entityType": "columns", - "schema": "public", - "table": "File" + "name": "channel", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsEventSource", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "source", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "scopeId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsClickIdType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "clickIdType", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "text", "typeSchema": null, "notNull": true, @@ -17975,155 +17688,142 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "clickId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "googleClickReceivedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enableInInbox", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "numeric", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currentVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "value", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "draftVersionId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "currency", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "transactionId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Flow" + "name": "options", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "uploadMethod", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "FlowAnalyticsSession" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "table": "GoogleAdsConversionEvent", + "type": "googleAdsEventStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "attempt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "claimToken", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -18131,129 +17831,129 @@ "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "claimedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "requestId", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "sentAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "error", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsFailureStage", + "typeSchema": "public", + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "failureStage", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "googleAdsProcessingStatus", + "typeSchema": "public", + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingStatus", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "analyticsId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingCheckedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingAttempts", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "buttonId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "nextProcessingCheckAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "GoogleAdsConversionEvent", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "processingDetail", + "entityType": "columns" }, { + "schema": "public", + "table": "GoogleAdsSettings", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18261,90 +17961,64 @@ "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsSettings", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "eventType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "GoogleAdsSettings", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "occurredAt", - "entityType": "columns", "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "timestamp(6) with time zone", + "table": "GoogleAdsSettings", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "refId", - "entityType": "columns", "schema": "public", - "table": "FlowNodeStat" - }, - { - "type": "integer", + "table": "GoogleAdsSettings", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "refType", - "entityType": "columns", - "schema": "public", - "table": "FlowNodeStat" + "name": "settings", + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18353,11 +18027,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18366,11 +18040,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18379,37 +18053,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "FlowRun" - }, - { - "type": "bigint", + "table": "IgStoryAutomation", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18417,12 +18078,12 @@ "default": null, "generated": null, "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "IgStoryAutomation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -18430,142 +18091,142 @@ "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "FlowRun" + "name": "folderId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IgStoryAutomation", + "type": "igStoryAutomationType", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "type", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "IgStoryAutomation", + "type": "igStoryAutomationTrigger", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'storyReply'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "trigger", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IgStoryAutomation", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "inboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IgStoryAutomation", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "isActive", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IgStoryAutomation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "startTime", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IgStoryAutomation", + "type": "text", "typeSchema": null, - "notNull": true, - "dimensions": 1, + "notNull": false, + "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nodes", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "endTime", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IgStoryAutomation", + "type": "integer", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": null, + "dimensions": 0, + "default": "0", "generated": null, "identity": null, - "name": "edges", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "repliesCount", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IgStoryAutomation", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'{\"type\":\"all\",\"value\":[]}'", "generated": null, "identity": null, - "name": "isDraft", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "story", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IgStoryAutomation", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "'{\"type\":\"none\",\"value\":null}'", "generated": null, "identity": null, - "name": "isLatest", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "reply", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IgStoryAutomation", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'{\"type\":\"all\",\"value\":[]}'", "generated": null, "identity": null, - "name": "startNodeId", - "entityType": "columns", - "schema": "public", - "table": "FlowVersion" + "name": "includeKeywords", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18574,11 +18235,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18587,11 +18248,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -18600,37 +18261,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Import", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "folderType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Import", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderType", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "bigint", "typeSchema": null, "notNull": false, @@ -18638,12 +18299,12 @@ "default": null, "generated": null, "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "userId", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "bigint", "typeSchema": null, "notNull": true, @@ -18651,207 +18312,207 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "fileId", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, + "schema": "public", + "table": "Import", + "type": "importType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isTrash", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "type", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "Import", + "type": "importFormat", + "typeSchema": "public", "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "paths", - "entityType": "columns", - "schema": "public", - "table": "Folder" + "name": "format", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "Import", + "type": "importStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Import", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "meta", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "totalCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "processedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "integrationGoogleAdsId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "successCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Import", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "failedCount", + "entityType": "columns" }, { + "schema": "public", + "table": "Import", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorMessage", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Import", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorSample", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Import", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "completedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversionActionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "conversionActionName", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "conversionActionCategory", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "InboundWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lookbackWindowDays", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhook", "type": "text", "typeSchema": null, "notNull": true, @@ -18859,25 +18520,25 @@ "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "name", + "entityType": "columns" }, { - "type": "googleAdsEventSource", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhook", + "type": "boolean", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "active", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhook", "type": "text", "typeSchema": null, "notNull": true, @@ -18885,155 +18546,155 @@ "default": null, "generated": null, "identity": null, - "name": "scopeId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "token", + "entityType": "columns" }, { - "type": "googleAdsClickIdType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clickIdType", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "inboxResolution", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clickId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "identifiers", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "googleClickReceivedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "fieldMappings", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "actions", + "entityType": "columns" }, { - "type": "numeric", + "schema": "public", + "table": "InboundWebhook", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "sampleJson", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhook", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "requestCount", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "transactionId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "options", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "uploadMethod", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "googleAdsEventStatus", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "inboundWebhookId", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "text", "typeSchema": null, "notNull": false, @@ -19041,25 +18702,25 @@ "default": null, "generated": null, "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "idempotencyKey", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "clientIp", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "text", "typeSchema": null, "notNull": false, @@ -19067,25 +18728,25 @@ "default": null, "generated": null, "identity": null, - "name": "requestId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "userAgent", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "InboundWebhookRequest", + "type": "inboundWebhookRequestStatus", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'received'", "generated": null, "identity": null, - "name": "sentAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "text", "typeSchema": null, "notNull": false, @@ -19093,155 +18754,168 @@ "default": null, "generated": null, "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "claimToken", + "entityType": "columns" }, { - "type": "googleAdsFailureStage", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "failureStage", - "entityType": "columns", + "name": "claimedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "InboundWebhookRequest", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns" }, { - "type": "googleAdsProcessingStatus", - "typeSchema": "public", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", + "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingStatus", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "skipReason", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorCode", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingAttempts", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "errorMessage", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nextProcessingCheckAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processingDetail", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "InboundWebhookRequest", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "payload", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "fieldErrors", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "actionResults", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboundWebhookRequest", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "settings", - "entityType": "columns", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "processedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19250,11 +18924,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19263,11 +18937,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19276,11 +18950,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "text", "typeSchema": null, "notNull": true, @@ -19289,102 +18963,89 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Inbox", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "channel", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Inbox", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "sourceId", + "entityType": "columns" }, { - "type": "igStoryAutomationType", - "typeSchema": "public", + "schema": "public", + "table": "Inbox", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "igStoryAutomationTrigger", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'storyReply'", - "generated": null, - "identity": null, - "name": "trigger", - "entityType": "columns", "schema": "public", - "table": "IgStoryAutomation" - }, - { - "type": "bigint", + "table": "Inbox", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'connected'", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "false", "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "markReadOnOutbound", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Inbox", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "startTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "disconnectedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Inbox", "type": "text", "typeSchema": null, "notNull": false, @@ -19392,64 +19053,64 @@ "default": null, "generated": null, "identity": null, - "name": "endTime", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "disconnectReason", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Inbox", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "repliesCount", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "threadControlSeenAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxContactStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", + "default": null, "generated": null, "identity": null, - "name": "story", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxContactStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'{\"type\":\"none\",\"value\":null}'", + "default": "0", "generated": null, "identity": null, - "name": "reply", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "totalContacts", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxContactStat", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'{\"type\":\"all\",\"value\":[]}'", + "default": "now()", "generated": null, "identity": null, - "name": "includeKeywords", - "entityType": "columns", - "schema": "public", - "table": "IgStoryAutomation" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19458,11 +19119,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19471,11 +19132,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19484,11 +19145,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeam", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19497,37 +19158,24 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Import" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", "schema": "public", - "table": "Import" - }, - { - "type": "bigint", + "table": "InboxTeam", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "InboxTeamMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19535,155 +19183,142 @@ "default": null, "generated": null, "identity": null, - "name": "fileId", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "id", + "entityType": "columns" }, { - "type": "importType", - "typeSchema": "public", + "schema": "public", + "table": "InboxTeamMember", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "createdAt", + "entityType": "columns" }, { - "type": "importFormat", - "typeSchema": "public", + "schema": "public", + "table": "InboxTeamMember", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "format", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "importStatus", - "typeSchema": "public", + "schema": "public", + "table": "InboxTeamMember", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "inboxTeamId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "InboxTeamMember", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "meta", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "userId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "processedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationActiveCampaign", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationActiveCampaign", "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "errorSample", - "entityType": "columns", - "schema": "public", - "table": "Import" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "Import" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19692,11 +19327,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19705,11 +19340,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19718,24 +19353,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationApi", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "text", "typeSchema": null, "notNull": true, @@ -19744,24 +19379,24 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationApi", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "tokenHash", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationApi", "type": "text", "typeSchema": null, "notNull": true, @@ -19769,90 +19404,129 @@ "default": null, "generated": null, "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "tokenPrefix", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxResolution", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "callbackUrl", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "identifiers", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "enabled", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fieldMappings", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationApi", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actions", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhook" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Integration", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sampleJson", - "entityType": "columns", + "name": "id", + "entityType": "columns" + }, + { + "schema": "public", + "table": "Integration", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "InboundWebhook" + "table": "Integration", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Integration", "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "requestCount", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "InboundWebhook" + "table": "Integration", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "integrationType", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "bigint", "typeSchema": null, "notNull": true, @@ -19861,11 +19535,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19874,11 +19548,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -19887,89 +19561,89 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationClaude", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationClaude", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "inboundWebhookId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "autoReply", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationClaude", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationClaude", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clientIp", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationClaude", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userAgent", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "maxOutputTokens", + "entityType": "columns" }, { - "type": "inboundWebhookRequestStatus", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationClaude", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'received'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "model", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationClaude", "type": "text", "typeSchema": null, "notNull": false, @@ -19977,168 +19651,168 @@ "default": null, "generated": null, "identity": null, - "name": "claimToken", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "prompt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationClaude", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "claimedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "temperature", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "skipReason", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "errorCode", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "autoReply", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDeepseek", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDeepseek", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "integrationId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "maxOutputTokens", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fieldErrors", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "model", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actionResults", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "prompt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationDeepseek", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "temperature", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDrip", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20147,11 +19821,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDrip", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20160,11 +19834,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationDrip", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20173,50 +19847,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDrip", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDrip", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationDrip", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20224,116 +19898,103 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "id", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'connected'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "Inbox" - }, - { - "type": "boolean", + "table": "IntegrationFacebookAds", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "markReadOnOutbound", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "disconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "disconnectReason", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "threadControlSeenAt", - "entityType": "columns", - "schema": "public", - "table": "Inbox" + "name": "integrationId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" + "name": "auth", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalContacts", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" + "name": "tokenExpiresAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationFacebookAds", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'active'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxContactStat" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20342,11 +20003,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20355,11 +20016,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20368,37 +20029,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGemini", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGemini", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "InboxTeam" + "name": "autoReply", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGemini", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20406,64 +20067,77 @@ "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationGemini", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "integrationId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationGemini", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "maxOutputTokens", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGemini", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxTeamId", - "entityType": "columns", - "schema": "public", - "table": "InboxTeamMember" + "name": "model", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGemini", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", + "name": "prompt", + "entityType": "columns" + }, + { "schema": "public", - "table": "InboxTeamMember" + "table": "IntegrationGemini", + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "temperature", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20472,11 +20146,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20485,11 +20159,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20498,11 +20172,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20511,11 +20185,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20524,11 +20198,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGetResponse", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -20537,11 +20211,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationActiveCampaign" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20550,11 +20224,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20563,11 +20237,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20576,50 +20250,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tokenHash", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "text", "typeSchema": null, "notNull": true, @@ -20627,12 +20301,12 @@ "default": null, "generated": null, "identity": null, - "name": "tokenPrefix", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "customerId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "text", "typeSchema": null, "notNull": false, @@ -20640,116 +20314,116 @@ "default": null, "generated": null, "identity": null, - "name": "callbackUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "loginCustomerId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "descriptiveName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "currencyCode", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationApi" + "name": "conversionCustomerId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "boolean", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "acceptedCustomerDataTerms", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "conversionActions", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "conversionActionsSyncedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "setupError", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationGoogleAds", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationType", - "entityType": "columns", - "schema": "public", - "table": "Integration" + "name": "setupErrorAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20758,11 +20432,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20771,11 +20445,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20784,37 +20458,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", "schema": "public", - "table": "IntegrationClaude" - }, - { + "table": "IntegrationGoogleCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20823,11 +20471,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20836,37 +20484,37 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationGoogleCalendar", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'primary'", "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "name": "providerCalendarId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "type": "text", "typeSchema": null, "notNull": false, @@ -20874,25 +20522,12 @@ "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationClaude" + "name": "email", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationClaude" - }, - { + "table": "IntegrationGoogleSheet", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20901,11 +20536,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20914,11 +20549,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -20927,37 +20562,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", "schema": "public", - "table": "IntegrationDeepseek" - }, - { + "table": "IntegrationGoogleSheet", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20966,11 +20575,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "type": "bigint", "typeSchema": null, "notNull": true, @@ -20979,63 +20588,24 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", + "table": "IntegrationGoogleSheet", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDeepseek" + "name": "auth", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationDeepseek" - }, - { + "table": "IntegrationInstagram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21044,11 +20614,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21057,11 +20627,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21070,128 +20640,128 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "name": "userInfo", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationDrip" + "name": "igId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "pageId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "name", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "username", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "coexistEnabled", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationInstagram", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "hasCapiScope", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -21199,90 +20769,90 @@ "default": null, "generated": null, "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "capiScopeCheckedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "datasetId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "capiAccessToken", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "capiDisconnectedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationInstagram", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "capiTestEventCode", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "conversationStarters", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationInstagram", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": "false", + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "persistentMenus", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21291,11 +20861,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21303,38 +20873,38 @@ "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "inboxId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationInstagram", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "welcomeFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'instagram'", "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "type", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationInstagram", "type": "text", "typeSchema": null, "notNull": false, @@ -21342,25 +20912,12 @@ "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGemini" + "name": "tokenRefreshError", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationGemini" - }, - { + "table": "IntegrationKlaviyo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21369,11 +20926,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21382,11 +20939,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21395,11 +20952,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21408,11 +20965,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21421,11 +20978,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -21434,11 +20991,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGetResponse" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21447,11 +21004,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21460,11 +21017,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21473,11 +21030,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21486,11 +21043,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21499,11 +21056,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailchimp", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -21512,141 +21069,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "customerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "loginCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "descriptiveName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "currencyCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionCustomerId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "acceptedCustomerDataTerms", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActions", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversionActionsSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleAds" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "setupErrorAt", - "entityType": "columns", "schema": "public", - "table": "IntegrationGoogleAds" - }, - { + "table": "IntegrationMailerLite", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21655,11 +21082,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21668,11 +21095,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21681,11 +21108,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21694,11 +21121,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21707,11 +21134,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMailerLite", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -21720,37 +21147,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'primary'", - "generated": null, - "identity": null, - "name": "providerCalendarId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "email", - "entityType": "columns", "schema": "public", - "table": "IntegrationGoogleCalendar" - }, - { + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -21759,11 +21160,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21772,11 +21173,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -21785,167 +21186,115 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "IntegrationGoogleSheet" - }, - { - "type": "bigint", + "table": "IntegrationMessenger", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "name": "auth", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationGoogleSheet" + "name": "userInfo", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMessenger", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "pageId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "timestamp(6) with time zone", + "table": "IntegrationMessenger", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "conversationStarters", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userInfo", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", + "table": "IntegrationMessenger", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "", "generated": null, "identity": null, - "name": "igId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "persistentMenus", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "pageId", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "text", + "table": "IntegrationMessenger", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "personas", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "personaId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "boolean", "typeSchema": null, "notNull": true, @@ -21954,11 +21303,11 @@ "generated": null, "identity": null, "name": "coexistEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "boolean", "typeSchema": null, "notNull": true, @@ -21967,11 +21316,11 @@ "generated": null, "identity": null, "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "boolean", "typeSchema": null, "notNull": true, @@ -21980,11 +21329,11 @@ "generated": null, "identity": null, "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -21993,11 +21342,11 @@ "generated": null, "identity": null, "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, "notNull": false, @@ -22006,11 +21355,11 @@ "generated": null, "identity": null, "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "jsonb", "typeSchema": null, "notNull": false, @@ -22019,11 +21368,11 @@ "generated": null, "identity": null, "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -22032,11 +21381,11 @@ "generated": null, "identity": null, "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, "notNull": false, @@ -22045,37 +21394,11 @@ "generated": null, "identity": null, "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "", - "generated": null, - "identity": null, - "name": "persistentMenus", - "entityType": "columns", "schema": "public", - "table": "IntegrationInstagram" - }, - { + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22084,11 +21407,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22097,11 +21420,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "bigint", "typeSchema": null, "notNull": false, @@ -22110,24 +21433,24 @@ "generated": null, "identity": null, "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationMessenger", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'instagram'", + "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "IntegrationInstagram" + "name": "syncTagEnabledAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMessenger", "type": "text", "typeSchema": null, "notNull": false, @@ -22136,11 +21459,24 @@ "generated": null, "identity": null, "name": "tokenRefreshError", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationInstagram" + "table": "IntegrationMessenger", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "handoverResumeFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22149,11 +21485,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22162,11 +21498,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22175,11 +21511,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22188,11 +21524,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22201,180 +21537,219 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationKlaviyo" + "name": "catalogId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "catalogName", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "businessId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "encryptedAuth", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "metaCatalogAuthMode", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'oauth'", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "authMode", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "tokenExpiresAt", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "metaCatalogConnectionStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "metaCatalogImportStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'idle'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "importStatus", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "importTotalCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "importedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "importFailedCount", + "entityType": "columns" + }, + { + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", + "name": "importError", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationMailerLite" + "table": "IntegrationMetaCatalog", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastImportedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMetaCatalog", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'VND'", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", + "name": "currency", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationMailerLite" + "table": "IntegrationMetaCatalog", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeUrl", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMoosend", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22383,11 +21758,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMoosend", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22396,11 +21771,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationMoosend", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22409,141 +21784,115 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMoosend", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationMoosend", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userInfo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationMoosend", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenai", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenai", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", + "default": "now()", "generated": null, "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenai", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", + "default": "now()", "generated": null, "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", - "generated": null, - "identity": null, - "name": "personas", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "personaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "auth", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "coexistEnabled", - "entityType": "columns", "schema": "public", - "table": "IntegrationMessenger" - }, - { + "table": "IntegrationOpenai", "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "true", "generated": null, "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "autoReply", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "boolean", "typeSchema": null, "notNull": true, @@ -22551,25 +21900,25 @@ "default": "false", "generated": null, "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "autoReplyVoice", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenai", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "voice", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "text", "typeSchema": null, "notNull": false, @@ -22577,51 +21926,51 @@ "default": null, "generated": null, "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "prompt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenai", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiAccessToken", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "model", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenai", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "temperature", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenai", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "maxOutputTokens", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22630,11 +21979,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22642,12 +21991,12 @@ "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenai", "type": "bigint", "typeSchema": null, "notNull": false, @@ -22655,324 +22004,311 @@ "default": null, "generated": null, "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "aiAgentId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMessenger" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "auth", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "autoReply", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "baseURL", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "defaultModel", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "enabled", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogName", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "preset", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationOpenaiCompatible", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "encryptedAuth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "metaCatalogAuthMode", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'oauth'", + "default": null, "generated": null, "identity": null, - "name": "authMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "tokenExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "createdAt", + "entityType": "columns" }, { - "type": "metaCatalogConnectionStatus", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'active'", + "default": "now()", "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "auth", + "entityType": "columns" }, { - "type": "metaCatalogImportStatus", - "typeSchema": "public", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "boolean", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'idle'", + "default": "false", "generated": null, "identity": null, - "name": "importStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "autoReply", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "importTotalCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "importedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "importFailedCount", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "maxOutputTokens", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "importError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "model", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOpenrouter", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastImportedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "prompt", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'VND'", - "generated": null, - "identity": null, - "name": "currency", - "entityType": "columns", "schema": "public", - "table": "IntegrationMetaCatalog" - }, - { - "type": "text", + "table": "IntegrationOpenrouter", + "type": "double precision", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "storeUrl", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "temperature", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -22981,11 +22317,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -22994,11 +22330,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23007,11 +22343,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23020,11 +22356,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23033,11 +22369,11 @@ "generated": null, "identity": null, "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -23046,37 +22382,50 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationMoosend" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'primary'", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "providerCalendarId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationOutlookCalendar", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "email", + "entityType": "columns" + }, + { + "schema": "public", + "table": "IntegrationSendGrid", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationSendGrid", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23084,129 +22433,142 @@ "default": "now()", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoReplyVoice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "integrationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationSendGrid", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "voice", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "auth", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationSmtp", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationSmtp", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "model", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationOpenai" + "table": "IntegrationSmtp", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "IntegrationSmtp", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "temperature", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "auth", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationSmtp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationSmtp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "fromAddress", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationSmtp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23214,25 +22576,25 @@ "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationSmtp", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "aiAgentId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenai" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23241,11 +22603,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23254,11 +22616,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23267,37 +22629,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "autoReply", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { + "table": "IntegrationTelegram", "type": "text", "typeSchema": null, "notNull": true, @@ -23305,12 +22654,12 @@ "default": null, "generated": null, "identity": null, - "name": "baseURL", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "botId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTelegram", "type": "text", "typeSchema": null, "notNull": true, @@ -23318,25 +22667,12 @@ "default": null, "generated": null, "identity": null, - "name": "defaultModel", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "name", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "enabled", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { + "table": "IntegrationTelegram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23344,38 +22680,12 @@ "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "preset", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenaiCompatible" - }, - { + "table": "IntegrationTelegram", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23383,12 +22693,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23397,11 +22707,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23410,11 +22720,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23423,11 +22733,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -23436,76 +22746,76 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationThreads", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoReply", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "threadsUserId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationThreads", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "username", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationThreads", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "IntegrationThreads", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "maxOutputTokens", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationThreads", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "model", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationThreads", "type": "text", "typeSchema": null, "notNull": false, @@ -23513,25 +22823,12 @@ "default": null, "generated": null, "identity": null, - "name": "prompt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "tokenRefreshError", + "entityType": "columns" }, { - "type": "double precision", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "temperature", - "entityType": "columns", "schema": "public", - "table": "IntegrationOpenrouter" - }, - { + "table": "IntegrationTiktok", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23540,11 +22837,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTiktok", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23553,11 +22850,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTiktok", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23566,63 +22863,76 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationTiktok", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationTiktok", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "openId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationTiktok", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationTiktok", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'primary'", + "default": null, "generated": null, "identity": null, - "name": "providerCalendarId", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationOutlookCalendar" + "table": "IntegrationTiktok", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationTiktok", "type": "text", "typeSchema": null, "notNull": false, @@ -23630,12 +22940,12 @@ "default": null, "generated": null, "identity": null, - "name": "email", - "entityType": "columns", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "tokenRefreshError", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23644,11 +22954,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23657,11 +22967,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23670,128 +22980,154 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWebchat", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "auth", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWebchat", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "name", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", + "name": "enable", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationSendGrid" + "table": "IntegrationWebchat", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "authorizedDomains", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWebchat", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", + "name": "conversationStarters", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationSmtp" + "table": "IntegrationWebchat", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 1, + "default": "", + "generated": null, + "identity": null, + "name": "persistentMenus", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWebchat", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "brandColor", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "hideHeader", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "showLogo", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWebchat", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "hideMessageInput", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fromAddress", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "name": "customCss", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23800,11 +23136,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationSmtp" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWebchat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23813,11 +23149,24 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationSmtp" + "table": "IntegrationWebchat", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcomeFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -23826,11 +23175,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23839,11 +23188,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -23852,11 +23201,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -23865,11 +23214,11 @@ "generated": null, "identity": null, "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, "notNull": true, @@ -23877,12 +23226,12 @@ "default": null, "generated": null, "identity": null, - "name": "botId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "phoneNumberId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, "notNull": true, @@ -23890,155 +23239,168 @@ "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "wabaId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "businessId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTelegram" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "displayPhoneNumber", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", + "name": "coexistEnabled", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationThreads" + "table": "IntegrationWhatsapp", + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "callingEnabled", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "inboundCallsEnabled", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callHours", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "threadsUserId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callRecordingEnabled", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "90", "generated": null, "identity": null, - "name": "username", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callRecordingRetentionDays", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callTranscriptionEnabled", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "whatsappCallRecordingMode", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'metaNative'", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callRecordingMode", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "whatsappCallTranscriptionMode", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'metaNative'", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callTranscriptionMode", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, "notNull": false, @@ -24046,311 +23408,324 @@ "default": null, "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationThreads" + "name": "callAnnouncementLanguage", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "callRecordingPurpose", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "coexistAiReadsSyncedHistory", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "isCoexist", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "platformType", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "openId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "historyDeclined", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "hasCapiScope", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "capiScopeCheckedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "datasetId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationTiktok" + "name": "capiAccessToken", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "capiDisconnectedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "capiTestEventCode", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "whatsappRegistrationStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'pending_verification'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "registrationStatus", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", + "name": "registrationError", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWebchat" + "table": "IntegrationWhatsapp", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verificationCodeRequestedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "tokenRefreshError", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enable", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "handoverResumeFlowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "bigint", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "authorizedDomains", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationWhatsapp", + "type": "bigint", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "conversationStarters", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "inboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "IntegrationZalo", + "type": "bigint", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "persistentMenus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "IntegrationZalo", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "brandColor", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationZalo", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "hideHeader", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationZalo", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "showLogo", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "auth", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "IntegrationZalo", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "hideMessageInput", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "oaId", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customCss", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24359,11 +23734,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24372,11 +23747,11 @@ "generated": null, "identity": null, "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWebchat" + "entityType": "columns" }, { + "schema": "public", + "table": "IntegrationZalo", "type": "bigint", "typeSchema": null, "notNull": false, @@ -24384,12 +23759,38 @@ "default": null, "generated": null, "identity": null, - "name": "welcomeFlowId", - "entityType": "columns", + "name": "fallbackFlowId", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWebchat" + "table": "IntegrationZalo", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "syncTagEnabledAt", + "entityType": "columns" + }, + { + "schema": "public", + "table": "IntegrationZalo", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tokenRefreshError", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24398,11 +23799,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24411,11 +23812,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24424,24 +23825,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Leaderboard", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "text", "typeSchema": null, "notNull": true, @@ -24449,116 +23850,142 @@ "default": null, "generated": null, "identity": null, - "name": "phoneNumberId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "description", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "coverImageUrl", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "startsAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "displayPhoneNumber", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "endsAt", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, + "schema": "public", + "table": "Leaderboard", + "type": "leaderboardStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "false", + "default": "'draft'", "generated": null, "identity": null, - "name": "coexistEnabled", - "entityType": "columns", + "name": "status", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Leaderboard", + "type": "leaderboardPlatform", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "inboxId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "inboundCallsEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "minigameId", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callHours", - "entityType": "columns", + "name": "scope", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Leaderboard", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rules", + "entityType": "columns" }, { + "schema": "public", + "table": "Leaderboard", "type": "boolean", "typeSchema": null, "notNull": true, @@ -24566,272 +23993,311 @@ "default": "false", "generated": null, "identity": null, - "name": "callRecordingEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "followersOnly", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Leaderboard", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "90", + "default": null, "generated": null, "identity": null, - "name": "callRecordingRetentionDays", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "tagIds", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "'22:00'", "generated": null, "identity": null, - "name": "callTranscriptionEnabled", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "resetTime", + "entityType": "columns" }, { - "type": "whatsappCallRecordingMode", - "typeSchema": "public", + "schema": "public", + "table": "Leaderboard", + "type": "integer", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'metaNative'", + "default": "0", "generated": null, "identity": null, - "name": "callRecordingMode", - "entityType": "columns", + "name": "cooldownSeconds", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Leaderboard", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referralWelcomeFlowId", + "entityType": "columns" }, { - "type": "whatsappCallTranscriptionMode", - "typeSchema": "public", + "schema": "public", + "table": "Leaderboard", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'metaNative'", + "default": null, "generated": null, "identity": null, - "name": "callTranscriptionMode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "rewardSettings", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callAnnouncementLanguage", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "rewardsTriggeredAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Leaderboard", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "callRecordingPurpose", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "rewardRecipients", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "coexistAiReadsSyncedHistory", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "finishedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Leaderboard", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isCoexist", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "platformType", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "historyDeclined", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "hasCapiScope", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "leaderboardId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiScopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "datasetId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "contactId", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "leaderboardAuditAction", + "typeSchema": "public", + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiAccessToken", - "entityType": "columns", + "name": "action", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "LeaderboardAuditLog", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "delta", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardAuditLog", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "capiDisconnectedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "actorUserId", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "capiTestEventCode", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "reason", + "entityType": "columns" }, { - "type": "whatsappRegistrationStatus", - "typeSchema": "public", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending_verification'", + "default": null, "generated": null, "identity": null, - "name": "registrationStatus", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "leaderboardId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "registrationError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "contactId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "verificationCodeRequestedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", + "name": "score", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "LeaderboardParticipant", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "isBanned", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardParticipant", "type": "bigint", "typeSchema": null, "notNull": false, @@ -24839,51 +24305,64 @@ "default": null, "generated": null, "identity": null, - "name": "handoverResumeFlowId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "referrerContactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", + "name": "scoredAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationWhatsapp" + "table": "LeaderboardParticipant", + "type": "date", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dailyBucket", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "dailyCounts", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardParticipant", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "breakdown", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24891,12 +24370,12 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "lastActivityAt", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardParticipant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -24904,51 +24383,51 @@ "default": "now()", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "oaId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "leaderboardId", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24957,11 +24436,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -24969,38 +24448,51 @@ "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "contactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fallbackFlowId", - "entityType": "columns", + "name": "delta", + "entityType": "columns" + }, + { "schema": "public", - "table": "IntegrationZalo" + "table": "LeaderboardScoreEvent", + "type": "leaderboardScoreSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "LeaderboardScoreEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "syncTagEnabledAt", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "rule", + "entityType": "columns" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -25008,12 +24500,12 @@ "default": null, "generated": null, "identity": null, - "name": "tokenRefreshError", - "entityType": "columns", - "schema": "public", - "table": "IntegrationZalo" + "name": "sourceRef", + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25022,11 +24514,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25035,11 +24527,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25048,11 +24540,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25061,11 +24553,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "text", "typeSchema": null, "notNull": true, @@ -25074,219 +24566,206 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "entityType": "columns" }, { + "schema": "public", + "table": "MagicLink", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "url", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "coverImageUrl", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "startsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "linkId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "endsAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "contactId", + "entityType": "columns" }, { - "type": "leaderboardStatus", - "typeSchema": "public", + "schema": "public", + "table": "MagicLinkStat", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'draft'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "leaderboardPlatform", - "typeSchema": "public", + "schema": "public", + "table": "MagicLinkStat", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MagicLinkStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFile", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "rules", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "MediaLibraryFile", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "followersOnly", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "name", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tagIds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "path", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFile", "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'22:00'", + "default": null, "generated": null, "identity": null, - "name": "resetTime", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "mimeType", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFile", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "cooldownSeconds", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "size", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MediaLibraryFile", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "referralWelcomeFlowId", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "isFavourite", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "rewardSettings", - "entityType": "columns", "schema": "public", - "table": "Leaderboard" - }, - { + "table": "MediaLibraryFile", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -25294,64 +24773,64 @@ "default": null, "generated": null, "identity": null, - "name": "rewardsTriggeredAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "lastAccessedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MediaLibraryFile", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "rewardRecipients", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MediaLibraryFile", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "folderId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MediaLibraryFolder", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Leaderboard" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MediaLibraryFolder", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFolder", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25359,25 +24838,25 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MediaLibraryFolder", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "MediaLibraryFolder", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25386,76 +24865,76 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "id", + "entityType": "columns" }, { - "type": "leaderboardAuditAction", - "typeSchema": "public", + "schema": "public", + "table": "Message", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "action", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Message", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "conversationId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Message", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": null, "generated": null, "identity": null, - "name": "reason", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "contactInboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25463,64 +24942,77 @@ "default": null, "generated": null, "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "text", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Message", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "contentAttributes", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "Message", + "type": "messageType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "score", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "messageType", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, + "schema": "public", + "table": "Message", + "type": "contentType", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isBanned", - "entityType": "columns", + "name": "contentType", + "entityType": "columns" + }, + { "schema": "public", - "table": "LeaderboardParticipant" + "table": "Message", + "type": "senderType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "senderType", + "entityType": "columns" }, { + "schema": "public", + "table": "Message", "type": "bigint", "typeSchema": null, "notNull": false, @@ -25528,90 +25020,90 @@ "default": null, "generated": null, "identity": null, - "name": "referrerContactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "senderId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "scoredAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "sourceId", + "entityType": "columns" }, { - "type": "date", + "schema": "public", + "table": "Message", + "type": "timestamp with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "dailyBucket", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "Message", + "type": "messageKind", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'message'", "generated": null, "identity": null, - "name": "dailyCounts", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "type", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "breakdown", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "parentId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Message", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "lastActivityAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "attributes", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Message", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "sendError", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25620,11 +25112,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25633,24 +25125,24 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessageCleanup", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "leaderboardId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25659,11 +25151,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25672,76 +25164,76 @@ "generated": null, "identity": null, "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "MessageCleanup", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "delta", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "leaderboardScoreSource", - "typeSchema": "public", + "schema": "public", + "table": "MessageCleanup", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "rule", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "sourceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessageCleanup", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceRef", - "entityType": "columns", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "conversationIds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessageCleanup", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "sinceTime", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -25749,64 +25241,64 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "MessageCleanup", + "type": "MessageCleanupStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'pending'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessageCleanup", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "attempts", + "entityType": "columns" }, { + "schema": "public", + "table": "MessageCleanup", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "lastError", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessageCleanup", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "MagicLink" + "name": "processedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25814,38 +25306,38 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -25853,77 +25345,77 @@ "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdOperation", + "type": "messagingAdChannel", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "channel", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MagicLinkStat" + "name": "integrationWhatsappId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "integrationMessengerId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "integrationInstagramId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "adAccountId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "text", "typeSchema": null, "notNull": true, @@ -25932,167 +25424,141 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdOperation", + "type": "messagingAdCreateState", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'pending'", "generated": null, "identity": null, - "name": "path", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "createState", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdOperation", + "type": "messagingAdPublishState", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'draft'", "generated": null, "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "publishState", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaCampaignId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isFavourite", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaAdSetId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastAccessedAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaAdCreativeId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "metaAdId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessagingAdOperation", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFile" + "name": "input", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "MediaLibraryFolder" - }, - { - "type": "timestamp(6) with time zone", + "table": "MessagingAdOperation", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" + "name": "lastError", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "MediaLibraryFolder" - }, - { + "table": "MessagingAdOperation", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" + "name": "cleanupError", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdOperation", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MediaLibraryFolder" + "name": "createdBy", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26101,11 +25567,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Message" + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26114,11 +25580,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Message" + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26127,11 +25593,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26139,233 +25605,233 @@ "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "MessagingAdsConnection", + "type": "messagingAdChannel", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "channel", + "entityType": "columns" }, { + "schema": "public", + "table": "MessagingAdsConnection", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationMessengerId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentAttributes", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationInstagramId", + "entityType": "columns" }, { - "type": "messageType", - "typeSchema": "public", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "messageType", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "auth", + "entityType": "columns" }, { - "type": "contentType", - "typeSchema": "public", + "schema": "public", + "table": "MessagingAdsConnection", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'active'", "generated": null, "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "status", + "entityType": "columns" }, { - "type": "senderType", - "typeSchema": "public", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "senderType", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "senderId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp with time zone", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "name", + "entityType": "columns" }, { - "type": "messageKind", - "typeSchema": "public", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'message'", + "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "integrationMessengerId", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "sourceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "attributes", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "language", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sendError", - "entityType": "columns", - "schema": "public", - "table": "Message" + "name": "category", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'POSITIONAL'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "parameterFormat", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessengerMessageTemplate", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'[]'", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "components", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26373,38 +25839,38 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26412,116 +25878,90 @@ "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "flowId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversationIds", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "integrationMessengerId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sinceTime", - "entityType": "columns", "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "timestamp(6) with time zone", + "table": "MessengerWelcomeMessageFlow", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "pageId", + "entityType": "columns" }, { - "type": "MessageCleanupStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "MessageCleanup" - }, - { - "type": "integer", + "table": "MessengerWelcomeMessageFlow", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "attempts", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "metaFlowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "flowVersionId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MessengerWelcomeMessageFlow", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'current'", "generated": null, "identity": null, - "name": "processedAt", - "entityType": "columns", - "schema": "public", - "table": "MessageCleanup" + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26530,11 +25970,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26543,11 +25983,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26556,11 +25996,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26569,115 +26009,128 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { - "type": "messagingAdChannel", - "typeSchema": "public", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "integrationId", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", + "name": "contactInboxId", + "entityType": "columns" + }, + { "schema": "public", - "table": "MessagingAdOperation" + "table": "MetaCapiEvent", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "eventName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "currency", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "adAccountId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentCategory", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentName", + "entityType": "columns" }, { - "type": "messagingAdCreateState", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "MetaCapiEvent", + "type": "numeric", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "createState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "value", + "entityType": "columns" }, { - "type": "messagingAdPublishState", - "typeSchema": "public", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'draft'", + "default": "'business_messaging'", "generated": null, "identity": null, - "name": "publishState", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "actionSource", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, "notNull": false, @@ -26685,103 +26138,103 @@ "default": null, "generated": null, "identity": null, - "name": "metaCampaignId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentType", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCapiEvent", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaAdSetId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "contentIds", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaAdCreativeId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "source", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaAdId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "sourceKey", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MetaCapiEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "input", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "occurredAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCapiEvent", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'pending'", "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "capiStatus", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCapiEvent", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cleanupError", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "capiSentAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCapiEvent", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdOperation" + "name": "capiError", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26790,11 +26243,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26803,11 +26256,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26816,11 +26269,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogItem", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26828,90 +26281,90 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "integrationMetaCatalogId", + "entityType": "columns" }, { - "type": "messagingAdChannel", - "typeSchema": "public", + "schema": "public", + "table": "MetaCatalogItem", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "productId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogItem", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "catalogId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "MetaCatalogItem", + "type": "metaCatalogItemDirection", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'push'", "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "direction", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogItem", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationInstagramId", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "retailerId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MetaCatalogItem", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "auth", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "lastSyncedFingerprint", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogItem", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'active'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessagingAdsConnection" + "name": "lastSyncedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26920,11 +26373,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26933,11 +26386,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -26946,24 +26399,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "bigint", "typeSchema": null, "notNull": true, @@ -26971,77 +26424,90 @@ "default": null, "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "integrationMetaCatalogId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "metaCatalogSyncStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'queued'", "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "status", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "metaCatalogItemDirection", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'push'", "generated": null, "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "direction", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "category", - "entityType": "columns", + "name": "catalogId", + "entityType": "columns" + }, + { "schema": "public", - "table": "MessengerMessageTemplate" + "table": "MetaCatalogSyncRun", + "type": "metaCatalogSyncScope", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "categoryId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'POSITIONAL'", + "default": "'[]'", "generated": null, "identity": null, - "name": "parameterFormat", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "selectedProductIds", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "jsonb", "typeSchema": null, "notNull": true, @@ -27049,142 +26515,155 @@ "default": "'[]'", "generated": null, "identity": null, - "name": "components", - "entityType": "columns", - "schema": "public", - "table": "MessengerMessageTemplate" + "name": "handles", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "submissionLeaseId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "totalCount", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "succeededCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "failedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "skippedCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "integrationMessengerId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "itemErrors", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "pageId", - "entityType": "columns", + "name": "skippedItems", + "entityType": "columns" + }, + { "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "table": "MetaCatalogSyncRun", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "pollAttempt", + "entityType": "columns" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "metaFlowId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "error", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowVersionId", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "startedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MetaCatalogSyncRun", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "'current'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "name": "finishedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27193,11 +26672,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27206,11 +26685,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27219,11 +26698,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27232,11 +26711,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniApp", "type": "text", "typeSchema": null, "notNull": true, @@ -27244,142 +26723,142 @@ "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MiniApp", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "enabled", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MiniApp", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "definition", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniApp", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "eventName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "flowJson", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniApp", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "submissionsCount", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentCategory", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "contentName", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "createdAt", + "entityType": "columns" }, { - "type": "numeric", + "schema": "public", + "table": "MiniAppPublication", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'business_messaging'", + "default": null, "generated": null, "identity": null, - "name": "actionSource", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "miniAppId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentType", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MiniAppPublication", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contentIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "whatsappFlowId", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppPublication", "type": "text", "typeSchema": null, "notNull": true, @@ -27387,12 +26866,12 @@ "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "sourceId", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppPublication", "type": "text", "typeSchema": null, "notNull": true, @@ -27400,38 +26879,25 @@ "default": null, "generated": null, "identity": null, - "name": "sourceKey", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MiniAppPublication", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "validationErrors", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "capiStatus", - "entityType": "columns", "schema": "public", - "table": "MetaCapiEvent" - }, - { + "table": "MiniAppPublication", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -27439,25 +26905,12 @@ "default": null, "generated": null, "identity": null, - "name": "capiSentAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCapiEvent" + "name": "publishedAt", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "capiError", - "entityType": "columns", "schema": "public", - "table": "MetaCapiEvent" - }, - { + "table": "MiniAppSubmission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27466,11 +26919,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27479,11 +26932,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27492,11 +26945,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27504,12 +26957,12 @@ "default": null, "generated": null, "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppSubmission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27517,90 +26970,64 @@ "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "miniAppId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppSubmission", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "contactId", + "entityType": "columns" }, { - "type": "metaCatalogItemDirection", + "schema": "public", + "table": "MiniAppSubmission", + "type": "miniAppSubmissionSource", "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "'push'", + "default": null, "generated": null, "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "source", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppSubmission", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "answers", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppUpload", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastSyncedFingerprint", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" + "name": "id", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "lastSyncedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogItem" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { + "table": "MiniAppUpload", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27609,11 +27036,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -27622,11 +27049,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27635,11 +27062,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "bigint", "typeSchema": null, "notNull": true, @@ -27647,350 +27074,337 @@ "default": null, "generated": null, "identity": null, - "name": "integrationMetaCatalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "miniAppId", + "entityType": "columns" }, { - "type": "metaCatalogSyncStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'queued'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "MetaCatalogSyncRun" - }, - { - "type": "metaCatalogItemDirection", - "typeSchema": "public", - "notNull": true, + "table": "MiniAppUpload", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'push'", + "default": null, "generated": null, "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "contactId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MiniAppUpload", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "catalogId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "submissionId", + "entityType": "columns" }, { - "type": "metaCatalogSyncScope", - "typeSchema": "public", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'all'", + "default": null, "generated": null, "identity": null, - "name": "scope", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "inputName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "uploadToken", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "selectedProductIds", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "path", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MiniAppUpload", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "handles", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "fileName", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "submissionLeaseId", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "mimeType", + "entityType": "columns" }, { + "schema": "public", + "table": "MiniAppUpload", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "size", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "MiniAppUpload", + "type": "miniAppUploadStatus", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "succeededCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "status", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Minigame", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "failedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Minigame", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "skippedCount", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "now()", "generated": null, "identity": null, - "name": "itemErrors", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "skippedItems", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Minigame", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "pollAttempt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "name", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "Minigame", + "type": "minigameType", + "typeSchema": "public", + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "error", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "type", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "enabled", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "finishedAt", - "entityType": "columns", - "schema": "public", - "table": "MetaCatalogSyncRun" + "name": "generalSettings", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "appearance", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "playerSettings", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "prizeSettings", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "winningMessageSettings", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Minigame", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "nonWinningMessageSettings", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Minigame", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "0", "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "playsCount", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "definition", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "participantsCount", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Minigame", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "flowJson", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "winnersCount", + "entityType": "columns" }, { + "schema": "public", + "table": "Minigame", "type": "integer", "typeSchema": null, "notNull": true, @@ -27998,12 +27412,12 @@ "default": "0", "generated": null, "identity": null, - "name": "submissionsCount", - "entityType": "columns", - "schema": "public", - "table": "MiniApp" + "name": "sharesCount", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28012,11 +27426,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28025,11 +27439,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28038,11 +27452,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28050,12 +27464,12 @@ "default": null, "generated": null, "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "minigameId", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigameContact", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28063,77 +27477,90 @@ "default": null, "generated": null, "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "contactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MinigameContact", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "whatsappFlowId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "openedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MinigameContact", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "played", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "MinigameContact", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "remaining", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MinigameContact", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "validationErrors", - "entityType": "columns", - "schema": "public", - "table": "MiniAppPublication" + "name": "sharesCount", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "MinigameContact", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "publishedAt", - "entityType": "columns", + "name": "referrerContactId", + "entityType": "columns" + }, + { "schema": "public", - "table": "MiniAppPublication" + "table": "MinigameContact", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28142,11 +27569,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28155,11 +27582,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28168,11 +27595,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28180,12 +27607,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "minigameId", + "entityType": "columns" }, { + "schema": "public", + "table": "MinigamePlay", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28193,51 +27620,51 @@ "default": null, "generated": null, "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "contactId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "MinigamePlay", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "isWinning", + "entityType": "columns" }, { - "type": "miniAppSubmissionSource", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "MinigamePlay", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "prizeId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "MinigamePlay", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "answers", - "entityType": "columns", - "schema": "public", - "table": "MiniAppSubmission" + "name": "prizeName", + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28246,11 +27673,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28259,11 +27686,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28272,154 +27699,128 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "entityType": "columns" }, { + "schema": "public", + "table": "PlatformCredential", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "userId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformCredential", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "miniAppId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "type", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformCredential", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "publicConfig", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "PlatformCredential", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "submissionId", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "value", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformCredential", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "inputName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "livemode", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformCredential", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "uploadToken", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "usePlatformCredential", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "path", - "entityType": "columns", "schema": "public", - "table": "MiniAppUpload" - }, - { - "type": "text", + "table": "PlatformCredential", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "fileName", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "isVerified", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "PlatformCredential", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "mimeType", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "verifiedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "PlatformCredential", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "size", - "entityType": "columns", - "schema": "public", - "table": "MiniAppUpload" + "name": "lastUsedAt", + "entityType": "columns" }, { - "type": "miniAppUploadStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "MiniAppUpload" - }, - { + "table": "Product", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28428,11 +27829,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28441,11 +27842,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28454,24 +27855,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "Minigame" - }, - { + "table": "Product", "type": "text", "typeSchema": null, "notNull": true, @@ -28480,141 +27868,128 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "entityType": "columns" }, { - "type": "minigameType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "type", - "entityType": "columns", "schema": "public", - "table": "Minigame" - }, - { - "type": "boolean", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "shortDescription", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "generalSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "longDescription", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "double precision", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "appearance", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "price", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "double precision", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "playerSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "taxes", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "double precision", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "prizeSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "discount", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'USD'", "generated": null, "identity": null, - "name": "winningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "currency", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nonWinningMessageSettings", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "productUrl", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "playsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "sku", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "Product", + "type": "inventoryPolicy", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": "'dont_track'", "generated": null, "identity": null, - "name": "participantsCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "inventoryPolicy", + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "integer", "typeSchema": null, "notNull": true, @@ -28622,168 +27997,155 @@ "default": "0", "generated": null, "identity": null, - "name": "winnersCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "inventoryQuantity", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "false", "generated": null, "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "Minigame" + "name": "allowOutOfStockPurchase", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Product", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "images", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Product", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "'[]'", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "tags", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Product", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "10", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "rank", + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "categoryId", + "entityType": "columns" }, { + "schema": "public", + "table": "Product", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "subcategoryId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "openedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "isActive", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "true", "generated": null, "identity": null, - "name": "played", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "isSearchable", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "false", "generated": null, "identity": null, - "name": "remaining", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "allowSpecialRequest", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Product", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "false", "generated": null, "identity": null, - "name": "sharesCount", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "isAddonOnly", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "referrerContactId", - "entityType": "columns", "schema": "public", - "table": "MinigameContact" - }, - { + "table": "Product", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "MinigameContact" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28792,11 +28154,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28805,11 +28167,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28818,11 +28180,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductAddon", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28830,64 +28192,51 @@ "default": null, "generated": null, "identity": null, - "name": "minigameId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "productId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductAddon", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "''", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "name", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "ProductAddon", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "1", "generated": null, "identity": null, - "name": "isWinning", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "maxSelections", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "prizeId", - "entityType": "columns", "schema": "public", - "table": "MinigamePlay" - }, - { - "type": "text", + "table": "ProductAddon", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "prizeName", - "entityType": "columns", - "schema": "public", - "table": "MinigamePlay" + "name": "addonProductIds", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28896,11 +28245,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28909,11 +28258,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -28922,11 +28271,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -28935,63 +28284,50 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductCategory", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "name": "parentId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductCategory", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", "schema": "public", - "table": "DiscountCodeRedemption" - }, - { - "type": "numeric(19,4)", + "table": "ProductCategory", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "10", "generated": null, "identity": null, - "name": "amount", - "entityType": "columns", - "schema": "public", - "table": "DiscountCodeRedemption" + "name": "rank", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29000,11 +28336,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29013,11 +28349,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29026,11 +28362,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariant", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29038,272 +28374,311 @@ "default": null, "generated": null, "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "productId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariant", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "combination", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariant", + "type": "double precision", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "price", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariant", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "variantId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "isEnabled", + "entityType": "columns" }, { + "schema": "public", + "table": "ProductVariantOption", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "vendorId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "ProductVariantOption", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "variantLabel", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "productId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "ProductVariantOption", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "values", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ProductVariantOption", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "10", "generated": null, "identity": null, - "name": "retailerId", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "position", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "vendorName", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "OrderItem" + "table": "QuestionnaireAnswer", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "unitPrice", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "submissionId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "quantity", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "stockTaken", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionIdSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionTitleSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "taxPercent", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "questionTypeSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "OrderItem" + "name": "labelSnapshot", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "taxTotal", - "entityType": "columns", + "name": "value", + "entityType": "columns" + }, + { "schema": "public", - "table": "OrderItem" + "table": "QuestionnaireAnswer", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pointsEarned", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireAnswer", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "1", "generated": null, "identity": null, - "name": "lineTotal", - "entityType": "columns", + "name": "attemptCount", + "entityType": "columns" + }, + { "schema": "public", - "table": "OrderItem" + "table": "QuestionnaireAnswer", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "answeredAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29312,11 +28687,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Order" + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29325,11 +28700,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29338,76 +28713,76 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "number", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "enableScore", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "enableRetryMessages", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "enableCustomFieldMapping", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Questionnaire", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "deletedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Questionnaire", "type": "bigint", "typeSchema": null, "notNull": false, @@ -29415,181 +28790,168 @@ "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "triggerFlowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Questionnaire", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "channel", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "orderSource", - "typeSchema": "public", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "source", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "id", + "entityType": "columns" }, { - "type": "orderStatus", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'pending'", - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "Order" - }, - { - "type": "paymentMethod", - "typeSchema": "public", + "table": "QuestionnaireQuestion", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'cod'", + "default": "now()", "generated": null, "identity": null, - "name": "paymentMethod", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "createdAt", + "entityType": "columns" }, { - "type": "paymentStatus", - "typeSchema": "public", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "timestamp(6) with time zone", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'unpaid'", + "default": "now()", "generated": null, "identity": null, - "name": "paymentStatus", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "questionnaireId", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "subtotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "title", + "entityType": "columns" }, { - "type": "numeric(19,4)", - "typeSchema": null, + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "questionnaireQuestionType", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "discountTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "type", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "shippingTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "active", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "serviceFeeTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "image", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "taxTotal", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "orderNo", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "1", "generated": null, "identity": null, - "name": "couponDiscount", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "point", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "total", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "retryMessage", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "type": "bigint", "typeSchema": null, "notNull": false, @@ -29597,12 +28959,12 @@ "default": null, "generated": null, "identity": null, - "name": "discountCodeId", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "customFieldId", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "type": "text", "typeSchema": null, "notNull": false, @@ -29610,194 +28972,194 @@ "default": null, "generated": null, "identity": null, - "name": "discountCode", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "systemFieldKey", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerName", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "config", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireQuestion", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerEmail", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "deletedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customerPhone", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "id", + "entityType": "columns" }, { - "type": "shippingType", - "typeSchema": "public", - "notNull": false, + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "shippingType", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "shippingAddress", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "rating", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "questionnaireId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "ratingComment", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "contactId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "acceptedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "conversationId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "questionnaireSubmissionStatus", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'inProgress'", "generated": null, "identity": null, - "name": "shippedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "status", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "concludedAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "totalPoints", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "currentQuestionId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "cancelReason", - "entityType": "columns", - "schema": "public", - "table": "Order" + "name": "currentQuestionSentAt", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "lastAnsweredMessageId", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29805,38 +29167,38 @@ "default": "now()", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "startedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "completedAt", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "QuestionnaireSubmission", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "orderId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "cancelledAt", + "entityType": "columns" }, { + "schema": "public", + "table": "RefLinkStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29845,76 +29207,76 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "entityType": "columns" }, { - "type": "orderStatus", - "typeSchema": "public", - "notNull": false, + "schema": "public", + "table": "RefLinkStat", + "type": "bigint", + "typeSchema": null, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "fromStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "linkId", + "entityType": "columns" }, { - "type": "orderStatus", - "typeSchema": "public", + "schema": "public", + "table": "RefLinkStat", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "toStatus", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "contactId", + "entityType": "columns" }, { - "type": "orderActorType", - "typeSchema": "public", + "schema": "public", + "table": "RefLinkStat", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actorType", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "RefLinkStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "actorUserId", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "occurredAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "RefLinkStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "note", - "entityType": "columns", - "schema": "public", - "table": "OrderStatusHistory" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "bigint", "typeSchema": null, "notNull": true, @@ -29923,11 +29285,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29936,11 +29298,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -29949,128 +29311,167 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", + "name": "name", + "entityType": "columns" + }, + { "schema": "public", - "table": "PlatformCredential" + "table": "Reflink", + "type": "ReflinkType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'refLink'", + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Reflink", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "flowId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Reflink", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "publicConfig", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "PlatformCredential" + "table": "Reflink", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customFieldId", + "entityType": "columns" }, { + "schema": "public", + "table": "Reflink", "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "qrStyles", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": "false", + "dimensions": 1, + "default": "ARRAY[]", "generated": null, "identity": null, - "name": "livemode", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetAuthorizedDomains", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": "false", + "dimensions": 1, + "default": "ARRAY[]", "generated": null, "identity": null, - "name": "usePlatformCredential", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetHiddenInboxIds", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Reflink", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "isVerified", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetLogoFileId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "verifiedAt", - "entityType": "columns", - "schema": "public", - "table": "PlatformCredential" + "name": "widgetBrandName", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Reflink", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastUsedAt", - "entityType": "columns", + "name": "widgetBrandUrl", + "entityType": "columns" + }, + { "schema": "public", - "table": "PlatformCredential" + "table": "Reflink", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widgetLogoBackgroundColor", + "entityType": "columns" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30079,11 +29480,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30092,11 +29493,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30105,258 +29506,310 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", + "name": "workspaceId", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "ResponseSlaPolicy", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "firstResponseTargetSeconds", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "longDescription", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "nextResponseTargetSeconds", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "ResponseSlaPolicy", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "25", "generated": null, "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "breachingThresholdPercent", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "SavedReply", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "taxes", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "id", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "SavedReply", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "discount", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SavedReply", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'USD'", + "default": "now()", "generated": null, "identity": null, - "name": "currency", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReply", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "productUrl", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "shortcut", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReply", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sku", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "text", + "entityType": "columns" }, { - "type": "inventoryPolicy", - "typeSchema": "public", + "schema": "public", + "table": "SavedReply", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'dont_track'", + "default": null, "generated": null, "identity": null, - "name": "inventoryPolicy", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SavedReplyImage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "inventoryQuantity", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "SavedReplyImage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "allowOutOfStockPurchase", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "createdAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SavedReplyImage", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "now()", "generated": null, "identity": null, - "name": "images", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SavedReplyImage", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "tags", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "savedReplyId", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReplyImage", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "vendorId", - "entityType": "columns", + "name": "mediaLibraryFileId", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "SavedReplyImage", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "SavedReplyImage", "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "position", + "entityType": "columns" }, { + "schema": "public", + "table": "Sequence", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Sequence", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "subcategoryId", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "Sequence", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Sequence", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", + "name": "name", + "entityType": "columns" + }, + { "schema": "public", - "table": "Product" + "table": "Sequence", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "folderId", + "entityType": "columns" }, { + "schema": "public", + "table": "Sequence", "type": "boolean", "typeSchema": null, "notNull": true, @@ -30364,38 +29817,38 @@ "default": "true", "generated": null, "identity": null, - "name": "isSearchable", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "active", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Sequence", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "0", "generated": null, "identity": null, - "name": "allowSpecialRequest", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "subscribers", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Sequence", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "0", "generated": null, "identity": null, - "name": "isAddonOnly", - "entityType": "columns", - "schema": "public", - "table": "Product" + "name": "messages", + "entityType": "columns" }, { + "schema": "public", + "table": "Sequence", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30404,11 +29857,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Product" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30417,11 +29870,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30430,11 +29883,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30443,11 +29896,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30455,168 +29908,181 @@ "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "runAtMs", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceDispatch", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "''", + "default": "0", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "bucket", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SequenceDispatch", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "1", + "default": "'pending'", "generated": null, "identity": null, - "name": "maxSelections", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "status", + "entityType": "columns" }, { - "type": "jsonb", - "typeSchema": null, + "schema": "public", + "table": "SequenceDispatch", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": null, "generated": null, "identity": null, - "name": "addonProductIds", - "entityType": "columns", - "schema": "public", - "table": "ProductAddon" + "name": "idempotencyKey", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceDispatch", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "attempt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceDispatch", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "lastError", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "lockedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceDispatch", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "lockOwner", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "parentId", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "completedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "deliveredAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "seenAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "isVisible", - "entityType": "columns", - "schema": "public", - "table": "ProductCategory" + "name": "clickedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SequenceDispatch", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "rank", - "entityType": "columns", + "name": "failedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "ProductCategory" + "table": "SequenceDispatch", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "errorContent", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30624,38 +30090,38 @@ "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "sequenceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30663,51 +30129,54 @@ "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "combination", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "stepId", + "entityType": "columns" }, { - "type": "double precision", + "schema": "public", + "table": "SequenceDispatch", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "price", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "enrollmentId", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceDispatch", "type": "boolean", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "true", - "generated": null, + "default": null, + "generated": { + "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", + "type": "stored" + }, "identity": null, - "name": "isEnabled", - "entityType": "columns", - "schema": "public", - "table": "ProductVariant" + "name": "isRead", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30716,11 +30185,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30729,11 +30198,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30742,232 +30211,258 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceStep", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "productId", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "order", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceStep", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "delayDays", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "SequenceStep", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "0", "generated": null, "identity": null, - "name": "values", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "delayMinutes", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "SequenceStep", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "position", - "entityType": "columns", - "schema": "public", - "table": "ProductVariantOption" + "name": "delayUnit", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceStep", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "specificDateTime", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceStep", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "isActive", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "SequenceStep", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", + "name": "anytime", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireAnswer" + "table": "SequenceStep", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sendTimeStart", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "SequenceStep", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "submissionId", - "entityType": "columns", + "name": "sendTimeEnd", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireAnswer" + "table": "SequenceStep", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "generated": null, + "identity": null, + "name": "sendDays", + "entityType": "columns" }, { + "schema": "public", + "table": "SequenceStep", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "questionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "flowId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SequenceStep", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "questionIdSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "sequenceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Spreadsheet", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "questionTitleSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Spreadsheet", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "questionTypeSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Spreadsheet", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "labelSnapshot", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Spreadsheet", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Spreadsheet", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "pointsEarned", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "name", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Spreadsheet", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "1", + "default": null, "generated": null, "identity": null, - "name": "attemptCount", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "url", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Spreadsheet", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "answeredAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireAnswer" + "name": "spreadsheetId", + "entityType": "columns" }, { + "schema": "public", + "table": "SystemField", "type": "bigint", "typeSchema": null, "notNull": true, @@ -30976,11 +30471,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "SystemField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -30989,11 +30484,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "SystemField", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31002,63 +30497,89 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", + "entityType": "columns" + }, + { "schema": "public", - "table": "Questionnaire" + "table": "SystemField", + "type": "SystemFieldType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "SystemField", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "payload", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tag", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "enableScore", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tag", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "now()", "generated": null, "identity": null, - "name": "enableRetryMessages", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "createdAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Tag", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "now()", "generated": null, "identity": null, - "name": "enableCustomFieldMapping", - "entityType": "columns", + "name": "updatedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "Questionnaire" + "table": "Tag", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "Tag", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -31067,11 +30588,11 @@ "generated": null, "identity": null, "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "Tag", "type": "bigint", "typeSchema": null, "notNull": false, @@ -31079,12 +30600,12 @@ "default": null, "generated": null, "identity": null, - "name": "triggerFlowId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "name": "folderId", + "entityType": "columns" }, { + "schema": "public", + "table": "Tag", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31093,11 +30614,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Questionnaire" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31106,11 +30627,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31119,11 +30640,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31132,11 +30653,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "entityType": "columns" }, { + "schema": "public", + "table": "TagChannel", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31144,155 +30665,181 @@ "default": null, "generated": null, "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TagChannel", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "tagId", + "entityType": "columns" }, { - "type": "questionnaireQuestionType", - "typeSchema": "public", + "schema": "public", + "table": "TagChannel", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "channelType", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TagChannel", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "integrationId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "TagChannel", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "image", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "externalLabelId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TelegramChat", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "orderNo", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "id", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TelegramChat", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "1", + "default": "now()", "generated": null, "identity": null, - "name": "point", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireQuestion" + "table": "TelegramChat", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TelegramChat", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "retryMessage", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "TelegramChat", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customFieldId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "TelegramChat", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "systemFieldKey", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "chatId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "TelegramChat", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "config", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireQuestion" + "name": "title", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "TelegramChat", + "type": "telegramChatType", + "typeSchema": "public", + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", + "name": "type", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireQuestion" + "table": "TelegramChat", + "type": "telegramBotChatStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "botStatus", + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31301,11 +30848,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31314,11 +30861,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31327,11 +30874,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31340,11 +30887,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31352,129 +30899,168 @@ "default": null, "generated": null, "identity": null, - "name": "questionnaireId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "tenantId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "conversationId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "description", + "entityType": "columns" }, { - "type": "questionnaireSubmissionStatus", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "Template", + "type": "text", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'inProgress'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "imageUrl", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "totalPoints", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "publisherName", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currentQuestionId", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "youtubeVideoId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "currentQuestionSentAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "testLink", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastAnsweredMessageId", - "entityType": "columns", + "name": "selection", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireSubmission" + "table": "Template", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "startedAt", - "entityType": "columns", + "name": "categoryCounts", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireSubmission" + "table": "Template", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "formatVersion", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", + "name": "shareToken", + "entityType": "columns" + }, + { "schema": "public", - "table": "QuestionnaireSubmission" + "table": "Template", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "shareEnabled", + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -31482,90 +31068,90 @@ "default": null, "generated": null, "identity": null, - "name": "cancelledAt", - "entityType": "columns", - "schema": "public", - "table": "QuestionnaireSubmission" + "name": "shareExpiresAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "defaultPermissions", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "linkId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "createInstallFolder", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "defaultAutoUpdate", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Template", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "installCount", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "Template", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "occurredAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "createdBy", + "entityType": "columns" }, { + "schema": "public", + "table": "Template", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "RefLinkStat" + "name": "deletedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31574,11 +31160,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31587,11 +31173,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31600,50 +31186,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "ReflinkType", - "typeSchema": "public", - "notNull": true, + "schema": "public", + "table": "TemplateInstallation", + "type": "bigint", + "typeSchema": null, + "notNull": false, "dimensions": 0, - "default": "'refLink'", + "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "templateId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TemplateInstallation", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "templateName", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31651,64 +31237,103 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "sourceWorkspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TemplateInstallation", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "customFieldId", - "entityType": "columns", + "name": "formatVersion", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "templateInstallationStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "qrStyles", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "permissions", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", + "dimensions": 0, + "default": "'[]'", "generated": null, "identity": null, - "name": "widgetAuthorizedDomains", - "entityType": "columns", + "name": "warnings", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "warningCount", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "text", "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "ARRAY[]", + "notNull": false, + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "widgetHiddenInboxIds", - "entityType": "columns", + "name": "errorMessage", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "resourceCount", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstallation", "type": "bigint", "typeSchema": null, "notNull": false, @@ -31716,51 +31341,64 @@ "default": null, "generated": null, "identity": null, - "name": "widgetLogoFileId", - "entityType": "columns", + "name": "installFolderId", + "entityType": "columns" + }, + { "schema": "public", - "table": "Reflink" + "table": "TemplateInstallation", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoUpdate", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "widgetBrandName", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "sourceUpdatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "widgetBrandUrl", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "installedBy", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TemplateInstallation", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "widgetLogoBackgroundColor", - "entityType": "columns", - "schema": "public", - "table": "Reflink" + "name": "completedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31769,11 +31407,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31782,11 +31420,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -31795,11 +31433,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "entityType": "columns" }, { + "schema": "public", + "table": "TemplateInstalledResource", "type": "bigint", "typeSchema": null, "notNull": true, @@ -31807,207 +31445,181 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "installationId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "enabled", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "TemplateInstalledResource", + "type": "templateResourceCategory", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "firstResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "category", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "nextResponseTargetSeconds", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "resourceKind", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "25", + "default": null, "generated": null, "identity": null, - "name": "breachingThresholdPercent", - "entityType": "columns", - "schema": "public", - "table": "ResponseSlaPolicy" + "name": "resourceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "sourceResourceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TemplateInstalledResource", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "wasExisting", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "SavedReply" - }, - { - "type": "text", + "table": "Trigger", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shortcut", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Trigger", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "text", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "createdAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Trigger", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReply" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Trigger", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "name", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "SavedReplyImage" - }, - { - "type": "timestamp(6) with time zone", + "table": "Trigger", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "true", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "active", + "entityType": "columns" }, { + "schema": "public", + "table": "Trigger", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "savedReplyId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "folderId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Trigger", + "type": "jsonb", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "", "generated": null, "identity": null, - "name": "mediaLibraryFileId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "name": "actions", + "entityType": "columns" }, { + "schema": "public", + "table": "Trigger", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32016,24 +31628,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SavedReplyImage" + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "position", - "entityType": "columns", "schema": "public", - "table": "SavedReplyImage" - }, - { + "table": "Condition", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32042,11 +31641,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "entityType": "columns" }, { + "schema": "public", + "table": "Condition", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32055,11 +31654,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "entityType": "columns" }, { + "schema": "public", + "table": "Condition", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32068,24 +31667,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Condition", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "triggerId", + "entityType": "columns" }, { + "schema": "public", + "table": "Condition", "type": "bigint", "typeSchema": null, "notNull": false, @@ -32093,64 +31692,64 @@ "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "webhookId", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Condition", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "type", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Condition", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "subscribers", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "sourceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Condition", + "type": "varchar(255)", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "messages", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "operator", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Condition", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Sequence" + "name": "value", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32159,11 +31758,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32172,11 +31771,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32185,11 +31784,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerContactHistory", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32197,181 +31796,181 @@ "default": null, "generated": null, "identity": null, - "name": "runAtMs", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "triggerId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TriggerContactHistory", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "bucket", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "contactId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerContactHistory", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerContactHistory", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "idempotencyKey", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "firstEnteredAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "attempt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "id", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerExecution", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "createdAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerExecution", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "lockedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerExecution", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "lockOwner", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "executedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "triggerId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deliveredAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "contactId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "seenAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "TriggerStat", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "clickedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "id", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerStat", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "failedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "TriggerStat", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "errorContent", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32379,12 +31978,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "triggerId", + "entityType": "columns" }, { + "schema": "public", + "table": "TriggerStat", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32392,80 +31991,77 @@ "default": null, "generated": null, "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "date", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "contactInboxId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "totalContacts", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "stepId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "successCount", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "0", "generated": null, "identity": null, - "name": "enrollmentId", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "failureCount", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "TriggerStat", + "type": "integer", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, - "generated": { - "as": "case when \"seenAt\" is null then false when \"deliveredAt\" is null then false else \"seenAt\" >= \"deliveredAt\" end", - "type": "stored" - }, + "default": "0", + "generated": null, "identity": null, - "name": "isRead", - "entityType": "columns", - "schema": "public", - "table": "SequenceDispatch" + "name": "totalExecutions", + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32474,11 +32070,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32487,11 +32083,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32500,154 +32096,154 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "UserDeviceToken", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "order", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "userId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "UserDeviceToken", + "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "delayDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, + "schema": "public", + "table": "UserDeviceToken", + "type": "devicePlatform", + "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "delayMinutes", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "platform", + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "delayUnit", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "token", + "entityType": "columns" }, { + "schema": "public", + "table": "UserDeviceToken", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "specificDateTime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "lastSeenAt", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "UserPersistentMenu", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "id", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "UserPersistentMenu", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "now()", "generated": null, "identity": null, - "name": "anytime", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserPersistentMenu", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "sendTimeStart", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "UserPersistentMenu", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sendTimeEnd", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "name", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "UserPersistentMenu", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": "'[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]'", + "default": "", "generated": null, "identity": null, - "name": "sendDays", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "menus", + "entityType": "columns" }, { + "schema": "public", + "table": "UserPersistentMenu", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "flowId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "Webhook", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32655,25 +32251,12 @@ "default": null, "generated": null, "identity": null, - "name": "sequenceId", - "entityType": "columns", - "schema": "public", - "table": "SequenceStep" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "Spreadsheet" - }, - { + "table": "Webhook", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32682,11 +32265,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "entityType": "columns" }, { + "schema": "public", + "table": "Webhook", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32695,24 +32278,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "Spreadsheet" - }, - { + "table": "Webhook", "type": "text", "typeSchema": null, "notNull": true, @@ -32721,102 +32291,63 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "url", - "entityType": "columns", "schema": "public", - "table": "Spreadsheet" - }, - { - "type": "text", + "table": "Webhook", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "spreadsheetId", - "entityType": "columns", - "schema": "public", - "table": "Spreadsheet" + "name": "active", + "entityType": "columns" }, { + "schema": "public", + "table": "Webhook", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "SystemField" + "name": "folderId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "SystemField" - }, - { - "type": "timestamp(6) with time zone", + "table": "Webhook", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "SystemField" - }, - { - "type": "SystemFieldType", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "SystemField" + "name": "url", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "Webhook", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "SystemField" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32825,11 +32356,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32838,11 +32369,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32851,50 +32382,50 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WebhookExecution", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "name": "executedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WebhookExecution", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "name": "webhookId", + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "name": "contactId", + "entityType": "columns" }, { + "schema": "public", + "table": "WebhookExecution", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32903,11 +32434,11 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Tag" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32916,11 +32447,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32929,11 +32460,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -32942,11 +32473,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "bigint", "typeSchema": null, "notNull": true, @@ -32955,24 +32486,24 @@ "generated": null, "identity": null, "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tagId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "wabaId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "text", "typeSchema": null, "notNull": true, @@ -32980,77 +32511,90 @@ "default": null, "generated": null, "identity": null, - "name": "channelType", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "businessId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "integrationId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "credential", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "'{}'", "generated": null, "identity": null, - "name": "externalLabelId", - "entityType": "columns", - "schema": "public", - "table": "TagChannel" + "name": "grantedScopes", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "scopeCheckedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", + "name": "provisionedAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "TelegramChat" + "table": "WhatsappBusinessAccount", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "creditLineId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappBusinessAccount", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "0", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "revision", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33058,38 +32602,51 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "id", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "inboxId", - "entityType": "columns", + "name": "createdAt", + "entityType": "columns" + }, + { "schema": "public", - "table": "TelegramChat" + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "chatId", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "wacid", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, "notNull": false, @@ -33097,155 +32654,155 @@ "default": null, "generated": null, "identity": null, - "name": "title", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "attemptId", + "entityType": "columns" }, { - "type": "telegramChatType", + "schema": "public", + "table": "WhatsappCall", + "type": "whatsappCallDirection", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "direction", + "entityType": "columns" }, { - "type": "telegramBotChatStatus", + "schema": "public", + "table": "WhatsappCall", + "type": "whatsappCallStatus", "typeSchema": "public", "notNull": true, "dimensions": 0, - "default": null, + "default": "'ringing'", "generated": null, "identity": null, - "name": "botStatus", - "entityType": "columns", - "schema": "public", - "table": "TelegramChat" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, + "schema": "public", + "table": "WhatsappCall", + "type": "whatsappCallOutcome", + "typeSchema": "public", + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "outcome", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "startedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "endedAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCall", + "type": "integer", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "durationSeconds", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "tenantId", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "messageId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "lastError", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "description", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "answeredByUserId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "initiatedByUserId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "boolean", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "publisherName", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordingRequested", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, "notNull": false, @@ -33253,12 +32810,12 @@ "default": null, "generated": null, "identity": null, - "name": "youtubeVideoId", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordingFailureReason", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "text", "typeSchema": null, "notNull": false, @@ -33266,90 +32823,77 @@ "default": null, "generated": null, "identity": null, - "name": "testLink", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordingPath", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "selection", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "recordedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "payload", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "transcript", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "categoryCounts", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "transcribedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCall", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "transcriptSegments", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCall", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "shareToken", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "aiSummary", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "shareEnabled", - "entityType": "columns", "schema": "public", - "table": "Template" - }, - { + "table": "WhatsappCall", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -33357,90 +32901,77 @@ "default": null, "generated": null, "identity": null, - "name": "shareExpiresAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "aiSummarizedAt", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCall", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "defaultPermissions", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "aiSummaryProvider", + "entityType": "columns" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "createInstallFolder", - "entityType": "columns", "schema": "public", - "table": "Template" - }, - { - "type": "boolean", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "defaultAutoUpdate", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "installCount", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "inboxId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCall", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "createdBy", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappCall", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "deletedAt", - "entityType": "columns", - "schema": "public", - "table": "Template" + "name": "conversationId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCallPermission", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33449,11 +32980,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCallPermission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33462,11 +32993,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCallPermission", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33475,180 +33006,167 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "WhatsappCallPermission", + "type": "whatsappCallPermissionResponse", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "response", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "false", "generated": null, "identity": null, - "name": "templateId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "isPermanent", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "templateName", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "expiresAt", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "sourceWorkspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "respondedAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "formatVersion", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "templateInstallationStatus", - "typeSchema": "public", + "schema": "public", + "table": "WhatsappCallPermission", + "type": "bigint", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'pending'", + "default": null, "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "contactInboxId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "permissions", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'[]'", + "default": "now()", "generated": null, "identity": null, - "name": "warnings", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "createdAt", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": "now()", "generated": null, "identity": null, - "name": "warningCount", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "updatedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "errorMessage", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "phoneNumberId", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "resourceCount", - "entityType": "columns", "schema": "public", - "table": "TemplateInstallation" - }, - { - "type": "bigint", + "table": "WhatsappCoexistStaging", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "installFolderId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "payload", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "WhatsappCoexistStaging", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": null, "generated": null, "identity": null, - "name": "autoUpdate", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "payloadHash", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -33656,25 +33174,12 @@ "default": null, "generated": null, "identity": null, - "name": "sourceUpdatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "processedAt", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "installedBy", - "entityType": "columns", "schema": "public", - "table": "TemplateInstallation" - }, - { + "table": "WhatsappCoexistStaging", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, @@ -33682,12 +33187,12 @@ "default": null, "generated": null, "identity": null, - "name": "completedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstallation" + "name": "parseFailedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33696,11 +33201,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33709,11 +33214,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33722,24 +33227,24 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappFlow", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "installationId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33747,25 +33252,25 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "templateResourceCategory", - "typeSchema": "public", + "schema": "public", + "table": "WhatsappFlow", + "type": "text", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "sourceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappFlow", "type": "text", "typeSchema": null, "notNull": true, @@ -33773,51 +33278,64 @@ "default": null, "generated": null, "identity": null, - "name": "resourceKind", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "status", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappFlow", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "resourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "categories", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappFlow", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "'[]'", "generated": null, "identity": null, - "name": "sourceResourceId", - "entityType": "columns", - "schema": "public", - "table": "TemplateInstalledResource" + "name": "validationErrors", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "WhatsappFlow", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "false", + "default": "0", "generated": null, "identity": null, - "name": "wasExisting", - "entityType": "columns", + "name": "completedCount", + "entityType": "columns" + }, + { "schema": "public", - "table": "TemplateInstalledResource" + "table": "WhatsappFlow", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "screens", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33826,11 +33344,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33839,11 +33357,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33852,11 +33370,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "type": "text", "typeSchema": null, "notNull": true, @@ -33865,63 +33383,89 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": null, "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "name": "integrationWhatsappId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Trigger" + "name": "sourceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "", + "dimensions": 0, + "default": null, "generated": null, "identity": null, - "name": "actions", - "entityType": "columns", + "name": "language", + "entityType": "columns" + }, + { "schema": "public", - "table": "Trigger" + "table": "WhatsappMessageTemplate", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappMessageTemplate", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", + "name": "status", + "entityType": "columns" + }, + { "schema": "public", - "table": "Trigger" + "table": "WhatsappMessageTemplate", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "components", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "bigint", "typeSchema": null, "notNull": true, @@ -33930,11 +33474,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33943,11 +33487,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -33956,180 +33500,154 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "triggerId", - "entityType": "columns", "schema": "public", - "table": "Condition" - }, - { + "table": "WhatsappSignupSession", "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "userId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "type", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "ownerId", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", "schema": "public", - "table": "Condition" - }, - { - "type": "varchar(255)", + "table": "WhatsappSignupSession", + "type": "bigint", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "operator", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "value", - "entityType": "columns", - "schema": "public", - "table": "Condition" + "name": "wabaId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "businessId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "encryptedAccessToken", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "apiVersion", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, + "dimensions": 1, "default": null, "generated": null, "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "candidatePhoneNumberIds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "text", "typeSchema": null, "notNull": true, - "dimensions": 0, - "default": null, + "dimensions": 1, + "default": "'{}'", "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "claimedPhoneNumberIds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WhatsappSignupSession", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "expiresAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WhatsappSignupSession", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "firstEnteredAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerContactHistory" + "name": "consumedAt", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHours", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34138,11 +33656,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHours", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34151,11 +33669,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHours", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34164,24 +33682,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", "schema": "public", - "table": "TriggerExecution" - }, - { + "table": "WorkingHours", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34189,38 +33694,25 @@ "default": null, "generated": null, "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactId", - "entityType": "columns", "schema": "public", - "table": "TriggerExecution" - }, - { - "type": "bigint", + "table": "WorkingHours", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerExecution" + "name": "name", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34229,11 +33721,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34242,11 +33734,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34255,11 +33747,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34267,26 +33759,26 @@ "default": null, "generated": null, "identity": null, - "name": "triggerId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "type": "bigint", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "workingHoursId", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkingHoursDateOverride", + "type": "date", "typeSchema": null, "notNull": true, "dimensions": 0, @@ -34294,63 +33786,37 @@ "generated": null, "identity": null, "name": "date", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "totalContacts", - "entityType": "columns", "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", + "table": "WorkingHoursDateOverride", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "successCount", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "name", + "entityType": "columns" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "failureCount", - "entityType": "columns", "schema": "public", - "table": "TriggerStat" - }, - { - "type": "integer", + "table": "WorkingHoursDateOverride", + "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "0", + "default": null, "generated": null, "identity": null, - "name": "totalExecutions", - "entityType": "columns", - "schema": "public", - "table": "TriggerStat" + "name": "ranges", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34359,11 +33825,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34372,11 +33838,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34385,11 +33851,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursInterval", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34397,64 +33863,51 @@ "default": null, "generated": null, "identity": null, - "name": "userId", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "workingHoursId", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "UserDeviceToken" - }, - { - "type": "devicePlatform", - "typeSchema": "public", + "table": "WorkingHoursInterval", + "type": "integer", + "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "platform", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "weekday", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkingHoursInterval", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "token", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "startMinute", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkingHoursInterval", + "type": "integer", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "lastSeenAt", - "entityType": "columns", - "schema": "public", - "table": "UserDeviceToken" + "name": "endMinute", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34463,11 +33916,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34476,11 +33929,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34489,37 +33942,37 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkingHoursMember", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "name": "workingHoursId", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WorkingHoursMember", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "", + "default": null, "generated": null, "identity": null, - "name": "menus", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkingHoursMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34527,12 +33980,12 @@ "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "UserPersistentMenu" + "name": "userId", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34541,11 +33994,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34554,11 +34007,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34567,24 +34020,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "Vendor" - }, - { + "table": "Workspace", "type": "text", "typeSchema": null, "notNull": true, @@ -34593,11 +34033,11 @@ "generated": null, "identity": null, "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "text", "typeSchema": null, "notNull": false, @@ -34605,25 +34045,25 @@ "default": null, "generated": null, "identity": null, - "name": "shortDescription", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "defaultReply", + "entityType": "columns" }, { - "type": "text", - "typeSchema": null, - "notNull": false, + "schema": "public", + "table": "Workspace", + "type": "defaultReplyFrequency", + "typeSchema": "public", + "notNull": true, "dimensions": 0, - "default": null, + "default": "'allTime'", "generated": null, "identity": null, - "name": "phone", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "defaultReplyFrequency", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "text", "typeSchema": null, "notNull": false, @@ -34631,220 +34071,220 @@ "default": null, "generated": null, "identity": null, - "name": "storeAddress", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "targetCountry", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "text", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'en'", "generated": null, "identity": null, - "name": "imageUrl", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "language", + "entityType": "columns" }, { - "type": "boolean", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "'UTC'", "generated": null, "identity": null, - "name": "isActive", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "timezone", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "'#016DFF'", "generated": null, "identity": null, - "name": "discountPercent", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "brandColor", + "entityType": "columns" }, { - "type": "numeric(19,4)", + "schema": "public", + "table": "Workspace", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'0'", + "default": "false", "generated": null, "identity": null, - "name": "minimumOrderValue", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "developmentMode", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "openHoursId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "smartResponseDelaySeconds", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "boolean", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "true", "generated": null, "identity": null, - "name": "categoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "isActive", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "subcategoryId", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "startTime", + "entityType": "columns" }, { - "type": "integer", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "10", + "default": null, "generated": null, "identity": null, - "name": "rank", - "entityType": "columns", - "schema": "public", - "table": "Vendor" + "name": "endTime", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "logo", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "scheduledDeletionAt", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "purgeStartedAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Workspace", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "supportAccessUntil", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "true", + "default": "false", "generated": null, "identity": null, - "name": "active", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "capiLimitedDataUse", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "Workspace", + "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "folderId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "token", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "Workspace", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "url", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "ownerId", + "entityType": "columns" }, { + "schema": "public", + "table": "Workspace", "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "1", "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "Webhook" + "name": "tenantId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34853,11 +34293,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34866,11 +34306,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -34879,24 +34319,11 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "executedAt", - "entityType": "columns", "schema": "public", - "table": "WebhookExecution" - }, - { + "table": "WorkspaceApiToken", "type": "bigint", "typeSchema": null, "notNull": true, @@ -34904,181 +34331,181 @@ "default": null, "generated": null, "identity": null, - "name": "webhookId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "contactId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "name": "name", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, + "schema": "public", + "table": "WorkspaceApiToken", + "type": "WorkspaceApiTokenPermission", + "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WebhookExecution" + "name": "permission", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "tokenHash", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "text", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, - "default": "now()", + "default": null, "generated": null, "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "tokenPrefix", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "now()", + "default": "false", "generated": null, "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "isDefault", + "entityType": "columns" }, { - "type": "bigint", + "schema": "public", + "table": "WorkspaceApiToken", + "type": "jsonb", "typeSchema": null, - "notNull": true, + "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "workspaceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "encryptedToken", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceApiToken", "type": "text", "typeSchema": null, - "notNull": true, - "dimensions": 0, + "notNull": false, + "dimensions": 1, "default": null, "generated": null, "identity": null, - "name": "wabaId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "scopes", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMac", + "type": "bigint", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "businessId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "id", + "entityType": "columns" }, { - "type": "jsonb", + "schema": "public", + "table": "WorkspaceMac", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, "dimensions": 0, - "default": null, + "default": "now()", "generated": null, "identity": null, - "name": "credential", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "createdAt", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMac", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, - "dimensions": 1, - "default": "'{}'", + "dimensions": 0, + "default": "now()", "generated": null, "identity": null, - "name": "grantedScopes", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "updatedAt", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", + "schema": "public", + "table": "WorkspaceMac", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "scopeCheckedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "workspaceId", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMac", "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "provisionedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "periodStart", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMac", + "type": "timestamp(6) with time zone", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "creditLineId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "periodEnd", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMac", "type": "integer", "typeSchema": null, "notNull": true, @@ -35086,12 +34513,12 @@ "default": "0", "generated": null, "identity": null, - "name": "revision", - "entityType": "columns", - "schema": "public", - "table": "WhatsappBusinessAccount" + "name": "macCount", + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMember", "type": "bigint", "typeSchema": null, "notNull": true, @@ -35100,11 +34527,11 @@ "generated": null, "identity": null, "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -35113,11 +34540,11 @@ "generated": null, "identity": null, "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "entityType": "columns" }, { + "schema": "public", + "table": "WorkspaceMember", "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": true, @@ -35126,2100 +34553,3887 @@ "generated": null, "identity": null, "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMember", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "wacid", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "workspaceId", + "entityType": "columns" }, { - "type": "text", + "schema": "public", + "table": "WorkspaceMember", + "type": "bigint", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "attemptId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "userId", + "entityType": "columns" }, { - "type": "whatsappCallDirection", + "schema": "public", + "table": "WorkspaceMember", + "type": "workspaceMemberRole", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "direction", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "role", + "entityType": "columns" }, { - "type": "whatsappCallStatus", - "typeSchema": "public", + "schema": "public", + "table": "WorkspaceMember", + "type": "jsonb", + "typeSchema": null, "notNull": true, "dimensions": 0, - "default": "'ringing'", + "default": "'{}'", "generated": null, "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "notificationChannels", + "entityType": "columns" }, { - "type": "whatsappCallOutcome", - "typeSchema": "public", - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "outcome", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "timestamp(6) with time zone", + "table": "WorkspaceMember", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'{}'", "generated": null, "identity": null, - "name": "startedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "notificationTypes", + "entityType": "columns" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "integer", + "table": "WorkspaceMember", + "type": "jsonb", "typeSchema": null, - "notNull": false, + "notNull": true, "dimensions": 0, - "default": null, + "default": "'{}'", "generated": null, "identity": null, - "name": "durationSeconds", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "permissions", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "messageId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" - }, - { - "type": "text", + "table": "WorkspaceMember", + "type": "timestamp(6) with time zone", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, - "name": "lastError", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCall" + "name": "onlineSince", + "entityType": "columns" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "answeredByUserId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "MessageShard", + "nameExplicit": true, + "columns": [ + { + "value": "isActive", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_isActive_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "initiatedByUserId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "MessageShard", + "nameExplicit": true, + "columns": [ + { + "value": "shardKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MessageShard_shardKey_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingRequested", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "ShardTimeRange", + "nameExplicit": true, + "columns": [ + { + "value": "startTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "endTime", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_time_lookup_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingFailureReason", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "ShardTimeRange", + "nameExplicit": true, + "columns": [ + { + "value": "shardId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ShardTimeRange_shardId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordingPath", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "recordedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'whatsapp'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcript", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'messenger'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcribedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationInstagramId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "source", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceEventId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"channel\" = 'instagram'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "transcriptSegments", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummary", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummarizedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "aiSummaryProvider", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AdsConversionRule", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AdsConversionRule_workspaceId_channel_enabled_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "inboxId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_status_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chunkIndex", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_sourceId_chunkIndex_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "conversationId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCall" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "embedding", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "vector_cosine_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "hnsw", + "concurrently": false, + "name": "AIConversationEmbedding_embedding_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationEmbedding_conversationId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_lookup_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", + "entityType": "indexes" }, { - "type": "whatsappCallPermissionResponse", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "response", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_messageId_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isPermanent", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIConversationSource", + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIConversationSource_conversationId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIEmbedding", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIEmbedding_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "respondedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_live_uq", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "revision", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_revision_uq", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "contactInboxId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCallPermission" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_workspace_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"createdAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_inbox_createdAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('pending', 'running', 'cancelling')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_live_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappCoexistStaging" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "phoneNumberId", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverBulkRun", + "nameExplicit": true, + "columns": [ + { + "value": "requestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverBulkRun_requestedByUserId_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payload", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_inboxId_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "payloadHash", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "processedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "applyToAllRequestedByUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "parseFailedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappCoexistStaging" + "table": "AIHandoverSettings", + "nameExplicit": true, + "columns": [ + { + "value": "gotoFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AIHandoverSettings_gotoFlowId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsAgentResponseEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBotMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBotMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "aiProvider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBotMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "hasResponse", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "result", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsBroadcastEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsContactEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsContactEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "categories", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsContactEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "validationErrors", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" + "table": "AnalyticsConversationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "completedCount", - "entityType": "columns", "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "screens", - "entityType": "columns", - "schema": "public", - "table": "WhatsappFlow" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "integrationWhatsappId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "sourceId", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "category", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" - }, - { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "status", - "entityType": "columns", - "schema": "public", - "table": "WhatsappMessageTemplate" + "table": "AnalyticsConversationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "toAssignee", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'[]'", - "generated": null, - "identity": null, - "name": "components", - "entityType": "columns", "schema": "public", - "table": "WhatsappMessageTemplate" + "table": "AnalyticsFlowNodeEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsFlowNodeEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "adminId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsMessageEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "senderType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsSequenceEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "wabaId", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsEmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_token_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "businessId", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsEmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_topicId_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedAccessToken", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsEmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "topicId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "apiVersion", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AnalyticsManifestStatus", + "nameExplicit": true, + "columns": [ + { + "value": "objectKey", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AnalyticsManifestStatus_objectKey_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "candidatePhoneNumberIds", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 1, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "claimedPhoneNumberIds", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_workspaceId_startAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "expiresAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "startAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_calendarId_status_startAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "consumedAt", - "entityType": "columns", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Appointment", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Appointment_contactId_calendarId_status_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AppointmentCalendar", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AppointmentCalendar", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "(\"deletedAt\" is null)", + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_workspaceId_name_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AppointmentCalendar", + "nameExplicit": true, + "columns": [ + { + "value": "publicLinkSlug", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendar_publicLinkSlug_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AppointmentCalendarAvailability", + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarAvailability_calendarId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "WorkingHours" + "table": "AppointmentCalendarReminder", + "nameExplicit": true, + "columns": [ + { + "value": "calendarId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingValue", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "timingUnit", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentCalendarReminder_dedupe_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "jobId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_jobId_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sendAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_status_sendAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "appointmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_appointmentId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "AppointmentReminderDispatch", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AppointmentReminderDispatch_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Attachment", + "nameExplicit": true, + "columns": [ + { + "value": "messageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "messageCreatedAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_message_idx", + "entityType": "indexes" }, { - "type": "date", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "date", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" - }, - { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", + "table": "Attachment", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_workspaceId_createdAt_idx", + "entityType": "indexes" + }, + { "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Attachment", + "nameExplicit": true, + "columns": [ + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Attachment_conversationId_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ranges", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Account", + "nameExplicit": true, + "columns": [ + { + "value": "providerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "accountId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Account_providerId_accountId_tenantId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Invitation", + "nameExplicit": true, + "columns": [ + { + "value": "code", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Invitation_code_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Session", + "nameExplicit": true, + "columns": [ + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Session_token_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "User", + "nameExplicit": true, + "columns": [ + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_email_tenant_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "User", + "nameExplicit": true, + "columns": [ + { + "value": "tenantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "User_tenantId_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "weekday", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AutomatedResponse", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomatedResponse_workspaceId_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startMinute", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AutomationThrottle", + "nameExplicit": true, + "columns": [ + { + "value": "lastTriggeredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_lastTriggeredAt_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endMinute", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursInterval" + "table": "AutomationThrottle", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AutomationThrottle_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "BotField", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BotField_workspaceId_type_name_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_workspaceId_active_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workingHoursId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_flowId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_channel_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", "schema": "public", - "table": "WorkingHoursMember" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "schedulesAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_schedulesAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_status_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "deletedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"deletedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_deletedAt_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Broadcast", + "nameExplicit": true, + "columns": [ + { + "value": "parentBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Broadcast_parentBroadcastId_occurrenceAt_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrence", + "nameExplicit": true, + "columns": [ + { + "value": "broadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_broadcastId_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrence", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_workspaceId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "defaultReply", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrence", + "nameExplicit": true, + "columns": [ + { + "value": "nextRunAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"nextRunAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrence_due_idx", + "entityType": "indexes" }, { - "type": "defaultReplyFrequency", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": "'allTime'", - "generated": null, - "identity": null, - "name": "defaultReplyFrequency", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "localSlot", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "targetCountry", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "recurrenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurrenceAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'en'", - "generated": null, - "identity": null, - "name": "language", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'UTC'", - "generated": null, - "identity": null, - "name": "timezone", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": true, + "columns": [ + { + "value": "childBroadcastId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'#016DFF'", - "generated": null, - "identity": null, - "name": "brandColor", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastTarget", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_inboxId_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "developmentMode", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "BroadcastTarget", + "nameExplicit": true, + "columns": [ + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "BroadcastTarget_flowId_idx", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "smartResponseDelaySeconds", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "ChannelPost", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "externalPostId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_channel_externalPostId_key", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "true", - "generated": null, - "identity": null, - "name": "isActive", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "ChannelPost", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_workspaceId_sortAt_id_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "startTime", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "ChannelPost", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ChannelPost_inboxId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "endTime", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_workspace_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "logo", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "scheduledDeletionAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastHeartbeatAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_active_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "purgeStartedAt", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "\"startedAt\" DESC", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "status IN ('succeeded', 'partial')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_resume_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "supportAccessUntil", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "status = 'init' AND type = 'coexist'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_integration_init_uq", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "capiLimitedDataUse", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_active_uq", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "token", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CoexistSyncRun", + "nameExplicit": true, + "columns": [ + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "type = 'contact_scan'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CoexistSyncRun_contact_scan_due_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "ownerId", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CommentAutomation", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_workspaceId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "1", - "generated": null, - "identity": null, - "name": "tenantId", - "entityType": "columns", "schema": "public", - "table": "Workspace" + "table": "CommentAutomation", + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_folderId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomation", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomation_inboxId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "replyChannel", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_dedup_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_automation_occurredAt_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "name", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "WorkspaceApiTokenPermission", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "permission", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_private_unseen_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenHash", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationEvent", + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"status\" = 'failed'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationEvent_failed_createdAt_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "tokenPrefix", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "commentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_dedup_idx", + "entityType": "indexes" }, { - "type": "boolean", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "false", - "generated": null, - "identity": null, - "name": "isDefault", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": false, + "nullsFirst": true, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_automation_occurredAt_idx", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "encryptedToken", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactId_idx", + "entityType": "indexes" }, { - "type": "text", - "typeSchema": null, - "notNull": false, - "dimensions": 1, - "default": null, - "generated": null, - "identity": null, - "name": "scopes", - "entityType": "columns", "schema": "public", - "table": "WorkspaceApiToken" + "table": "CommentAutomationMiss", + "nameExplicit": true, + "columns": [ + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationMiss_contactInboxId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationReply", + "nameExplicit": true, + "columns": [ + { + "value": "automationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "postId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_dedup_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "CommentAutomationReply", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "CommentAutomationReply_contactId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "ConnectSession", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_workspaceId_idx", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "ConnectSession", + "nameExplicit": true, + "columns": [ + { + "value": "expiresAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_expiresAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodStart", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "ConnectSession", + "nameExplicit": true, + "columns": [ + { + "value": "consumedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"consumedAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_consumedAt_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "periodEnd", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "ConnectSession", + "nameExplicit": true, + "columns": [ + { + "value": "stateNonceHash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConnectSession_stateNonceHash_key", + "entityType": "indexes" }, { - "type": "integer", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "0", - "generated": null, - "identity": null, - "name": "macCount", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMac" + "table": "Connection", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_workspaceId_provider_sourceId_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "id", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Connection", + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_provider_sourceId_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "createdAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Connection", + "nameExplicit": true, + "columns": [ + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_inboxId_key", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "now()", - "generated": null, - "identity": null, - "name": "updatedAt", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Connection", + "nameExplicit": true, + "columns": [ + { + "value": "integrationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Connection_integrationId_key", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "workspaceId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "broadcastSubscribedAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_broadcast_subscribed_at", + "entityType": "indexes" }, { - "type": "bigint", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "userId", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_created_at", + "entityType": "indexes" }, { - "type": "workspaceMemberRole", - "typeSchema": "public", - "notNull": true, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "role", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "email", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_email", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationChannels", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "phoneNumber", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_phone_number", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "notificationTypes", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "idx_contact_workspace_full_name_md5", + "entityType": "indexes" }, { - "type": "jsonb", - "typeSchema": null, - "notNull": true, - "dimensions": 0, - "default": "'{}'", - "generated": null, - "identity": null, - "name": "permissions", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "firstName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_firstName_trgm_idx", + "entityType": "indexes" }, { - "type": "timestamp(6) with time zone", - "typeSchema": null, - "notNull": false, - "dimensions": 0, - "default": null, - "generated": null, - "identity": null, - "name": "onlineSince", - "entityType": "columns", "schema": "public", - "table": "WorkspaceMember" + "table": "Contact", + "nameExplicit": true, + "columns": [ + { + "value": "lastName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "Contact_lastName_trgm_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Contact", "nameExplicit": true, "columns": [ { - "value": "isActive", + "value": "email", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": null + "opclass": { + "name": "gin_trgm_ops", + "default": false + } } ], "isUnique": false, "where": null, "with": "", - "method": "btree", + "method": "gin", "concurrently": false, - "name": "MessageShard_isActive_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" + "name": "Contact_email_trgm_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Contact", "nameExplicit": true, "columns": [ { - "value": "shardKey", + "value": "phoneNumber", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": null + "opclass": { + "name": "gin_trgm_ops", + "default": false + } } ], "isUnique": false, "where": null, "with": "", - "method": "btree", + "method": "gin", "concurrently": false, - "name": "MessageShard_shardKey_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageShard" + "name": "Contact_phoneNumber_trgm_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactCustomField", "nameExplicit": true, "columns": [ { - "value": "startTime", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "endTime", + "value": "customFieldId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ShardTimeRange_time_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" + "name": "ContactCustomField_contactId_customFieldId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactCustomField", "nameExplicit": true, "columns": [ { - "value": "shardId", + "value": "customFieldId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37231,37 +38445,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ShardTimeRange_shardId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ShardTimeRange" + "name": "ContactCustomField_customFieldId_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "source", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37273,37 +38473,51 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspace_integration_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_inboxId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "integrationWhatsappId", + "value": "sourceUserId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": "\"sourceUserId\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_sourceUserId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactInbox", + "nameExplicit": true, + "columns": [ { - "value": "source", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", + "value": "sourceParentUserId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37311,118 +38525,139 @@ } ], "isUnique": true, - "where": "\"channel\" = 'whatsapp'", + "where": "\"sourceParentUserId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_ws_whatsapp_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_inboxId_sourceParentUserId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "profileSnapshotNextAttemptAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "integrationMessengerId", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": "\"profileSnapshotState\" = 'pending'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_profileSnapshot_pending_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactInbox", + "nameExplicit": true, + "columns": [ { - "value": "source", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"channel\" = 'messenger'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_ws_messenger_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_inboxId_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "integrationInstagramId", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactInbox_inboxId_id_ai_held_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactInbox", + "nameExplicit": true, + "columns": [ { - "value": "source", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceEventId", + "value": "lastIncomingMessageAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"channel\" = 'instagram'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_ws_instagram_source_sourceEventId_key", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "lastOutboundMessageAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37434,61 +38669,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", - "isExpression": false, + "value": "(\"referral\"->>'ctwaClid')", + "isExpression": true, "asc": true, "nullsFirst": false, "opclass": null } ], "isUnique": false, - "where": null, + "where": "\"referral\"->>'ctwaClid' IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_referral_ctwaClid_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInbox", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, + "value": "(\"referral\"->>'adId')", + "isExpression": true, "asc": true, "nullsFirst": false, "opclass": null } ], "isUnique": false, - "where": null, + "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInbox_referral_adId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactInboxPost", "nameExplicit": true, "columns": [ { @@ -37499,14 +38727,7 @@ "opclass": null }, { - "value": "adId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "postId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37518,30 +38739,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionEvent_workspaceId_adId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionEvent" + "name": "ContactInboxPost_workspaceId_postId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactNote", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactNote_contactId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": true, + "columns": [ { - "value": "enabled", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37553,23 +38781,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AdsConversionRule_workspaceId_channel_enabled_idx", - "entityType": "indexes", - "schema": "public", - "table": "AdsConversionRule" + "name": "idx_contact_on_broadcast_contact_id", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnBroadcast", "nameExplicit": true, "columns": [ { - "value": "sourceId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactOnBroadcast_contactInboxId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": true, + "columns": [ { - "value": "status", + "value": "isRead", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37581,68 +38823,65 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_sourceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "idx_contact_on_broadcast_is_read", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnBroadcast", "nameExplicit": true, "columns": [ { - "value": "sourceId", + "value": "broadcastId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "chunkIndex", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"sent\" = false AND \"failedAt\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_sourceId_chunkIndex_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactOnBroadcast_unsent_order_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { - "value": "embedding", + "value": "sequenceId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "vector_cosine_ops", - "default": false - } + "opclass": null } ], "isUnique": false, "where": null, "with": "", - "method": "hnsw", + "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_embedding_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactsOnSequence_sequenceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37654,12 +38893,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactsOnSequence_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { @@ -37668,23 +38907,30 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactsOnSequence_workspaceId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ContactOnSequence", + "nameExplicit": true, + "columns": [ { - "value": "sourceId", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "nextRunAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37696,12 +38942,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationEmbedding_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "ContactsOnSequence_status_nextRunAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { @@ -37712,21 +38958,14 @@ "opclass": null }, { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceType", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "nextRunAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37738,30 +38977,30 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_lookup_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSequence", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceType", + "value": "sequenceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceKey", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37773,16 +39012,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_workspaceId_sourceType_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "messageId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37794,16 +39054,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_messageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37815,16 +39082,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIConversationSource_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIConversationSource" + "name": "ContactOnSmartDelay_status_triggerAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37836,16 +39103,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIEmbedding_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" + "name": "ContactOnSmartDelay_conversationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "aiFileId", + "value": "appointmentId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -37857,142 +39124,100 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIEmbedding_aiFileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIEmbedding" + "name": "ContactOnSmartDelay_appointmentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": "status IN ('pending', 'running', 'cancelling')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_live_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "inboxId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "revision", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_revision_uq", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "stepId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverBulkRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "ContactOnSmartDelay_followUp_active_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactOnSmartDelay", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "\"createdAt\" DESC", - "isExpression": true, + "value": "contactInboxId", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "AIHandoverBulkRun_inbox_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "status", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "lastHeartbeatAt", + "value": "nodeId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "status IN ('pending', 'running', 'cancelling')", + "isUnique": true, + "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverBulkRun_live_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactToTagChannel", "nameExplicit": true, "columns": [ { - "value": "requestedByUserId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38004,79 +39229,86 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverBulkRun_requestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "ContactToTagChannel_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ContactToTagChannel", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "tagId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "ContactToTagChannel_tagId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"sourceId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "Conversation_contactId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { - "value": "applyToAllRequestedByUserId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"sourceId\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_applyToAllRequestedByUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "Conversation_contactId_dm_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { - "value": "gotoFlowId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38088,12 +39320,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AIHandoverSettings_gotoFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AIHandoverSettings" + "name": "Conversation_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { @@ -38104,7 +39336,7 @@ "opclass": null }, { - "value": "occurredAt", + "value": "responseDueAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38112,27 +39344,20 @@ } ], "isUnique": false, - "where": null, + "where": "\"responseDueAt\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsAgentResponseEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "name": "Conversation_workspaceId_responseDueAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "aiContextLastMessageId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38144,12 +39369,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "Conversation_aiContextLastMessageId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Conversation", "nameExplicit": true, "columns": [ { @@ -38160,16 +39385,16 @@ "opclass": null }, { - "value": "aiProvider", + "value": "lastActivityAt", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "id", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null } @@ -38179,12 +39404,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_aiProvider_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "Conversation_workspaceId_lastActivityAt_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ConversationParticipant", "nameExplicit": true, "columns": [ { @@ -38193,23 +39418,23 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "hasResponse", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "result", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_workspaceId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": true, + "columns": [ { - "value": "occurredAt", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38221,54 +39446,68 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBotMessageEvent_workspaceId_hasResponse_result_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "ConversationParticipant_conversationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ConversationParticipant", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "broadcastId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ConversationParticipant_conversationId_userId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Coupon", + "nameExplicit": true, + "columns": [ { - "value": "eventType", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "code", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsBroadcastEvent_workspaceId_broadcastId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "name": "Coupon_workspaceId_code_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38279,31 +39518,31 @@ "opclass": null }, { - "value": "occurredAt", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "eventType", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"issuedContactId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" + "name": "Coupon_workspaceId_topicId_issuedContactId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38314,14 +39553,7 @@ "opclass": null }, { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38333,12 +39565,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" + "name": "Coupon_workspaceId_topicId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38349,14 +39581,14 @@ "opclass": null }, { - "value": "adminId", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38368,30 +39600,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsContactEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsContactEvent" + "name": "Coupon_workspaceId_topicId_issuedContactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedContactId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Coupon", + "nameExplicit": true, + "columns": [ { - "value": "occurredAt", + "value": "issuedAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Coupon_issuedAt_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Coupon", + "nameExplicit": true, + "columns": [ { - "value": "eventType", + "value": "usedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38403,12 +39663,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" + "name": "Coupon_usedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38419,14 +39679,7 @@ "opclass": null }, { - "value": "toAssignee", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "code", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38438,12 +39691,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsConversationEvent_workspaceId_toAssignee_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsConversationEvent" + "name": "Coupon_workspaceId_code_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Coupon", "nameExplicit": true, "columns": [ { @@ -38454,28 +39707,21 @@ "opclass": null }, { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", + "value": "topicId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "nodeId", + "value": "issuedContactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "usedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38487,12 +39733,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CouponTopic", "nameExplicit": true, "columns": [ { @@ -38503,35 +39749,14 @@ "opclass": null }, { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "analyticsId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "buttonId", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "deletedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38543,12 +39768,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsFlowNodeEvent_workspaceId_flowId_analyticsId_nodeId_buttonId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "name": "CouponTopic_workspaceId_status_deletedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CouponTopic", "nameExplicit": true, "columns": [ { @@ -38559,14 +39784,7 @@ "opclass": null }, { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", + "value": "expiresAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38578,12 +39796,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_occurredAt_eventType_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "CouponTopic_workspaceId_expiresAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CouponTopic", "nameExplicit": true, "columns": [ { @@ -38594,31 +39812,24 @@ "opclass": null }, { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, + "value": "lower(\"name\")", + "isExpression": true, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"deletedAt\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "CouponTopic_workspaceId_name_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CustomField", "nameExplicit": true, "columns": [ { @@ -38629,31 +39840,31 @@ "opclass": null }, { - "value": "adminId", + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_adminId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "CustomField_workspaceId_type_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionConnection", "nameExplicit": true, "columns": [ { @@ -38662,20 +39873,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "senderType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -38683,12 +39880,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsMessageEvent_workspaceId_senderType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "DecisionConnection_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionConnection", "nameExplicit": true, "columns": [ { @@ -38699,70 +39896,49 @@ "opclass": null }, { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "eventType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsSequenceEvent_workspaceId_sequenceId_stepId_eventType_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "name": "DecisionConnection_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { - "value": "token", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsEmailTopic_token_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "DecisionProfile_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { - "value": "topicId", + "value": "connectionId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38774,12 +39950,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsEmailTopic_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "DecisionProfile_connectionId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { @@ -38790,28 +39966,28 @@ "opclass": null }, { - "value": "topicId", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsEmailTopic_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "DecisionProfile_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DecisionProfile", "nameExplicit": true, "columns": [ { - "value": "objectKey", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38819,16 +39995,16 @@ } ], "isUnique": true, - "where": null, + "where": "\"globalRouterEnabled\" = true", "with": "", "method": "btree", "concurrently": false, - "name": "AnalyticsManifestStatus_objectKey_key", - "entityType": "indexes", - "schema": "public", - "table": "AnalyticsManifestStatus" + "name": "DecisionProfile_workspaceId_globalRouter_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "DynamicImage", "nameExplicit": true, "columns": [ { @@ -38837,19 +40013,26 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" + "name": "DynamicImage_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "EmailTopic", "nameExplicit": true, "columns": [ { @@ -38860,44 +40043,65 @@ "opclass": null }, { - "value": "startAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_workspaceId_startAt_idx", - "entityType": "indexes", + "name": "EmailTopic_workspaceId_name_key", + "entityType": "indexes" + }, + { "schema": "public", - "table": "Appointment" + "table": "EmailTopic", + "nameExplicit": true, + "columns": [ + { + "value": "folderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EmailTopic_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ { - "value": "calendarId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null }, { - "value": "startAt", + "value": "id", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null } @@ -38907,79 +40111,79 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_calendarId_status_startAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" + "name": "AuditLog_workspaceId_createdAt_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "calendarId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, "nullsFirst": false, "opclass": null } ], "isUnique": false, - "where": null, + "where": "\"userId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "Appointment_contactId_calendarId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Appointment" + "name": "AuditLog_workspaceId_userId_createdAt_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "CustomDomain", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendar_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" + "name": "CustomDomain_tenantId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "CustomDomain", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", + "value": "domain", "isExpression": false, "asc": true, "nullsFirst": false, @@ -38987,83 +40191,62 @@ } ], "isUnique": true, - "where": "(\"deletedAt\" is null)", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendar_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" + "name": "CustomDomain_domain_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "CustomDomain", "nameExplicit": true, "columns": [ { - "value": "publicLinkSlug", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendar_publicLinkSlug_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendar" + "name": "CustomDomain_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "License", "nameExplicit": true, "columns": [ { - "value": "calendarId", + "value": "licenseId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendarAvailability_calendarId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "name": "License_licenseId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformAdmin", "nameExplicit": true, "columns": [ { - "value": "calendarId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingValue", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "timingUnit", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39075,16 +40258,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentCalendarReminder_dedupe_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentCalendarReminder" + "name": "PlatformAdmin_userId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Tenant", "nameExplicit": true, "columns": [ { - "value": "jobId", + "value": "ownerId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39096,23 +40279,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_jobId_key", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "Tenant_ownerId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TenantHelpItem", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sendAt", + "value": "position", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39124,16 +40307,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_status_sendAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "TenantHelpItem_tenantId_position_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "UserQuota", "nameExplicit": true, "columns": [ { - "value": "appointmentId", + "value": "channelsTornDownAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39145,16 +40328,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "UserQuota_channelsTornDownAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "UserQuota", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39162,30 +40345,30 @@ } ], "isUnique": false, - "where": null, + "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", "with": "", "method": "btree", "concurrently": false, - "name": "AppointmentReminderDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "UserQuota_due_expired_trial_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ErrorLog", "nameExplicit": true, "columns": [ { - "value": "messageId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "messageCreatedAt", + "value": "createdAt", "isExpression": false, "asc": false, - "nullsFirst": false, + "nullsFirst": true, "opclass": null } ], @@ -39194,25 +40377,39 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Attachment_message_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" + "name": "ErrorLog_workspaceId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ErrorLog", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ErrorLog_createdAt_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ErrorLog", + "nameExplicit": true, + "columns": [ { - "value": "createdAt", + "value": "contactId", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -39222,25 +40419,25 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Attachment_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" + "name": "ErrorLog_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ExternalWebhook", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "createdAt", + "value": "event", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -39250,72 +40447,65 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Attachment_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Attachment" + "name": "ExternalWebhook_workspaceId_event_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ExternalWebhook", "nameExplicit": true, "columns": [ { - "value": "providerId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "accountId", + "value": "event", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "tenantId", + "value": "url", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Account_providerId_accountId_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Account" + "name": "ExternalWebhook_workspaceId_event_url_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookLeadAdsAutomation", "nameExplicit": true, "columns": [ { - "value": "code", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Invitation_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Invitation" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "token", + "value": "pageId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "formId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39327,23 +40517,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Session_token_key", - "entityType": "indexes", - "schema": "public", - "table": "Session" + "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "nameExplicit": true, "columns": [ { - "value": "email", + "value": "automationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "tenantId", + "value": "leadgenId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39355,16 +40545,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "User_email_tenant_key", - "entityType": "indexes", - "schema": "public", - "table": "User" + "name": "FacebookLeadAdsLead_automationId_leadgenId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookLeadAdsLead", "nameExplicit": true, "columns": [ { - "value": "tenantId", + "value": "leadgenId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39376,12 +40566,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "User_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "User" + "name": "FacebookLeadAdsLead_leadgenId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "nameExplicit": true, "columns": [ { @@ -39397,72 +40587,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AutomatedResponse_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomatedResponse" + "name": "FacebookMarketingMessage_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookMarketingMessage", "nameExplicit": true, "columns": [ { - "value": "lastTriggeredAt", + "value": "campaignId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AutomationThrottle_lastTriggeredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" + "name": "FacebookMarketingMessage_campaignId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FacebookMarketingMessagesAuth", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AutomationThrottle_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "AutomationThrottle" + "name": "FacebookMarketingMessagesAuth_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "File", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", + "value": "path", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39474,12 +40650,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BotField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "BotField" + "name": "File_path_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "File", "nameExplicit": true, "columns": [ { @@ -39488,6 +40664,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "contextType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -39495,12 +40678,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "File_workspaceId_contextType_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "File", "nameExplicit": true, "columns": [ { @@ -39511,7 +40694,7 @@ "opclass": null }, { - "value": "channel", + "value": "subType", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39519,16 +40702,16 @@ } ], "isUnique": false, - "where": "\"status\" IN ('scheduled', 'sending') AND \"deletedAt\" IS NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "File_workspaceId_subType_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "nameExplicit": true, "columns": [ { @@ -39537,44 +40720,30 @@ "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "channel", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"deletedAt\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowAnalyticsSession_workspaceId_flowId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowAnalyticsSession", "nameExplicit": true, "columns": [ { - "value": "schedulesAt", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39586,16 +40755,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_schedulesAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowAnalyticsSession_flowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowNodeStat", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "analyticsId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "eventType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "buttonId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39607,82 +40804,68 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowNodeStat_filter_1_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowNodeStat", "nameExplicit": true, "columns": [ { - "value": "deletedAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": "\"deletedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Broadcast_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "parentBroadcastId", + "value": "analyticsId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurrenceAt", + "value": "nodeId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "Broadcast_parentBroadcastId_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "Broadcast" + "name": "FlowNodeStat_filter_2_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "FlowRun", "nameExplicit": true, "columns": [ { - "value": "broadcastId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrence_broadcastId_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "FlowRun_conversationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Folder", "nameExplicit": true, "columns": [ { @@ -39698,23 +40881,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "Folder_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Folder", "nameExplicit": true, "columns": [ { - "value": "nextRunAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "parentId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39722,34 +40898,27 @@ } ], "isUnique": false, - "where": "\"nextRunAt\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrence_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "Folder_parentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "recurrenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "localSlot", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurrenceAt", + "value": "transactionId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39761,25 +40930,25 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_localSlot_occurrenceAt_key", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "recurrenceId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurrenceAt", + "value": "occurredAt", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -39789,12 +40958,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_recurrenceId_occurrenceAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { @@ -39803,6 +40972,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -39810,16 +40986,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "GoogleAdsConversionEvent_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "childBroadcastId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39831,16 +41007,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastRecurrenceOccurrence_childBroadcastId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "GoogleAdsConversionEvent_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "nextProcessingCheckAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39852,16 +41035,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastTarget_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" + "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsConversionEvent", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claimedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39873,12 +41063,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "BroadcastTarget_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "BroadcastTarget" + "name": "GoogleAdsConversionEvent_status_claimedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "GoogleAdsSettings", "nameExplicit": true, "columns": [ { @@ -39887,30 +41077,44 @@ "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "GoogleAdsSettings_workspaceId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IgStoryAutomation", + "nameExplicit": true, + "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Cart_workspaceId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Cart" + "name": "IgStoryAutomation_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IgStoryAutomation", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39922,16 +41126,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Cart_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" + "name": "IgStoryAutomation_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IgStoryAutomation", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39943,16 +41147,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Cart_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" + "name": "IgStoryAutomation_inboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { - "value": "lastActivityAt", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, @@ -39960,16 +41171,16 @@ } ], "isUnique": false, - "where": "\"abandonedNotifiedAt\" IS NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Cart_abandoned_scan_idx", - "entityType": "indexes", - "schema": "public", - "table": "Cart" + "name": "Import_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { @@ -39980,51 +41191,37 @@ "opclass": null }, { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalPostId", + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ChannelPost_workspaceId_channel_externalPostId_key", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" + "name": "Import_workspaceId_type_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "COALESCE(\"publishedAt\", \"createdAt\") DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "type", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -40034,16 +41231,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ChannelPost_workspaceId_sortAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" + "name": "Import_inboxId_type_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "fileId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40055,12 +41252,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ChannelPost_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ChannelPost" + "name": "Import_fileId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Import", "nameExplicit": true, "columns": [ { @@ -40071,21 +41268,21 @@ "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_workspace_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "Import_products_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhook", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40097,140 +41294,154 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhook_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhook", "nameExplicit": true, "columns": [ { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastHeartbeatAt", + "value": "token", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "status IN ('init', 'running')", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhook_token_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "inboundWebhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "channel", + "value": "idempotencyKey", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "\"startedAt\" DESC", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null } ], - "isUnique": false, - "where": "status IN ('succeeded', 'partial')", + "isUnique": true, + "where": "\"idempotencyKey\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_integration_resume_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "inboundWebhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "channel", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "status = 'init' AND type = 'coexist'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_integration_init_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "type = 'contact_scan' AND status IN ('init', 'running')", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_contact_scan_active_uq", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "type", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_contactId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": true, + "columns": [ { - "value": "status", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "InboundWebhookRequest_inboxId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": true, + "columns": [ { "value": "createdAt", "isExpression": false, @@ -40240,20 +41451,20 @@ } ], "isUnique": false, - "where": "type = 'contact_scan'", + "where": "\"status\" = 'received'", "with": "", "method": "btree", "concurrently": false, - "name": "CoexistSyncRun_contact_scan_due_idx", - "entityType": "indexes", - "schema": "public", - "table": "CoexistSyncRun" + "name": "InboundWebhookRequest_createdAt_received_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "claimedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40261,20 +41472,20 @@ } ], "isUnique": false, - "where": null, + "where": "\"status\" = 'processing'", "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" + "name": "InboundWebhookRequest_claimedAt_processing_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "InboundWebhookRequest", "nameExplicit": true, "columns": [ { - "value": "folderId", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40286,16 +41497,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" + "name": "InboundWebhookRequest_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Inbox", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40307,30 +41518,30 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomation" + "name": "Inbox_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Inbox", "nameExplicit": true, "columns": [ { - "value": "automationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "commentId", + "value": "channel", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "replyChannel", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40342,72 +41553,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Inbox_workspaceId_channel_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationActiveCampaign", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "automationId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationActiveCampaign_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationActiveCampaign", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationActiveCampaign_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationApi", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40419,82 +41616,75 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationApi_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationApi", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"replyChannel\" = 'private' AND \"deliveredAt\" IS NOT NULL AND \"seenAt\" IS NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_private_unseen_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationApi_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationApi", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "tokenHash", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"status\" = 'failed'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationEvent_failed_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "IntegrationApi_tokenHash_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Integration", "nameExplicit": true, "columns": [ { - "value": "automationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "commentId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "Integration_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Integration", "nameExplicit": true, "columns": [ { @@ -40505,18 +41695,11 @@ "opclass": null }, { - "value": "automationId", + "value": "integrationType", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -40524,72 +41707,100 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_automation_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "Integration_workspaceId_integrationType_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationClaude", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "IntegrationClaude_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationClaude", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationMiss_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "IntegrationClaude_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationDeepseek", "nameExplicit": true, "columns": [ { - "value": "automationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_workspaceId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IntegrationDeepseek", + "nameExplicit": true, + "columns": [ { - "value": "contactId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationDeepseek_integrationId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IntegrationDrip", + "nameExplicit": true, + "columns": [ { - "value": "postId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40601,54 +41812,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationReply_dedup_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" + "name": "IntegrationDrip_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationDrip", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationReply_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" + "name": "IntegrationDrip_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CommentAutomationReply_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "CommentAutomationReply" + "name": "IntegrationFacebookAds_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationFacebookAds", "nameExplicit": true, "columns": [ { @@ -40659,63 +41870,63 @@ "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationFacebookAds_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGemini", "nameExplicit": true, "columns": [ { - "value": "expiresAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationGemini_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGemini", "nameExplicit": true, "columns": [ { - "value": "consumedAt", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"consumedAt\" IS NOT NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_consumedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationGemini_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGetResponse", "nameExplicit": true, "columns": [ { - "value": "stateNonceHash", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40727,12 +41938,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ConnectSession_stateNonceHash_key", - "entityType": "indexes", - "schema": "public", - "table": "ConnectSession" + "name": "IntegrationGetResponse_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGetResponse", "nameExplicit": true, "columns": [ { @@ -40741,20 +41952,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "provider", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": true, @@ -40762,44 +41959,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Connection_workspaceId_provider_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationGetResponse_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGoogleAds", "nameExplicit": true, "columns": [ { - "value": "provider", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationGoogleAds_integrationId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IntegrationGoogleAds", + "nameExplicit": true, + "columns": [ { - "value": "sourceId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Connection_provider_sourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationGoogleAds_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGoogleCalendar", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40811,12 +42022,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Connection_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationGoogleCalendar_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationGoogleSheet", "nameExplicit": true, "columns": [ { @@ -40832,16 +42043,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Connection_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "Connection" + "name": "IntegrationGoogleSheet_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "broadcastSubscribedAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40853,23 +42064,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_broadcast_subscribed_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationInstagram_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", + "value": "welcomeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -40881,68 +42085,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_created_at", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationInstagram_welcomeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "email", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_email", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationInstagram_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "phoneNumber", + "value": "igId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_phone_number", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationInstagram_igId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": true, "columns": [ { @@ -40951,133 +42141,107 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "md5(btrim(regexp_replace(\"fullName\", '[ \\t\\n\\v\\f\\r]+', ' ', 'g')))", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_workspace_full_name_md5", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationKlaviyo_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": true, "columns": [ { - "value": "firstName", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_firstName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationKlaviyo_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": true, "columns": [ { - "value": "lastName", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_lastName_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMailchimp_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": true, "columns": [ { - "value": "email", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], "isUnique": false, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_email_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMailchimp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": true, "columns": [ { - "value": "phoneNumber", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, - "opclass": { - "name": "gin_trgm_ops", - "default": false - } + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", - "method": "gin", + "method": "btree", "concurrently": false, - "name": "Contact_phoneNumber_trgm_idx", - "entityType": "indexes", - "schema": "public", - "table": "Contact" + "name": "IntegrationMailerLite_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "customFieldId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41089,23 +42253,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactCustomField_contactId_customFieldId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" + "name": "IntegrationMailerLite_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41117,40 +42274,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactCustomField_customFieldId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactCustomField" + "name": "IntegrationMessenger_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "welcomeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "IntegrationMessenger_welcomeFlowId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "IntegrationMessenger", + "nameExplicit": true, + "columns": [ { - "value": "sourceId", + "value": "handoverResumeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMessenger_handoverResumeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { @@ -41159,37 +42330,23 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "sourceUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": true, - "where": "\"sourceUserId\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_sourceUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMessenger_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceParentUserId", + "value": "pageId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41197,83 +42354,62 @@ } ], "isUnique": true, - "where": "\"sourceParentUserId\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_sourceParentUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMessenger_pageId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": true, "columns": [ { - "value": "profileSnapshotNextAttemptAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"profileSnapshotState\" = 'pending'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_profileSnapshot_pending_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMetaCatalog_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMetaCatalog_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": true, "columns": [ { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", + "value": "deletedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41281,114 +42417,100 @@ } ], "isUnique": false, - "where": "\"threadControlState\" = 'standby' AND \"threadOwnerRole\" = 'ai_agent'", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_inboxId_id_ai_held_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMetaCatalog_deletedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastIncomingMessageAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_contactId_lastIncomingMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMoosend_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lastOutboundMessageAt", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_contactId_lastOutboundMessageAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationMoosend_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": true, "columns": [ { - "value": "(\"referral\"->>'ctwaClid')", - "isExpression": true, + "value": "workspaceId", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"referral\"->>'ctwaClid' IS NOT NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_referral_ctwaClid_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationOpenAI_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": true, "columns": [ { - "value": "(\"referral\"->>'adId')", - "isExpression": true, + "value": "integrationId", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"referral\"->>'adId' IS NOT NULL AND \"referral\"->>'source' = 'ADS'", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactInbox_referral_adId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInbox" + "name": "IntegrationOpenAI_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": true, "columns": [ { @@ -41397,13 +42519,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "postId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -41411,170 +42526,170 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactInboxPost_workspaceId_postId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactInboxPost" + "name": "IntegrationOpenaiCompatible_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactNote_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactNote" + "name": "IntegrationOpenaiCompatible_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "preset", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"preset\" <> 'custom'", "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_on_broadcast_contact_id", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnBroadcast_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationOpenrouter_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnBroadcast_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationOpenrouter_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "nameExplicit": true, "columns": [ { - "value": "isRead", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "idx_contact_on_broadcast_is_read", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationOutlookCalendar_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": true, "columns": [ { - "value": "broadcastId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"sent\" = false AND \"failedAt\" IS NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnBroadcast_unsent_order_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "IntegrationSendGrid_integrationId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": true, "columns": [ { - "value": "sequenceId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationSendGrid_workspaceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41586,44 +42701,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationSmtp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationSmtp_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": true, "columns": [ { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41635,65 +42743,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationTelegram_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nextRunAt", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_workspaceId_status_nextRunAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationTelegram_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", + "value": "botId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41705,12 +42785,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactsOnSequence_contactId_sequenceId_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSequence" + "name": "IntegrationTelegram_botId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": true, "columns": [ { @@ -41719,27 +42799,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -41747,65 +42806,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_workspaceId_flowId_contactInboxId_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationThreads_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": true, "columns": [ { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerAt", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_status_triggerAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationThreads_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "threadsUserId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationThreads_threadsUserId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": true, "columns": [ { - "value": "appointmentId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41817,37 +42869,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_appointmentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationTiktok_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41855,41 +42886,20 @@ } ], "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'followUp'", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_followUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationTiktok_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "nodeId", + "value": "openId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41897,20 +42907,20 @@ } ], "isUnique": true, - "where": "\"status\" NOT IN ('completed', 'failed', 'canceled') AND \"type\" = 'quickReplyFollowUp'", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactOnSmartDelay_quickReplyFollowUp_active_key", - "entityType": "indexes", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "IntegrationTiktok_openId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "tagId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41922,16 +42932,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactToTag_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTag" + "name": "IntegrationWebchat_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -41943,65 +42953,58 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ContactToTagChannel_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" + "name": "IntegrationWebchat_inboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "tagId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ContactToTagChannel_tagId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ContactToTagChannel" + "name": "IntegrationWebchat_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": true, "columns": [ { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", + "value": "welcomeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"sourceId\" IS NOT NULL", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_contactId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationWebchat_welcomeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42009,20 +43012,20 @@ } ], "isUnique": true, - "where": "\"sourceId\" IS NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_contactId_dm_key", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationWhatsapp_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42034,23 +43037,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationWhatsapp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "responseDueAt", + "value": "handoverResumeFlowId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42058,37 +43054,37 @@ } ], "isUnique": false, - "where": "\"responseDueAt\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_workspaceId_responseDueAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": true, "columns": [ { - "value": "aiContextLastMessageId", + "value": "phoneNumberId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_aiContextLastMessageId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationWhatsapp_phoneNumberId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { @@ -42097,20 +43093,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "lastActivityAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -42118,16 +43100,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Conversation_workspaceId_lastActivityAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Conversation" + "name": "IntegrationZalo_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "fallbackFlowId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42139,16 +43121,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ConversationParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" + "name": "IntegrationZalo_fallbackFlowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "oaId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42160,23 +43142,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ConversationParticipant_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" + "name": "IntegrationZalo_oaId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": true, "columns": [ { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42188,12 +43163,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ConversationParticipant_conversationId_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "ConversationParticipant" + "name": "IntegrationZalo_inboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": true, "columns": [ { @@ -42204,73 +43179,80 @@ "opclass": null }, { - "value": "code", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "Leaderboard_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", + "value": "inboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Leaderboard_inboxId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "Leaderboard", + "nameExplicit": true, + "columns": [ { - "value": "issuedContactId", + "value": "minigameId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"issuedContactId\" IS NOT NULL", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_key", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "Leaderboard_minigameId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "topicId", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], @@ -42279,30 +43261,30 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "topicId", + "value": "score", "isExpression": false, - "asc": true, + "asc": false, "nullsFirst": false, "opclass": null }, { - "value": "issuedContactId", + "value": "scoredAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42310,41 +43292,27 @@ } ], "isUnique": false, - "where": null, + "where": "NOT \"isBanned\"", "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardParticipant_ranking_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": true, "columns": [ { - "value": "issuedContactId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Coupon_issuedContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "issuedAt", + "value": "referrerContactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42356,16 +43324,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_issuedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": true, "columns": [ { - "value": "usedAt", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42377,26 +43345,26 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardParticipant_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "code", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], @@ -42405,40 +43373,33 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_code_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "topicId", + "value": "leaderboardId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "issuedContactId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "usedAt", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], @@ -42447,12 +43408,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Coupon_workspaceId_topicId_issuedContactId_usedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Coupon" + "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "LeaderboardScoreEvent", "nameExplicit": true, "columns": [ { @@ -42461,33 +43422,47 @@ "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "LeaderboardScoreEvent_workspaceId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "MagicLink", + "nameExplicit": true, + "columns": [ { - "value": "status", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "deletedAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CouponTopic_workspaceId_status_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" + "name": "MagicLink_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MagicLink", "nameExplicit": true, "columns": [ { @@ -42496,13 +43471,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -42510,12 +43478,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "CouponTopic_workspaceId_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" + "name": "MagicLink_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MagicLinkStat", "nameExplicit": true, "columns": [ { @@ -42526,24 +43494,38 @@ "opclass": null }, { - "value": "lower(\"name\")", - "isExpression": true, + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], "isUnique": true, - "where": "\"deletedAt\" IS NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CouponTopic_workspaceId_name_idx", - "entityType": "indexes", - "schema": "public", - "table": "CouponTopic" + "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MediaLibraryFile", "nameExplicit": true, "columns": [ { @@ -42552,33 +43534,40 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MediaLibraryFile_workspaceId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "MediaLibraryFile", + "nameExplicit": true, + "columns": [ { - "value": "name", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CustomField_workspaceId_type_name_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomField" + "name": "MediaLibraryFile_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MediaLibraryFolder", "nameExplicit": true, "columns": [ { @@ -42594,40 +43583,47 @@ "with": "", "method": "btree", "concurrently": false, - "name": "DecisionConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" + "name": "MediaLibraryFolder_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "name", + "value": "createdAt", "isExpression": false, - "asc": true, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "DecisionConnection_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionConnection" + "name": "Message_conversation_history_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { @@ -42636,6 +43632,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -42643,20 +43646,34 @@ "with": "", "method": "btree", "concurrently": false, - "name": "DecisionProfile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" + "name": "Message_workspace_created_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { - "value": "connectionId", + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -42664,12 +43681,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "DecisionProfile_connectionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" + "name": "Message_contactInboxId_sourceId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { @@ -42680,24 +43697,38 @@ "opclass": null }, { - "value": "name", + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "DecisionProfile_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" + "name": "Message_conversationId_type_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Message", "nameExplicit": true, "columns": [ { @@ -42706,96 +43737,96 @@ "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": "\"globalRouterEnabled\" = true", - "with": "", - "method": "btree", - "concurrently": false, - "name": "DecisionProfile_workspaceId_globalRouter_key", - "entityType": "indexes", - "schema": "public", - "table": "DecisionProfile" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "parentId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "lower(\"code\")", - "isExpression": true, + "value": "type", + "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"parentId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "DiscountCode_workspaceId_code_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" + "name": "Message_parentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessageCleanup", "nameExplicit": true, "columns": [ { - "value": "categoryId", + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "DiscountCode_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCode" + "name": "MessageCleanup_inboxId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessageCleanup", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "name", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "DynamicImage_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "DynamicImage" + "name": "MessageCleanup_status_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessageCleanup", "nameExplicit": true, "columns": [ { @@ -42811,12 +43842,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceOpenHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "MessageCleanup_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { @@ -42827,21 +43858,21 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { - "value": "openHoursId", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42853,16 +43884,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_integrationWhatsappId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { - "value": "abandonedCartFlowId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42874,16 +43905,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_abandonedCartFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_integrationMessengerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": true, "columns": [ { - "value": "checkoutFlowId", + "value": "integrationInstagramId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42895,16 +43926,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_checkoutFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdOperation_integrationInstagramId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "orderConfirmationFlowId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42916,23 +43947,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EcommerceSettings_orderConfirmationFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EcommerceSettings" + "name": "MessagingAdsConnection_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -42944,123 +43968,95 @@ "with": "", "method": "btree", "concurrently": false, - "name": "EmailTopic_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" + "name": "MessagingAdsConnection_integrationWhatsappId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "folderId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "EmailTopic_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "EmailTopic" + "name": "MessagingAdsConnection_integrationMessengerId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationInstagramId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AuditLog_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" + "name": "MessagingAdsConnection_integrationInstagramId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "userId", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null } ], - "isUnique": false, - "where": "\"userId\" IS NOT NULL", + "isUnique": true, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "AuditLog_workspaceId_userId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" + "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "workspaceId", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "id", + "value": "flowId", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } @@ -43070,37 +44066,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "AuditLog_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "AuditLog" + "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": true, "columns": [ { - "value": "tenantId", + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "CustomDomain_tenantId_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" + "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": true, "columns": [ { - "value": "domain", + "value": "flowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "integrationMessengerId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43108,62 +44111,34 @@ } ], "isUnique": true, - "where": null, + "where": "\"status\" = 'current'", "with": "", "method": "btree", "concurrently": false, - "name": "CustomDomain_domain_key", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" + "name": "MessengerWelcomeMessageFlow_current_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "CustomDomain_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "CustomDomain" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "licenseId", + "value": "channel", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "License_licenseId_key", - "entityType": "indexes", - "schema": "public", - "table": "License" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "userId", + "value": "sourceKey", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43175,44 +44150,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "PlatformAdmin_userId_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformAdmin" + "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": true, "columns": [ { - "value": "ownerId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Tenant_ownerId_key", - "entityType": "indexes", - "schema": "public", - "table": "Tenant" + "name": "MetaCapiEvent_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": true, "columns": [ { - "value": "tenantId", + "value": "channel", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "position", + "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43224,86 +44199,86 @@ "with": "", "method": "btree", "concurrently": false, - "name": "TenantHelpItem_tenantId_position_idx", - "entityType": "indexes", - "schema": "public", - "table": "TenantHelpItem" + "name": "MetaCapiEvent_channel_integrationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": true, "columns": [ { - "value": "channelsTornDownAt", + "value": "integrationMetaCatalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "catalogId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "retailerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "UserQuota_channelsTornDownAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" + "name": "MetaCatalogItem_integration_retailer_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": true, "columns": [ { - "value": "userId", + "value": "integrationMetaCatalogId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": false, - "where": "\"channelsTornDownAt\" IS NULL AND \"planStatus\" = 'trial'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserQuota_due_expired_trial_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserQuota" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "catalogId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "createdAt", + "value": "productId", "isExpression": false, - "asc": false, - "nullsFirst": true, + "asc": true, + "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "ErrorLog_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" + "name": "MetaCatalogItem_integration_product_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43315,33 +44290,33 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ErrorLog_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" + "name": "MetaCatalogItem_productId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"status\" IN ('queued', 'running')", "with": "", "method": "btree", "concurrently": false, - "name": "ErrorLog_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ErrorLog" + "name": "MetaCatalogSyncRun_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniApp", "nameExplicit": true, "columns": [ { @@ -43350,13 +44325,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -43364,12 +44332,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_idx", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" + "name": "MiniApp_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniApp", "nameExplicit": true, "columns": [ { @@ -43380,14 +44348,7 @@ "opclass": null }, { - "value": "event", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "url", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43399,30 +44360,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "ExternalWebhook_workspaceId_event_url_key", - "entityType": "indexes", - "schema": "public", - "table": "ExternalWebhook" + "name": "MiniApp_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "pageId", + "value": "miniAppId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "formId", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43434,44 +44388,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FacebookLeadAdsAutomation_workspaceId_pageId_formId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": true, "columns": [ { - "value": "automationId", + "value": "miniAppId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "leadgenId", + "value": "createdAt", "isExpression": false, - "asc": true, - "nullsFirst": false, + "asc": false, + "nullsFirst": true, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookLeadAdsLead_automationId_leadgenId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "MiniAppSubmission_miniAppId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": true, "columns": [ { - "value": "leadgenId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43483,37 +44437,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FacebookLeadAdsLead_leadgenId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "MiniAppSubmission_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "uploadToken", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookMarketingMessage_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "MiniAppUpload_uploadToken_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "campaignId", + "value": "path", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43525,54 +44479,68 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FacebookMarketingMessage_campaignId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "MiniAppUpload_path_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "miniAppId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "inputName", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FacebookMarketingMessagesAuth_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "MiniAppUpload_miniAppId_inputName_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": true, "columns": [ { - "value": "path", + "value": "submissionId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "File_path_key", - "entityType": "indexes", - "schema": "public", - "table": "File" + "name": "MiniAppUpload_submissionId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Minigame", "nameExplicit": true, "columns": [ { @@ -43581,13 +44549,6 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "contextType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": false, @@ -43595,12 +44556,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "File_workspaceId_contextType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" + "name": "Minigame_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Minigame", "nameExplicit": true, "columns": [ { @@ -43611,56 +44572,49 @@ "opclass": null }, { - "value": "subType", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "File_workspaceId_subType_idx", - "entityType": "indexes", - "schema": "public", - "table": "File" + "name": "Minigame_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": true, "columns": [ { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", + "value": "minigameId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"deletedAt\" IS NULL", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "FlowAnalyticsSession_workspaceId_flowId_key", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "MinigameContact_minigameId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43672,44 +44626,72 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowAnalyticsSession_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowAnalyticsSession" + "name": "MinigameContact_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "minigameId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "analyticsId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigameContact_minigameId_contactId_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "MinigamePlay", + "nameExplicit": true, + "columns": [ { - "value": "nodeId", + "value": "minigameId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "eventType", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "MinigamePlay_minigameId_contactId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "MinigamePlay", + "nameExplicit": true, + "columns": [ { - "value": "buttonId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43721,72 +44703,79 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowNodeStat_filter_1_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" + "name": "MinigamePlay_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "analyticsId", + "value": "type", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "nodeId", + "value": "livemode", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "\"eventType\" = 'seen' AND \"seenAt\" IS NOT NULL", + "isUnique": true, + "where": "\"userId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "FlowNodeStat_filter_2_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowNodeStat" + "name": "PlatformCredential_user_type_livemode_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": true, "columns": [ { - "value": "conversationId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "livemode", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"userId\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "PlatformCredential_platform_type_livemode_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43798,16 +44787,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "PlatformCredential_userId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Product", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43819,16 +44808,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "Product_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Product", "nameExplicit": true, "columns": [ { - "value": "flowVersionId", + "value": "categoryId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43840,16 +44829,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowRun_flowVersionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowRun" + "name": "Product_categoryId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Product", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "subcategoryId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43861,16 +44850,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowVersion_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" + "name": "Product_subcategoryId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductAddon", "nameExplicit": true, "columns": [ { - "value": "flowId", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -43882,12 +44871,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "FlowVersion_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "FlowVersion" + "name": "ProductAddon_productId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": true, "columns": [ { @@ -43903,12 +44892,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Folder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" + "name": "ProductCategory_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": true, "columns": [ { @@ -43924,79 +44913,86 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Folder_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Folder" + "name": "ProductCategory_parentId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "ProductVariant", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ProductVariant_productId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ProductVariantOption", + "nameExplicit": true, + "columns": [ { - "value": "transactionId", + "value": "productId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_transactionId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "ProductVariantOption_productId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "submissionId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "occurredAt", + "value": "questionIdSnapshot", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_occurredAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": true, "columns": [ { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", + "value": "questionId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44008,16 +45004,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "QuestionnaireAnswer_questionId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Questionnaire", "nameExplicit": true, "columns": [ { - "value": "contactInboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44029,51 +45025,51 @@ "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "Questionnaire_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Questionnaire", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "nextProcessingCheckAt", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "(\"deletedAt\" is null)", "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_status_nextProcessingCheckAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "Questionnaire_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": true, "columns": [ { - "value": "status", + "value": "questionnaireId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "claimedAt", + "value": "orderNo", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44085,33 +45081,33 @@ "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsConversionEvent_status_claimedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "customFieldId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "GoogleAdsSettings_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "GoogleAdsSettings" + "name": "QuestionnaireQuestion_customFieldId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { @@ -44127,16 +45123,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IgStoryAutomation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" + "name": "QuestionnaireSubmission_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { - "value": "folderId", + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44148,16 +45151,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IgStoryAutomation_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" + "name": "QuestionnaireSubmission_questionnaireId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "questionnaireId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44169,12 +45179,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IgStoryAutomation_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IgStoryAutomation" + "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": true, "columns": [ { @@ -44185,7 +45195,28 @@ "opclass": null }, { - "value": "status", + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'inProgress'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "RefLinkStat", + "nameExplicit": true, + "columns": [ + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44197,12 +45228,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Import_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "RefLinkStat_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "RefLinkStat", "nameExplicit": true, "columns": [ { @@ -44213,56 +45244,70 @@ "opclass": null }, { - "value": "type", + "value": "linkId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Import_workspaceId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "type", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Import_inboxId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "Reflink_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": true, "columns": [ { - "value": "fileId", + "value": "savedReplyId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44274,86 +45319,93 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Import_fileId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "SavedReplyImage_savedReplyId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "mediaLibraryFileId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"type\" = 'products' AND \"status\" IN ('pending', 'processing')", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Import_products_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Import" + "name": "SavedReplyImage_mediaLibraryFileId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "savedReplyId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "mediaLibraryFileId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" + "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": true, "columns": [ { - "value": "token", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhook_token_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhook" + "name": "Sequence_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": true, "columns": [ { - "value": "inboundWebhookId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "idempotencyKey", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44361,48 +45413,48 @@ } ], "isUnique": true, - "where": "\"idempotencyKey\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "Sequence_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "inboundWebhookId", + "value": "idempotencyKey", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "createdAt", + "value": "workspaceId", "isExpression": false, - "asc": false, + "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_inboundWebhookId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SequenceDispatch_idempotencyKey_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "id", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44414,16 +45466,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SequenceDispatch_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44431,20 +45483,27 @@ } ], "isUnique": false, - "where": null, + "where": "\"status\" = 'pending'", "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SequenceDispatch_pending_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "bucket", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44452,20 +45511,27 @@ } ], "isUnique": false, - "where": null, + "where": "\"status\" = 'pending'", "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SequenceDispatch_pending_bucket_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44473,20 +45539,34 @@ } ], "isUnique": false, - "where": "\"status\" = 'received'", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_createdAt_received_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SequenceDispatch_status_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "claimedAt", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44494,20 +45574,27 @@ } ], "isUnique": false, - "where": "\"status\" = 'processing'", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_claimedAt_processing_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "createdAt", + "value": "enrollmentId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44519,12 +45606,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "InboundWebhookRequest_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "InboundWebhookRequest" + "name": "SequenceDispatch_enrollmentId_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { @@ -44533,6 +45620,27 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "sequenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "stepId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -44540,93 +45648,93 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Inbox_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" + "name": "SequenceDispatch_workspace_sequence_step_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "bucket", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "channel", + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "sourceId", + "value": "runAtMs", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Inbox_workspaceId_channel_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "Inbox" + "name": "SequenceDispatch_bucket_status_runAtMs_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "updatedAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"status\" in ('completed', 'failed', 'canceled')", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationActiveCampaign_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" + "name": "SequenceDispatch_terminal_updatedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationActiveCampaign_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationActiveCampaign" + "name": "SequenceDispatch_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44638,54 +45746,54 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationApi_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" + "name": "SequenceDispatch_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "sequenceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationApi_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" + "name": "SequenceStep_sequenceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": true, "columns": [ { - "value": "tokenHash", + "value": "flowId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationApi_tokenHash_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationApi" + "name": "SequenceStep_flowId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": true, "columns": [ { @@ -44701,12 +45809,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Integration_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Integration" + "name": "Spreadsheet_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": true, "columns": [ { @@ -44717,7 +45825,7 @@ "opclass": null }, { - "value": "integrationType", + "value": "spreadsheetId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44729,58 +45837,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Integration_workspaceId_integrationType_key", - "entityType": "indexes", - "schema": "public", - "table": "Integration" + "name": "Spreadsheet_workspaceId_spreadsheetId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "spreadsheetId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationClaude_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" + "name": "Spreadsheet_spreadsheetId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Tag", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationClaude_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationClaude" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "name", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44788,39 +45882,53 @@ } ], "isUnique": true, - "where": null, + "where": "(\"deletedAt\" is null)", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationDeepseek_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" + "name": "Tag_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Tag", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationDeepseek_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDeepseek" + "name": "Tag_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ + { + "value": "tagId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, { "value": "integrationId", "isExpression": false, @@ -44834,58 +45942,30 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationDrip_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" + "name": "TagChannel_tag_integration_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "channelType", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationDrip_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationDrip" - }, - { - "nameExplicit": true, - "columns": [ + }, { "value": "integrationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationFacebookAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "externalLabelId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44897,12 +45977,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationFacebookAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationFacebookAds" + "name": "TagChannel_external_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ { @@ -44911,42 +45991,35 @@ "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationGemini_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "integrationId", + "value": "channelType", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGemini_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGemini" + "name": "TagChannel_workspace_channel_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": true, "columns": [ + { + "value": "channelType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, { "value": "integrationId", "isExpression": false, @@ -44955,21 +46028,28 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGetResponse_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" + "name": "TagChannel_integration_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "chatId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -44981,33 +46061,33 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGetResponse_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGetResponse" + "name": "TelegramChat_inboxId_chatId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleAds_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" + "name": "TelegramChat_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Template", "nameExplicit": true, "columns": [ { @@ -45018,42 +46098,42 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleAds_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleAds" + "name": "Template_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Template", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "name": "Template_tenantId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Template", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "shareToken", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45065,12 +46145,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationGoogleSheet_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationGoogleSheet" + "name": "Template_shareToken_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": true, "columns": [ { @@ -45086,16 +46166,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "TemplateInstallation_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": true, "columns": [ { - "value": "welcomeFlowId", + "value": "templateId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45107,54 +46187,61 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "TemplateInstallation_templateId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "TemplateInstallation_workspaceId_status_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": true, "columns": [ { - "value": "igId", + "value": "installationId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationInstagram_igId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationInstagram" + "name": "TemplateInstalledResource_installationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": true, "columns": [ { @@ -45163,61 +46250,33 @@ "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "integrationId", + "value": "resourceKind", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationKlaviyo_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationKlaviyo" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "integrationId", + "value": "resourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailchimp_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { @@ -45226,19 +46285,26 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailchimp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailchimp" + "name": "Trigger_workspaceId_name_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { @@ -45249,38 +46315,38 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailerLite_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "Trigger_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMailerLite_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMailerLite" + "name": "Trigger_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": true, "columns": [ { @@ -45289,6 +46355,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -45296,16 +46369,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Trigger_workspaceId_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "welcomeFlowId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45317,16 +46397,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Condition_type_source_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "handoverResumeFlowId", + "value": "triggerId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45338,100 +46418,135 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Condition_triggerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "webhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Condition_webhookId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "pageId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "triggerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMessenger_pageId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMessenger" + "name": "Condition_type_sourceId_triggerId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Condition", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "webhookId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMetaCatalog_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "Condition_type_sourceId_webhookId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMetaCatalog_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "TriggerContactHistory_triggerId_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": true, "columns": [ { - "value": "deletedAt", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45443,12 +46558,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMetaCatalog_deletedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMetaCatalog" + "name": "TriggerContactHistory_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": true, "columns": [ { @@ -45459,84 +46574,70 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationMoosend_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" + "name": "TriggerContactHistory_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "triggerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - } - ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "IntegrationMoosend_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationMoosend" - }, - { - "nameExplicit": true, - "columns": [ + }, { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenAI_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" + "name": "TriggerExecution_triggerId_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenAI_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenai" + "name": "TriggerExecution_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45548,16 +46649,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "TriggerExecution_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "triggerId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45569,40 +46677,40 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenaiCompatible_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "TriggerStat_triggerId_date_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "triggerId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "preset", + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, - "where": "\"preset\" <> 'custom'", + "isUnique": false, + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenaiCompatible_workspaceId_preset_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "name": "TriggerStat_triggerId_date_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": true, "columns": [ { @@ -45611,103 +46719,110 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenrouter_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "TriggerStat_workspaceId_date_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "UserDeviceToken", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOpenrouter_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOpenrouter" + "name": "UserDeviceToken_userId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "UserPersistentMenu", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationOutlookCalendar_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "name": "UserPersistentMenu_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": true, "columns": [ { - "value": "integrationId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSendGrid_integrationId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "Webhook_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "folderId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSendGrid_workspaceId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSendGrid" + "name": "Webhook_folderId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": true, "columns": [ { @@ -45716,6 +46831,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "active", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -45723,16 +46845,23 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSmtp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" + "name": "Webhook_workspaceId_active_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "webhookId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45744,12 +46873,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationSmtp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationSmtp" + "name": "WebhookExecution_webhookId_contactId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": true, "columns": [ { @@ -45765,37 +46894,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTelegram_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" + "name": "WebhookExecution_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "contactId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTelegram_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" + "name": "WebhookExecution_contactId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "nameExplicit": true, "columns": [ { - "value": "botId", + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "wabaId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45807,37 +46943,37 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTelegram_botId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTelegram" + "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "wacid", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"wacid\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationThreads_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" + "name": "WhatsappCall_wacid_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "attemptId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45845,41 +46981,41 @@ } ], "isUnique": true, - "where": null, + "where": "\"attemptId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationThreads_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" + "name": "WhatsappCall_attemptId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "threadsUserId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationThreads_threadsUserId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationThreads" + "name": "WhatsappCall_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "conversationId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45891,62 +47027,83 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTiktok_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" + "name": "WhatsappCall_conversationId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTiktok_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" + "name": "WhatsappCall_contactInboxId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "openId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationTiktok_openId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationTiktok" + "name": "WhatsappCall_workspaceId_createdAt_id_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -45954,16 +47111,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_contactInboxId_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "createdAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -45971,41 +47128,55 @@ } ], "isUnique": false, - "where": null, + "where": "\"status\" = 'ringing'", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_ringing_createdAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null } ], - "isUnique": true, - "where": null, + "isUnique": false, + "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_resumableRinging_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { - "value": "welcomeFlowId", + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recordedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46013,16 +47184,16 @@ } ], "isUnique": false, - "where": null, + "where": "\"recordingPath\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWebchat_welcomeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWebchat" + "name": "WhatsappCall_recording_inboxId_recordedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": true, "columns": [ { @@ -46031,44 +47202,51 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": true, - "where": null, + "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCall_pendingOutbound_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "contactInboxId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCallPermission_contactInboxId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": true, "columns": [ { - "value": "handoverResumeFlowId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46080,12 +47258,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_handoverResumeFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCallPermission_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { @@ -46096,42 +47274,49 @@ "opclass": null } ], - "isUnique": true, + "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationWhatsapp_phoneNumberId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationWhatsapp" + "name": "WhatsappCoexistStaging_phoneNumberId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "phoneNumberId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "payloadHash", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationZalo_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "name": "WhatsappCoexistStaging_phone_hash_uq", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { - "value": "fallbackFlowId", + "value": "processedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46139,20 +47324,20 @@ } ], "isUnique": false, - "where": null, + "where": "\"processedAt\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationZalo_fallbackFlowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "name": "WhatsappCoexistStaging_processedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappCoexistStaging", "nameExplicit": true, "columns": [ { - "value": "oaId", + "value": "parseFailedAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46160,20 +47345,27 @@ } ], "isUnique": false, - "where": null, + "where": "\"parseFailedAt\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationZalo_oaId_idx", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "name": "WhatsappCoexistStaging_parseFailedAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappFlow", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "integrationWhatsappId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46185,44 +47377,44 @@ "with": "", "method": "btree", "concurrently": false, - "name": "IntegrationZalo_inboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "IntegrationZalo" + "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "integrationWhatsappId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "status", + "value": "sourceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, + "isUnique": true, "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "Leaderboard_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" + "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": true, "columns": [ { - "value": "inboxId", + "value": "userId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46234,16 +47426,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Leaderboard_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" + "name": "WhatsappSignupSession_userId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": true, "columns": [ { - "value": "minigameId", + "value": "expiresAt", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46255,27 +47447,20 @@ "with": "", "method": "btree", "concurrently": false, - "name": "Leaderboard_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Leaderboard" + "name": "WhatsappSignupSession_expiresAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHours", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -46283,12 +47468,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardAuditLog_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "WorkingHours_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": true, "columns": [ { @@ -46297,65 +47482,65 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "date", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], - "isUnique": false, - "where": null, + "isUnique": true, + "where": "\"workingHoursId\" IS NULL", "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardAuditLog_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardAuditLog" + "name": "WorkingHoursDateOverride_workspace_date_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "workingHoursId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "score", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "scoredAt", + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null } ], - "isUnique": false, - "where": "NOT \"isBanned\"", + "isUnique": true, + "where": "\"workingHoursId\" IS NOT NULL", "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_ranking_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursDateOverride_schedule_date_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "workspaceId", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null }, { - "value": "referrerContactId", + "value": "date", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46367,16 +47552,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_leaderboardId_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursDateOverride_workspaceId_date_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursInterval", "nameExplicit": true, "columns": [ { - "value": "contactId", + "value": "workingHoursId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46388,16 +47573,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursInterval_workingHoursId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkingHoursMember", "nameExplicit": true, "columns": [ { - "value": "workspaceId", + "value": "workingHoursId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46409,16 +47594,16 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "WorkingHoursMember_workingHoursId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": true, "columns": [ { - "value": "referrerContactId", + "value": "tenantId", "isExpression": false, "asc": true, "nullsFirst": false, @@ -46426,31 +47611,24 @@ } ], "isUnique": false, - "where": "\"referrerContactId\" IS NOT NULL", + "where": null, "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardParticipant_referrerContactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardParticipant" + "name": "Workspace_tenantId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", + "value": "scheduledDeletionAt", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -46458,34 +47636,20 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "Workspace_scheduledDeletionAt_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": true, "columns": [ { - "value": "leaderboardId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", + "value": "supportAccessUntil", "isExpression": false, "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null } ], "isUnique": false, @@ -46493,12 +47657,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardScoreEvent_leaderboardId_contactId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "Workspace_supportAccessUntil_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkspaceApiToken", "nameExplicit": true, "columns": [ { @@ -46514,12 +47678,12 @@ "with": "", "method": "btree", "concurrently": false, - "name": "LeaderboardScoreEvent_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "LeaderboardScoreEvent" + "name": "WorkspaceApiToken_workspaceId_idx", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkspaceApiToken", "nameExplicit": true, "columns": [ { @@ -46528,26 +47692,19 @@ "asc": true, "nullsFirst": false, "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null } ], "isUnique": true, - "where": null, + "where": "\"isDefault\"", "with": "", "method": "btree", "concurrently": false, - "name": "MagicLink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLink" + "name": "WorkspaceApiToken_workspaceId_default_key", + "entityType": "indexes" }, { + "schema": "public", + "table": "WorkspaceMember", "nameExplicit": true, "columns": [ { @@ -46556,6 +47713,13 @@ "asc": true, "nullsFirst": false, "opclass": null + }, + { + "value": "userId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null } ], "isUnique": false, @@ -46563,4986 +47727,3973 @@ "with": "", "method": "btree", "concurrently": false, - "name": "MagicLink_workspaceId_idx", - "entityType": "indexes", + "name": "WorkspaceMember_workspaceId_userId_idx", + "entityType": "indexes" + }, + { + "schema": "public", + "table": "ShardTimeRange", + "nameExplicit": false, + "columns": [ + "shardId" + ], + "schemaTo": "public", + "tableTo": "MessageShard", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ShardTimeRange_shardId_MessageShard_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationWhatsappId" + ], + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_k99JXbMObQIn_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationFacebookAdsId" + ], + "schemaTo": "public", + "tableTo": "IntegrationFacebookAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationMessengerId" + ], + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_3zzAptVRRuZD_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AdsConversionRule", + "nameExplicit": false, + "columns": [ + "integrationInstagramId" + ], + "schemaTo": "public", + "tableTo": "IntegrationInstagram", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AdsConversionRule_HUibBtSUZbML_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIAgent", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIAgent_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationEmbedding", + "nameExplicit": false, + "columns": [ + "sourceId" + ], + "schemaTo": "public", + "tableTo": "AIConversationSource", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationEmbedding", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationEmbedding", + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationSource", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIConversationSource", + "nameExplicit": false, + "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIConversationSource_conversationId_Conversation_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "AIEmbedding", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "MagicLink" + "table": "AIEmbedding", + "nameExplicit": false, + "columns": [ + "aiFileId" + ], + "schemaTo": "public", + "tableTo": "AIFile", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIEmbedding_aiFileId_AIFile_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIFile", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MagicLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "MagicLinkStat" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFile_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIFunction", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "triggerFlowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIFunction_triggerFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIFunction", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFile_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFile" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIFunction_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverBulkRun", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MediaLibraryFolder_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MediaLibraryFolder" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverBulkRun", + "nameExplicit": false, "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversation_history_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverBulkRun", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "requestedByUserId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_workspace_created_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_contactInboxId_sourceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_conversationId_type_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "gotoFlowId" ], - "isUnique": false, - "where": "\"parentId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Message_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Message" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIHandoverSettings", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "applyToAllRequestedByUserId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_inboxId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AIMCPServer", + "nameExplicit": false, "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_status_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AIMCPServer_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsAgentResponseEvent", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessageCleanup_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessageCleanup" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsBotMessageEvent", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsBroadcastEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationWhatsappId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "MessagingAdOperation" + "table": "AnalyticsContactEvent", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsConversationEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsFlowNodeEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdOperation_integrationInstagramId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdOperation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsMessageEvent", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsSequenceEvent", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationMessengerId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "integrationInstagramId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessagingAdsConnection_integrationInstagramId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessagingAdsConnection" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerMessageTemplate_integrationMessengerId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerMessageTemplate" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AnalyticsEmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_workspaceId_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_integrationMessengerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationMessengerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "calendarId" ], - "isUnique": true, - "where": "\"status\" = 'current'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MessengerWelcomeMessageFlow_current_key", - "entityType": "indexes", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_workspaceId_channel_sourceKey_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Appointment_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Appointment", + "nameExplicit": false, "columns": [ - { - "value": "channel", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCapiEvent_channel_integrationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCapiEvent" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Appointment_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "retailerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_retailer_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "integrationMetaCatalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "catalogId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "confirmationFlowId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_integration_product_key", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "cancellationFlowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogItem_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogItem" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendar", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "externalConnectionId" ], - "isUnique": true, - "where": "\"status\" IN ('queued', 'running')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "MetaCatalogSyncRun_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "MetaCatalogSyncRun" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendarAvailability", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "calendarId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendarReminder", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "calendarId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniApp_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniApp" + "schemaTo": "public", + "tableTo": "AppointmentCalendar", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentCalendarReminder", + "nameExplicit": false, "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppPublication_miniAppId_integrationWhatsappId_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppPublication" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": true, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_miniAppId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "appointmentId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppSubmission_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppSubmission" + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "uploadToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "reminderConfigId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_uploadToken_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "AppointmentCalendarReminder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AppointmentReminderDispatch", + "nameExplicit": false, "columns": [ - { - "value": "path", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_path_key", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Account", + "nameExplicit": false, "columns": [ - { - "value": "miniAppId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "inputName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_miniAppId_inputName_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Account_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Account", + "nameExplicit": false, "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MiniAppUpload_submissionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MiniAppUpload" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Account_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Invitation", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Invitation", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "invitedBy" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Minigame_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Minigame" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Invitation_invitedBy_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Session", + "nameExplicit": false, "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Session_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "User", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "User_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomatedResponse", + "nameExplicit": false, "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigameContact_minigameId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "MinigameContact" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomatedResponse", + "nameExplicit": false, "columns": [ - { - "value": "minigameId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_minigameId_contactId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_folderId_Folder_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "MinigamePlay" + "table": "AutomatedResponse", + "nameExplicit": false, + "columns": [ + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AutomatedResponse_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomationThrottle", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "MinigamePlay_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "MinigamePlay" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "AutomationThrottle", + "nameExplicit": false, "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_orderId_key", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BotField", + "nameExplicit": false, "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BotField_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BotField", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "DiscountCodeRedemption_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "DiscountCodeRedemption" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BotField_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_orderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Broadcast_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationWhatsappId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_workspaceId_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "IntegrationWhatsapp", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "variantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationMessengerId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_variantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "IntegrationMessenger", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Broadcast", + "nameExplicit": false, "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "parentBroadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderItem_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderItem" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrence", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "number", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_number_key", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrence", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "broadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "recurrenceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "BroadcastRecurrence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "childBroadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastTarget", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "broadcastId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_inboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastTarget", + "nameExplicit": false, "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "BroadcastTarget_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "BroadcastTarget", + "nameExplicit": false, "columns": [ - { - "value": "discountCodeId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Order_discountCodeId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Order" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "BroadcastTarget_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ChannelPost", + "nameExplicit": false, "columns": [ - { - "value": "orderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_orderId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ChannelPost", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ChannelPost_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CoexistSyncRun", + "nameExplicit": false, "columns": [ - { - "value": "actorUserId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "requestedByUserId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "OrderStatusHistory_actorUserId_idx", - "entityType": "indexes", - "schema": "public", - "table": "OrderStatusHistory" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomation", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"userId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_user_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomation", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "livemode", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": true, - "where": "\"userId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_platform_type_livemode_key", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomation_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomation", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "PlatformCredential_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "PlatformCredential" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_subcategoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationEvent", + "nameExplicit": false, "columns": [ - { - "value": "vendorId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Product_vendorId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Product" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductAddon_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductAddon" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "parentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductCategory_parentId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductCategory" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationMiss", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariant_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariant" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationReply", + "nameExplicit": false, "columns": [ - { - "value": "productId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "ProductVariantOption_productId_idx", - "entityType": "indexes", - "schema": "public", - "table": "ProductVariantOption" + "schemaTo": "public", + "tableTo": "CommentAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CommentAutomationReply", + "nameExplicit": false, "columns": [ - { - "value": "submissionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "questionIdSnapshot", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_submissionId_questionIdSnapshot_key", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_contactId_Contact_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "QuestionnaireAnswer" + "table": "CommentAutomationReply", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConnectSession", + "nameExplicit": false, "columns": [ - { - "value": "questionId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireAnswer_questionId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireAnswer" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConnectSession", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "targetConnectionId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" + "schemaTo": "public", + "tableTo": "Connection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConnectSession_targetConnectionId_Connection_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConnectSession", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "actorUserId" ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Questionnaire_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Questionnaire" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConnectSession", + "nameExplicit": false, "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "orderNo", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "actorTokenId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_questionnaireId_orderNo_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" + "schemaTo": "public", + "tableTo": "WorkspaceApiToken", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "customFieldId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireQuestion_customFieldId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireQuestion" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Connection_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Connection", + "nameExplicit": false, "columns": [ - { - "value": "questionnaireId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "createdBy" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_questionnaireId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Connection_createdBy_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Contact", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"status\" = 'inProgress'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "QuestionnaireSubmission_workspaceId_contactId_active_key", - "entityType": "indexes", - "schema": "public", - "table": "QuestionnaireSubmission" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Contact_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactCustomField", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactCustomField", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "linkId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "occurredAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "customFieldId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "RefLinkStat_workspaceId_linkId_occurredAt_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "RefLinkStat" + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactCustomField_customFieldId_CustomField_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactInbox", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Reflink_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Reflink" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactInbox", + "nameExplicit": false, "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SavedReplyImage" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactInbox_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactNote", + "nameExplicit": false, "columns": [ - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_mediaLibraryFileId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_contactId_Contact_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "SavedReplyImage" + "table": "ContactNote", + "nameExplicit": false, + "columns": [ + "createdById" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactNote_createdById_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": false, "columns": [ - { - "value": "savedReplyId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "mediaLibraryFileId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "broadcastId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SavedReplyImage_savedReplyId_mediaLibraryFileId_key", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Broadcast", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "SavedReplyImage" + "table": "ContactOnBroadcast", + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnBroadcast", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Sequence_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Sequence" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSequence", + "nameExplicit": false, "columns": [ - { - "value": "idempotencyKey", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_idempotencyKey_key", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSequence", + "nameExplicit": false, "columns": [ - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "sequenceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Sequence", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSequence", + "nameExplicit": false, "columns": [ - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSmartDelay", + "nameExplicit": false, "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": "\"status\" = 'pending'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_pending_bucket_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSmartDelay", + "nameExplicit": false, "columns": [ - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "appointmentId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Appointment", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactOnSmartDelay", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspaceId_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTag", + "nameExplicit": false, "columns": [ - { - "value": "enrollmentId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_enrollmentId_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTag", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tagId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_workspace_sequence_step_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTag_tagId_Tag_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTagChannel", + "nameExplicit": false, "columns": [ - { - "value": "bucket", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "runAtMs", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tagId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_bucket_status_runAtMs_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Tag", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagId_Tag_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTagChannel", + "nameExplicit": false, "columns": [ - { - "value": "updatedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tagChannelId" ], - "isUnique": false, - "where": "\"status\" in ('completed', 'failed', 'canceled')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_terminal_updatedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "TagChannel", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactToTagChannel", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactInboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Conversation", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "assignedUserId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedUserId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Conversation", + "nameExplicit": false, "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "assignedInboxTeamId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_sequenceId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "SequenceDispatch" + "table": "Conversation", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Conversation", + "nameExplicit": false, "columns": [ - { - "value": "stepId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceDispatch_stepId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceDispatch" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Conversation_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": false, "columns": [ - { - "value": "sequenceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_sequenceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": false, "columns": [ - { - "value": "flowId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "SequenceStep_flowId_idx", - "entityType": "indexes", - "schema": "public", - "table": "SequenceStep" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ConversationParticipant", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ConversationParticipant_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Coupon", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_workspaceId_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Coupon", + "nameExplicit": false, "columns": [ - { - "value": "spreadsheetId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "topicId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Spreadsheet_spreadsheetId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Spreadsheet" + "schemaTo": "public", + "tableTo": "CouponTopic", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Coupon_topicId_CouponTopic_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Coupon", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "issuedContactId" ], - "isUnique": true, - "where": "(\"deletedAt\" is null)", - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Tag" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Coupon_issuedContactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CouponTopic", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Tag_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Tag" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CouponTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CouponTopic", + "nameExplicit": false, "columns": [ - { - "value": "tagId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "createdById" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_tag_integration_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CouponTopic_createdById_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CustomField", + "nameExplicit": false, "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "externalLabelId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_external_key", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "CustomField_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CustomField", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_workspace_channel_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomField_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DecisionConnection", + "nameExplicit": false, "columns": [ - { - "value": "channelType", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "integrationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TagChannel_integration_idx", - "entityType": "indexes", - "schema": "public", - "table": "TagChannel" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DecisionProfile", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "chatId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_inboxId_chatId_key", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DecisionProfile_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DecisionProfile", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "connectionId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TelegramChat_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TelegramChat" + "schemaTo": "public", + "tableTo": "DecisionConnection", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DynamicImage", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Template" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DynamicImage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "DynamicImage", + "nameExplicit": false, "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "customFieldId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_tenantId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "CustomField", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DynamicImage_customFieldId_CustomField_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Template" + "table": "EmailTopic", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EmailTopic_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "EmailTopic", + "nameExplicit": false, "columns": [ - { - "value": "shareToken", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Template_shareToken_key", - "entityType": "indexes", - "schema": "public", - "table": "Template" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EmailTopic_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "AuditLog_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "AuditLog", "nameExplicit": true, "columns": [ - { - "value": "templateId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_templateId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "AuditLog_userId_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "CustomDomain", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "status", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstallation_workspaceId_status_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstallation" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "CustomDomain_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "PlatformAdmin", + "nameExplicit": false, "columns": [ - { - "value": "installationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_installationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "PlatformAdmin_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Tenant", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceKind", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "resourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "ownerId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TemplateInstalledResource_workspaceId_resourceKind_resourceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TemplateInstalledResource" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Tenant_ownerId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "TenantHelpItem", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "name", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "tenantId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_name_key", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "Tenant", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TenantHelpItem_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "UserQuota", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "UserQuota_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "WorkspaceUsage", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ErrorLog", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Trigger_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Trigger" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ErrorLog_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ErrorLog", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_source_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "ErrorLog_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ExternalWebhook", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookLeadAdsAutomation", + "nameExplicit": false, "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_webhookId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookLeadAdsLead", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "automationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_triggerId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Condition" + "schemaTo": "public", + "tableTo": "FacebookLeadAdsAutomation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookLeadAdsLead", + "nameExplicit": false, "columns": [ - { - "value": "type", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Condition_type_sourceId_webhookId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Condition" + "table": "FacebookMarketingMessage", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FacebookMarketingMessagesAuth", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "File", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "File_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "File", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerContactHistory_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerContactHistory" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "File_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Flow", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_triggerId_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Flow_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Flow", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Flow_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowNodeStat", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerExecution" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_key", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "triggerId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_triggerId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowVersionId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "TriggerStat_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "TriggerStat" + "schemaTo": "public", + "tableTo": "FlowVersion", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowRun", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "conversationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserDeviceToken_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserDeviceToken" + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowRun_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowVersion", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "UserPersistentMenu_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "UserPersistentMenu" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "FlowVersion", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "flowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "FlowVersion_flowId_Flow_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Folder", + "nameExplicit": false, "columns": [ - { - "value": "openHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_openHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Folder_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "nameExplicit": false, "columns": [ - { - "value": "categoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_categoryId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Vendor" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "GoogleAdsConversionEvent", + "nameExplicit": false, "columns": [ - { - "value": "subcategoryId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationGoogleAdsId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_subcategoryId_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "IntegrationGoogleAds", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Vendor" + "table": "GoogleAdsConversionEvent", + "nameExplicit": false, + "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "GoogleAdsSettings", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "lower(\"name\")", - "isExpression": true, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Vendor_workspaceId_name_key", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "Vendor" + "table": "IgStoryAutomation", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IgStoryAutomation", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "folderId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" + "schemaTo": "public", + "tableTo": "Folder", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IgStoryAutomation_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IgStoryAutomation", + "nameExplicit": false, "columns": [ - { - "value": "folderId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_folderId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "active", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Webhook_workspaceId_active_idx", - "entityType": "indexes", - "schema": "public", - "table": "Webhook" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "webhookId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_webhookId_contactId_key", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Import_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Import_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Import", + "nameExplicit": false, "columns": [ - { - "value": "contactId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "fileId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WebhookExecution_contactId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WebhookExecution" + "schemaTo": "public", + "tableTo": "File", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "RESTRICT", + "name": "Import_fileId_File_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhook", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "wabaId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappBusinessAccount_workspaceId_wabaId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappBusinessAccount" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhook_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "wacid", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"wacid\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_wacid_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "attemptId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboundWebhookId" ], - "isUnique": true, - "where": "\"attemptId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_attemptId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "InboundWebhook", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboundWebhookRequest", + "nameExplicit": false, "columns": [ - { - "value": "conversationId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "contactId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_conversationId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "InboundWebhookRequest_contactId_Contact_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Inbox", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Inbox_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxContactStat", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - }, - { - "value": "id", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_workspaceId_createdAt_id_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxContactStat_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxTeam", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_contactInboxId_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeam_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxTeamMember", + "nameExplicit": false, "columns": [ - { - "value": "createdAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxTeamId" ], - "isUnique": false, - "where": "\"status\" = 'ringing'", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_ringing_createdAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "InboxTeam", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "InboxTeamMember", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "createdAt", - "isExpression": false, - "asc": false, - "nullsFirst": false, - "opclass": null - } + "userId" ], - "isUnique": false, - "where": "\"status\" = 'ringing' AND \"wacid\" IS NOT NULL AND \"answeredByUserId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_resumableRinging_idx", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "InboxTeamMember_userId_User_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "WhatsappCall" + "table": "IntegrationActiveCampaign", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationActiveCampaign", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "recordedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": "\"recordingPath\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_recording_inboxId_recordedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationApi", + "nameExplicit": false, "columns": [ - { - "value": "inboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"direction\" = 'businessInitiated' AND \"status\" IN ('ringing', 'accepted')", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCall_pendingOutbound_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCall" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationApi", + "nameExplicit": false, "columns": [ - { - "value": "contactInboxId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_contactInboxId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationApi_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Integration", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCallPermission_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCallPermission" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Integration_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationClaude", + "nameExplicit": false, "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phoneNumberId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationClaude", + "nameExplicit": false, "columns": [ - { - "value": "phoneNumberId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "payloadHash", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_phone_hash_uq", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationClaude_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDeepseek", + "nameExplicit": false, "columns": [ - { - "value": "processedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": "\"processedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_processedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDeepseek", + "nameExplicit": false, "columns": [ - { - "value": "parseFailedAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": "\"parseFailedAt\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappCoexistStaging_parseFailedAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappCoexistStaging" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDrip", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappFlow_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappFlow" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationDrip", + "nameExplicit": false, "columns": [ - { - "value": "integrationWhatsappId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "sourceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": true, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappMessageTemplate_integrationWhatsappId_sourceId_key", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappMessageTemplate" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationDrip_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationFacebookAds", + "nameExplicit": false, "columns": [ - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationFacebookAds", + "nameExplicit": false, "columns": [ - { - "value": "expiresAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WhatsappSignupSession_expiresAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "WhatsappSignupSession" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGemini", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHours_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHours" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGemini", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": true, - "where": "\"workingHoursId\" IS NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspace_date_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGemini_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGetResponse", + "nameExplicit": false, "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": true, - "where": "\"workingHoursId\" IS NOT NULL", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_schedule_date_key", - "entityType": "indexes", + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "IntegrationGetResponse", + "nameExplicit": false, + "columns": [ + "integrationId" + ], + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleAds", + "nameExplicit": false, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "date", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursDateOverride_workspaceId_date_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursDateOverride" + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleAds", + "nameExplicit": false, "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursInterval_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursInterval" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleCalendar", + "nameExplicit": false, "columns": [ - { - "value": "workingHoursId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkingHoursMember_workingHoursId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkingHoursMember" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleCalendar", + "nameExplicit": false, "columns": [ - { - "value": "tenantId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_tenantId_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleSheet", + "nameExplicit": false, "columns": [ - { - "value": "scheduledDeletionAt", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_scheduledDeletionAt_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "IntegrationGoogleSheet", + "nameExplicit": false, "columns": [ - { - "value": "supportAccessUntil", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "integrationId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "Workspace_supportAccessUntil_idx", - "entityType": "indexes", - "schema": "public", - "table": "Workspace" + "schemaTo": "public", + "tableTo": "Integration", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "workspaceId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "inboxId" ], - "isUnique": true, - "where": "\"isDefault\"", - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceApiToken_workspaceId_default_key", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceApiToken" + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "IntegrationInstagram_inboxId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationInstagram", "nameExplicit": true, "columns": [ - { - "value": "workspaceId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - }, - { - "value": "userId", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } + "welcomeFlowId" ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceMember_workspaceId_userId_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceMember" + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationInstagram_welcomeFlowId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": false, "columns": [ - "shardId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "MessageShard", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ShardTimeRange_shardId_MessageShard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ShardTimeRange" + "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationKlaviyo", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": false, "columns": [ - "integrationWhatsappId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_IENNsXLBb1k1_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailchimp", "nameExplicit": false, "columns": [ - "integrationMessengerId" + "integrationId" ], "schemaTo": "public", - "tableTo": "IntegrationMessenger", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_yeTDEtvJMs4H_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": false, "columns": [ - "integrationInstagramId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationInstagram", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionEvent_1X1qUqZpm24x_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMailerLite", "nameExplicit": false, "columns": [ - "contactInboxId" + "integrationId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionEvent" + "onDelete": "CASCADE", + "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": false, "columns": [ "workspaceId" @@ -51554,80 +51705,97 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": false, "columns": [ - "integrationWhatsappId" + "inboxId" ], "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_k99JXbMObQIn_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMessenger", "nameExplicit": false, "columns": [ - "integrationFacebookAdsId" + "welcomeFlowId" ], "schemaTo": "public", - "tableTo": "IntegrationFacebookAds", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AdsConversionRule_fBmu8W26Mw5R_fkey", - "entityType": "fks", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "AdsConversionRule" + "table": "IntegrationMessenger", + "nameExplicit": false, + "columns": [ + "handoverResumeFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": false, "columns": [ - "integrationMessengerId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationMessenger", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_3zzAptVRRuZD_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMetaCatalog", "nameExplicit": false, "columns": [ - "integrationInstagramId" + "integrationId" ], "schemaTo": "public", - "tableTo": "IntegrationInstagram", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AdsConversionRule_HUibBtSUZbML_fkey", - "entityType": "fks", - "schema": "public", - "table": "AdsConversionRule" + "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": false, "columns": [ "workspaceId" @@ -51639,29 +51807,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIAgent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIAgent" + "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationMoosend", "nameExplicit": false, "columns": [ - "sourceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "AIConversationSource", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationEmbedding_sourceId_AIConversationSource_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "IntegrationMoosend_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": false, "columns": [ "workspaceId" @@ -51673,63 +51841,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationEmbedding" + "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenai", "nameExplicit": false, "columns": [ - "conversationId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationEmbedding_conversationId_Conversation_id_fkey", - "entityType": "fks", + "name": "IntegrationOpenai_integrationId_Integration_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "AIConversationEmbedding" + "table": "IntegrationOpenai", + "nameExplicit": false, + "columns": [ + "aiAgentId" + ], + "schemaTo": "public", + "tableTo": "AIAgent", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationSource_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" + "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenaiCompatible", "nameExplicit": false, "columns": [ - "conversationId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIConversationSource_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIConversationSource" + "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": false, "columns": [ "workspaceId" @@ -51741,29 +51926,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIEmbedding_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" + "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOpenrouter", "nameExplicit": false, "columns": [ - "aiFileId" + "integrationId" ], "schemaTo": "public", - "tableTo": "AIFile", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIEmbedding_aiFileId_AIFile_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIEmbedding" + "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "nameExplicit": false, "columns": [ "workspaceId" @@ -51775,29 +51960,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFile" + "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationOutlookCalendar", "nameExplicit": false, "columns": [ - "triggerFlowId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIFunction_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" + "onDelete": "CASCADE", + "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": false, "columns": [ "workspaceId" @@ -51809,63 +51994,63 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIFunction_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIFunction" + "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSendGrid", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Integration", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": false, "columns": [ - "inboxId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverBulkRun_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" + "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationSmtp", "nameExplicit": false, "columns": [ - "requestedByUserId" + "inboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverBulkRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverBulkRun" + "onDelete": "CASCADE", + "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": false, "columns": [ "workspaceId" @@ -51877,12 +52062,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTelegram", "nameExplicit": false, "columns": [ "inboxId" @@ -51894,46 +52079,46 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIHandoverSettings_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": false, "columns": [ - "gotoFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_gotoFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "onDelete": "CASCADE", + "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationThreads", "nameExplicit": false, "columns": [ - "applyToAllRequestedByUserId" + "inboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AIHandoverSettings_applyToAllRequestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIHandoverSettings" + "onDelete": "CASCADE", + "name": "IntegrationThreads_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": false, "columns": [ "workspaceId" @@ -51945,29 +52130,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AIMCPServer_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AIMCPServer" + "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationTiktok", "nameExplicit": false, "columns": [ - "workspaceId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Inbox", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsAgentResponseEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" + "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": false, "columns": [ "workspaceId" @@ -51977,65 +52162,65 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsBotMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" + "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": false, "columns": [ - "workspaceId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Inbox", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsBroadcastEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" + "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWebchat", "nameExplicit": false, "columns": [ - "workspaceId" + "welcomeFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsContactEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsContactEvent" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": false, "columns": [ - "workspaceId" + "handoverResumeFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "AnalyticsConversationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsConversationEvent" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": false, "columns": [ "workspaceId" @@ -52045,31 +52230,31 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsFlowNodeEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" + "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationWhatsapp", "nameExplicit": false, "columns": [ - "workspaceId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Inbox", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsMessageEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsMessageEvent" + "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": false, "columns": [ "workspaceId" @@ -52079,303 +52264,303 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsSequenceEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsSequenceEvent" + "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": false, "columns": [ - "topicId" + "inboxId" ], "schemaTo": "public", - "tableTo": "EmailTopic", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "IntegrationZalo_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "IntegrationZalo", "nameExplicit": false, "columns": [ - "workspaceId" + "fallbackFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AnalyticsEmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "onDelete": "SET NULL", + "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "onDelete": "CASCADE", + "name": "Leaderboard_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "conversationId" + "inboxId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "Leaderboard_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "contactInboxId" + "minigameId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Minigame", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "AnalyticsEmailTopic_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AnalyticsEmailTopic" + "name": "Leaderboard_minigameId_Minigame_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Leaderboard", "nameExplicit": false, "columns": [ - "workspaceId" + "referralWelcomeFlowId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Appointment_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "onDelete": "SET NULL", + "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "calendarId" + "leaderboardId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendar", + "tableTo": "Leaderboard", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Appointment_calendarId_AppointmentCalendar_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "onDelete": "CASCADE", + "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Appointment_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "conversationId" + "contactId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Appointment_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardAuditLog", "nameExplicit": false, "columns": [ - "contactInboxId" + "actorUserId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Appointment_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Appointment" + "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "workspaceId" + "leaderboardId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Leaderboard", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "confirmationFlowId" + "contactId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_confirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "cancellationFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentCalendar_cancellationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "onDelete": "CASCADE", + "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "LeaderboardParticipant", "nameExplicit": false, "columns": [ - "externalConnectionId" + "referrerContactId" ], "schemaTo": "public", - "tableTo": "Integration", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "AppointmentCalendar_externalConnectionId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendar" + "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MagicLink", "nameExplicit": false, "columns": [ - "calendarId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendar", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendarAvailability_QfahoIQAX592_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarAvailability" + "name": "MagicLink_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MagicLinkStat", "nameExplicit": false, "columns": [ - "calendarId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendar", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_5O4INfYC3dY3_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" + "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MagicLinkStat", "nameExplicit": false, "columns": [ - "flowId" + "linkId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "MagicLink", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentCalendarReminder_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentCalendarReminder" + "name": "MagicLinkStat_linkId_MagicLink_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MediaLibraryFile", "nameExplicit": false, "columns": [ "workspaceId" @@ -52387,117 +52572,117 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MediaLibraryFile", "nameExplicit": false, "columns": [ - "appointmentId" + "folderId" ], "schemaTo": "public", - "tableTo": "Appointment", + "tableTo": "MediaLibraryFolder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "onDelete": "SET NULL", + "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MediaLibraryFolder", "nameExplicit": false, "columns": [ - "reminderConfigId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "AppointmentCalendarReminder", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AppointmentReminderDispatch_a526jJM55OD7_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "contactInboxId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AppointmentReminderDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AppointmentReminderDispatch" + "onDelete": "CASCADE", + "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "userId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Account_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" + "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "tenantId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Account_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Account" + "onDelete": "CASCADE", + "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationInstagramId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationInstagram", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Invitation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" + "name": "MessagingAdOperation_LwL2ykeZegup_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdOperation", "nameExplicit": false, "columns": [ - "invitedBy" + "createdBy" ], "schemaTo": "public", "tableTo": "User", @@ -52505,98 +52690,98 @@ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Invitation_invitedBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Invitation" + "onDelete": "SET NULL", + "name": "MessagingAdOperation_createdBy_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "userId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Session_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Session" + "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "tenantId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "User_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "User" + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AutomatedResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" + "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessagingAdsConnection", "nameExplicit": false, "columns": [ - "folderId" + "integrationInstagramId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "IntegrationInstagram", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" + "onDelete": "CASCADE", + "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessengerMessageTemplate", "nameExplicit": false, "columns": [ - "flowId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AutomatedResponse_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomatedResponse" + "onDelete": "CASCADE", + "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": false, "columns": [ "workspaceId" @@ -52608,148 +52793,148 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AutomationThrottle_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" + "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "nameExplicit": false, "columns": [ - "contactInboxId" + "integrationMessengerId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "IntegrationMessenger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AutomationThrottle_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "AutomationThrottle" + "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": false, "columns": [ - "folderId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BotField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" + "onDelete": "CASCADE", + "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCapiEvent", "nameExplicit": false, "columns": [ - "workspaceId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BotField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BotField" + "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationMetaCatalogId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationMetaCatalog", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Broadcast_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "name": "MetaCatalogItem_wJXyKUssR08y_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogItem", "nameExplicit": false, "columns": [ - "flowId" + "productId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Product", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Broadcast_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "name": "MetaCatalogItem_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": false, "columns": [ - "integrationWhatsappId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": false, "columns": [ - "integrationMessengerId" + "integrationMetaCatalogId" ], "schemaTo": "public", - "tableTo": "IntegrationMessenger", + "tableTo": "IntegrationMetaCatalog", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Broadcast_integrationMessengerId_IntegrationMessenger_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "onDelete": "CASCADE", + "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MetaCatalogSyncRun", "nameExplicit": false, "columns": [ - "parentBroadcastId" + "categoryId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Broadcast_parentBroadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Broadcast" + "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniApp", "nameExplicit": false, "columns": [ "workspaceId" @@ -52761,148 +52946,148 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastRecurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "MiniApp_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": false, "columns": [ - "broadcastId" + "miniAppId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "MiniApp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastRecurrence_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrence" + "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": false, "columns": [ - "workspaceId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppPublication", "nameExplicit": false, "columns": [ - "recurrenceId" + "whatsappFlowId" ], "schemaTo": "public", - "tableTo": "BroadcastRecurrence", + "tableTo": "WhatsappFlow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastRecurrenceOccurrence_x0yNXfzZ2cZs_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "onDelete": "SET NULL", + "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": false, "columns": [ - "childBroadcastId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastRecurrenceOccurrence_Md67cxyTrOQZ_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastRecurrenceOccurrence" + "onDelete": "CASCADE", + "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": false, "columns": [ - "broadcastId" + "miniAppId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "MiniApp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "BroadcastTarget_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" + "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppSubmission", "nameExplicit": false, "columns": [ - "inboxId" + "contactId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "BroadcastTarget_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" + "onDelete": "SET NULL", + "name": "MiniAppSubmission_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ - "flowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "BroadcastTarget_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "BroadcastTarget" + "onDelete": "CASCADE", + "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ - "workspaceId" + "miniAppId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "MiniApp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Cart_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" + "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ "contactId" @@ -52914,29 +53099,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Cart_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" + "name": "MiniAppUpload_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MiniAppUpload", "nameExplicit": false, "columns": [ - "contactInboxId" + "submissionId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "MiniAppSubmission", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Cart_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Cart" + "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Minigame", "nameExplicit": false, "columns": [ "workspaceId" @@ -52948,165 +53133,165 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ChannelPost_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" + "name": "Minigame_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "inboxId" + "minigameId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Minigame", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ChannelPost_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ChannelPost" + "name": "MinigameContact_minigameId_Minigame_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "requestedByUserId" + "contactId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CoexistSyncRun_requestedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CoexistSyncRun" + "onDelete": "CASCADE", + "name": "MinigameContact_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "workspaceId" + "referrerContactId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CommentAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" + "onDelete": "SET NULL", + "name": "MinigameContact_referrerContactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigameContact", "nameExplicit": false, "columns": [ - "folderId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CommentAutomation_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" + "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigamePlay", "nameExplicit": false, "columns": [ - "inboxId" + "minigameId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Minigame", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomation" + "name": "MinigamePlay_minigameId_Minigame_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "MinigamePlay", "nameExplicit": false, "columns": [ - "workspaceId" + "contactId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "MinigamePlay_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "PlatformCredential", "nameExplicit": false, "columns": [ - "automationId" + "userId" ], "schemaTo": "public", - "tableTo": "CommentAutomation", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationEvent_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Credential_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Product", "nameExplicit": false, "columns": [ - "contactId" + "categoryId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Product_categoryId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Product", "nameExplicit": false, "columns": [ - "contactInboxId" + "subcategoryId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CommentAutomationEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationEvent" + "name": "Product_subcategoryId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Product", "nameExplicit": false, "columns": [ "workspaceId" @@ -53118,182 +53303,199 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationMiss_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "Product_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductAddon", "nameExplicit": false, "columns": [ - "automationId" + "productId" ], "schemaTo": "public", - "tableTo": "CommentAutomation", + "tableTo": "Product", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationMiss_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "name": "ProductAddon_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "onDelete": "CASCADE", + "name": "ProductCategory_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductCategory", "nameExplicit": false, "columns": [ - "contactInboxId" + "parentId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "ProductCategory", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "CommentAutomationMiss_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationMiss" + "onDelete": "CASCADE", + "name": "ProductCategory_parentId_ProductCategory_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductVariant", "nameExplicit": false, "columns": [ - "automationId" + "productId" ], "schemaTo": "public", - "tableTo": "CommentAutomation", + "tableTo": "Product", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationReply_automationId_CommentAutomation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" + "name": "ProductVariant_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ProductVariantOption", "nameExplicit": false, "columns": [ - "contactId" + "productId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Product", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationReply_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" + "name": "ProductVariantOption_productId_Product_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": false, "columns": [ - "workspaceId" + "submissionId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "QuestionnaireSubmission", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CommentAutomationReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CommentAutomationReply" + "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireAnswer", "nameExplicit": false, "columns": [ - "workspaceId" + "questionId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "QuestionnaireQuestion", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConnectSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "ConnectSession" + "table": "Questionnaire", + "nameExplicit": false, + "columns": [ + "triggerFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Questionnaire_triggerFlowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Questionnaire", "nameExplicit": false, "columns": [ - "targetConnectionId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Connection", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConnectSession_targetConnectionId_Connection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" + "name": "Questionnaire_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": false, "columns": [ - "actorUserId" + "questionnaireId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Questionnaire", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ConnectSession_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" + "onDelete": "CASCADE", + "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireQuestion", "nameExplicit": false, "columns": [ - "actorTokenId" + "customFieldId" ], "schemaTo": "public", - "tableTo": "WorkspaceApiToken", + "tableTo": "CustomField", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "ConnectSession_actorTokenId_WorkspaceApiToken_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConnectSession" + "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ "workspaceId" @@ -53305,284 +53507,284 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Connection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "inboxId" + "questionnaireId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Questionnaire", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Connection_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "integrationId" + "contactId" ], "schemaTo": "public", - "tableTo": "Integration", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Connection_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "createdBy" + "conversationId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Conversation", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Connection_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Connection" + "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "QuestionnaireSubmission", "nameExplicit": false, "columns": [ - "workspaceId" + "currentQuestionId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "QuestionnaireQuestion", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Contact_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Contact" + "onDelete": "SET NULL", + "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "RefLinkStat", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactCustomField_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" + "name": "RefLinkStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "RefLinkStat", "nameExplicit": false, "columns": [ - "customFieldId" + "linkId" ], "schemaTo": "public", - "tableTo": "CustomField", + "tableTo": "Reflink", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactCustomField_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactCustomField" + "name": "RefLinkStat_linkId_Reflink_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "contactId" + "flowId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactInbox_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" + "name": "Reflink_flowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "inboxId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Inbox", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactInbox_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactInbox" + "name": "Reflink_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "contactId" + "customFieldId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "CustomField", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" + "onDelete": "SET NULL", + "name": "Reflink_customFieldId_CustomField_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Reflink", "nameExplicit": false, "columns": [ - "createdById" + "widgetLogoFileId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "MediaLibraryFile", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactNote_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactNote" + "onDelete": "SET NULL", + "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "ResponseSlaPolicy", "nameExplicit": false, "columns": [ - "broadcastId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Broadcast", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_broadcastId_Broadcast_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReply", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "SavedReply_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": false, "columns": [ - "contactInboxId" + "savedReplyId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "SavedReply", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": false, "columns": [ - "conversationId" + "mediaLibraryFileId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "MediaLibraryFile", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnBroadcast_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnBroadcast" + "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SavedReplyImage", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSequence_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" + "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": false, "columns": [ - "sequenceId" + "folderId" ], "schemaTo": "public", - "tableTo": "Sequence", + "tableTo": "Folder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactOnSequence_sequenceId_Sequence_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" + "onDelete": "SET NULL", + "name": "Sequence_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Sequence", "nameExplicit": false, "columns": [ "workspaceId" @@ -53594,12 +53796,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSequence" + "name": "Sequence_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ "workspaceId" @@ -53611,165 +53813,167 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "appointmentId" + "sequenceId" ], "schemaTo": "public", - "tableTo": "Appointment", + "tableTo": "Sequence", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ContactOnSmartDelay_appointmentId_Appointment_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" + "onDelete": "CASCADE", + "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "conversationId" + "contactId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactOnSmartDelay_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactOnSmartDelay" + "name": "SequenceDispatch_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "contactId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTag_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" + "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceDispatch", "nameExplicit": false, "columns": [ - "tagId" + "stepId" ], "schemaTo": "public", - "tableTo": "Tag", + "tableTo": "SequenceStep", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTag_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTag" + "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", + "entityType": "fks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SequenceDispatch", + "nameExplicit": true, "columns": [ - "tagId" + "enrollmentId", + "workspaceId" ], "schemaTo": "public", - "tableTo": "Tag", + "tableTo": "ContactOnSequence", "columnsTo": [ - "id" + "id", + "workspaceId" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagId_Tag_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" + "name": "SequenceDispatch_enrollment_workspace_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": false, "columns": [ - "tagChannelId" + "flowId" ], "schemaTo": "public", - "tableTo": "TagChannel", + "tableTo": "Flow", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ContactToTagChannel_tagChannelId_TagChannel_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" + "onDelete": "SET NULL", + "name": "SequenceStep_flowId_Flow_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "SequenceStep", "nameExplicit": false, "columns": [ - "contactInboxId" + "sequenceId" ], "schemaTo": "public", - "tableTo": "ContactInbox", + "tableTo": "Sequence", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ContactToTagChannel_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ContactToTagChannel" + "name": "SequenceStep_sequenceId_Sequence_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Spreadsheet", "nameExplicit": false, "columns": [ - "assignedUserId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Conversation_assignedUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "onDelete": "CASCADE", + "name": "Spreadsheet_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Tag", "nameExplicit": false, "columns": [ - "assignedInboxTeamId" + "folderId" ], "schemaTo": "public", - "tableTo": "InboxTeam", + "tableTo": "Folder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Conversation_assignedInboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "name": "Tag_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Tag", "nameExplicit": false, "columns": [ "workspaceId" @@ -53781,80 +53985,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Conversation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "name": "Tag_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": false, "columns": [ - "contactId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Conversation_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Conversation" + "name": "TagChannel_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TagChannel", "nameExplicit": false, "columns": [ - "workspaceId" + "tagId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Tag", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConversationParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" + "name": "TagChannel_tagId_Tag_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": false, "columns": [ - "conversationId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConversationParticipant_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" + "name": "TelegramChat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TelegramChat", "nameExplicit": false, "columns": [ - "userId" + "inboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Inbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ConversationParticipant_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ConversationParticipant" + "name": "TelegramChat_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Template", "nameExplicit": false, "columns": [ "workspaceId" @@ -53866,46 +54070,46 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Coupon_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" + "name": "Template_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Template", "nameExplicit": false, "columns": [ - "topicId" + "tenantId" ], "schemaTo": "public", - "tableTo": "CouponTopic", + "tableTo": "Tenant", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Coupon_topicId_CouponTopic_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" + "onDelete": "RESTRICT", + "name": "Template_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Template", "nameExplicit": false, "columns": [ - "issuedContactId" + "createdBy" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "Coupon_issuedContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Coupon" + "name": "Template_createdBy_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ "workspaceId" @@ -53917,32 +54121,32 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CouponTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" + "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ - "createdById" + "templateId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Template", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CouponTopic_createdById_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CouponTopic" + "name": "TemplateInstallation_templateId_Template_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ - "folderId" + "installFolderId" ], "schemaTo": "public", "tableTo": "Folder", @@ -53951,46 +54155,46 @@ ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "CustomField_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" + "name": "TemplateInstallation_installFolderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstallation", "nameExplicit": false, "columns": [ - "workspaceId" + "installedBy" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "CustomField_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomField" + "onDelete": "SET NULL", + "name": "TemplateInstallation_installedBy_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": false, "columns": [ - "workspaceId" + "installationId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "TemplateInstallation", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DecisionConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionConnection" + "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TemplateInstalledResource", "nameExplicit": false, "columns": [ "workspaceId" @@ -54002,29 +54206,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DecisionProfile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" + "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": false, "columns": [ - "connectionId" + "folderId" ], "schemaTo": "public", - "tableTo": "DecisionConnection", + "tableTo": "Folder", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "DecisionProfile_connectionId_DecisionConnection_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DecisionProfile" + "onDelete": "SET NULL", + "name": "Trigger_folderId_Folder_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Trigger", "nameExplicit": false, "columns": [ "workspaceId" @@ -54036,63 +54240,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DiscountCode_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" + "name": "Trigger_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Condition", "nameExplicit": false, "columns": [ - "categoryId" + "triggerId" ], "schemaTo": "public", - "tableTo": "ProductCategory", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCode_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCode" + "onDelete": "CASCADE", + "name": "Condition_triggerId_Trigger_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Condition", "nameExplicit": false, "columns": [ - "workspaceId" + "webhookId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Webhook", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "DynamicImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DynamicImage" + "name": "Condition_webhookId_Webhook_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": false, "columns": [ - "customFieldId" + "triggerId" ], "schemaTo": "public", - "tableTo": "CustomField", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DynamicImage_customFieldId_CustomField_id_fkey", - "entityType": "fks", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "DynamicImage" + "table": "TriggerContactHistory", + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerContactHistory_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerContactHistory", "nameExplicit": false, "columns": [ "workspaceId" @@ -54104,29 +54325,46 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceOpenHours" + "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": false, "columns": [ - "workspaceId" + "triggerId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "TriggerExecution_triggerId_Trigger_id_fkey", + "entityType": "fks" + }, + { "schema": "public", - "table": "EcommerceOrderCounter" + "table": "TriggerExecution", + "nameExplicit": false, + "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "TriggerExecution_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerExecution", "nameExplicit": false, "columns": [ "workspaceId" @@ -54138,80 +54376,80 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "name": "TriggerExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": false, "columns": [ - "openHoursId" + "triggerId" ], "schemaTo": "public", - "tableTo": "EcommerceOpenHours", + "tableTo": "Trigger", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "TriggerStat_triggerId_Trigger_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "TriggerStat", "nameExplicit": false, "columns": [ - "abandonedCartFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "TriggerStat_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "UserDeviceToken", "nameExplicit": false, "columns": [ - "checkoutFlowId" + "userId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "UserDeviceToken_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "UserDeviceToken", "nameExplicit": false, "columns": [ - "orderConfirmationFlowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EcommerceSettings" + "onDelete": "CASCADE", + "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "UserPersistentMenu", "nameExplicit": false, "columns": [ "workspaceId" @@ -54223,12 +54461,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "EmailTopic_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" + "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Webhook", "nameExplicit": false, "columns": [ "folderId" @@ -54240,13 +54478,13 @@ ], "onUpdate": "CASCADE", "onDelete": "SET NULL", - "name": "EmailTopic_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "EmailTopic" + "name": "Webhook_folderId_Folder_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "Webhook", + "nameExplicit": false, "columns": [ "workspaceId" ], @@ -54257,114 +54495,114 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "AuditLog_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" + "name": "Webhook_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": true, + "schema": "public", + "table": "WebhookExecution", + "nameExplicit": false, "columns": [ - "userId" + "webhookId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Webhook", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "AuditLog_userId_fkey", - "entityType": "fks", - "schema": "public", - "table": "AuditLog" + "onDelete": "CASCADE", + "name": "WebhookExecution_webhookId_Webhook_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": false, "columns": [ - "tenantId" + "contactId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "CustomDomain_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "CustomDomain" + "name": "WebhookExecution_contactId_Contact_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WebhookExecution", "nameExplicit": false, "columns": [ - "userId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "PlatformAdmin_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformAdmin" + "name": "WebhookExecution_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappBusinessAccount", "nameExplicit": false, "columns": [ - "ownerId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Tenant_ownerId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Tenant" + "onDelete": "CASCADE", + "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "tenantId" + "answeredByUserId" ], "schemaTo": "public", - "tableTo": "Tenant", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TenantHelpItem_tenantId_Tenant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "TenantHelpItem" + "onDelete": "SET NULL", + "name": "WhatsappCall_answeredByUserId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "userId" + "initiatedByUserId" ], "schemaTo": "public", "tableTo": "User", "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", - "onDelete": "CASCADE", - "name": "UserQuota_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "UserQuota" + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "WhatsappCall_initiatedByUserId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ "workspaceId" @@ -54374,48 +54612,65 @@ "columnsTo": [ "id" ], - "onUpdate": "NO ACTION", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "WhatsappCall_workspaceId_Workspace_id_fkey", + "entityType": "fks" + }, + { + "schema": "public", + "table": "WhatsappCall", + "nameExplicit": false, + "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "WorkspaceUsage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceUsage" + "name": "WhatsappCall_inboxId_Inbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "workspaceId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ErrorLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" + "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCall", "nameExplicit": false, "columns": [ - "contactId" + "conversationId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "Conversation", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "ErrorLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ErrorLog" + "onDelete": "CASCADE", + "name": "WhatsappCall_conversationId_Conversation_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": false, "columns": [ "workspaceId" @@ -54427,97 +54682,97 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "ExternalWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ExternalWebhook" + "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappCallPermission", "nameExplicit": false, "columns": [ - "workspaceId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookLeadAdsAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsAutomation" + "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappFlow", "nameExplicit": false, "columns": [ - "automationId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "FacebookLeadAdsAutomation", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookLeadAdsLead_n8swD949nr3L_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" + "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappMessageTemplate", "nameExplicit": false, "columns": [ - "contactId" + "integrationWhatsappId" ], "schemaTo": "public", - "tableTo": "Contact", + "tableTo": "IntegrationWhatsapp", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "FacebookLeadAdsLead_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookLeadAdsLead" + "onDelete": "CASCADE", + "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": false, "columns": [ - "workspaceId" + "userId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookMarketingMessage_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessage" + "name": "WhatsappSignupSession_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": false, "columns": [ - "workspaceId" + "ownerId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FacebookMarketingMessagesAuth_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FacebookMarketingMessagesAuth" + "name": "WhatsappSignupSession_ownerId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WhatsappSignupSession", "nameExplicit": false, "columns": [ "workspaceId" @@ -54529,29 +54784,29 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "File_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" + "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHours", "nameExplicit": false, "columns": [ - "userId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "File_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "File" + "onDelete": "CASCADE", + "name": "WorkingHours_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursDateOverride", "nameExplicit": false, "columns": [ "workspaceId" @@ -54563,46 +54818,48 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Flow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" + "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursDateOverride", + "nameExplicit": true, "columns": [ - "folderId" + "workingHoursId", + "workspaceId" ], "schemaTo": "public", - "tableTo": "Folder", + "tableTo": "WorkingHours", "columnsTo": [ - "id" + "id", + "workspaceId" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Flow_folderId_Folder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Flow" + "onDelete": "CASCADE", + "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursInterval", "nameExplicit": false, "columns": [ - "workspaceId" + "workingHoursId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "WorkingHours", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowNodeStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowNodeStat" + "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursMember", "nameExplicit": false, "columns": [ "workspaceId" @@ -54614,97 +54871,99 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkingHoursMember", "nameExplicit": false, "columns": [ - "flowId" + "userId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowRun_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "name": "WorkingHoursMember_userId_User_id_fkey", + "entityType": "fks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursMember", + "nameExplicit": true, "columns": [ - "flowVersionId" + "workingHoursId", + "workspaceId" ], "schemaTo": "public", - "tableTo": "FlowVersion", + "tableTo": "WorkingHours", "columnsTo": [ - "id" + "id", + "workspaceId" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowRun_flowVersionId_FlowVersion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": false, "columns": [ - "conversationId" + "ownerId" ], "schemaTo": "public", - "tableTo": "Conversation", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowRun_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowRun" + "onDelete": "RESTRICT", + "name": "Workspace_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "Workspace", "nameExplicit": false, "columns": [ - "workspaceId" + "tenantId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Tenant", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "FlowVersion_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" + "onDelete": "RESTRICT", + "name": "Workspace_tenantId_Tenant_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceApiToken", "nameExplicit": false, "columns": [ - "flowId" + "workspaceId" ], "schemaTo": "public", - "tableTo": "Flow", + "tableTo": "Workspace", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "FlowVersion_flowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "FlowVersion" + "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceMac", "nameExplicit": false, "columns": [ "workspaceId" @@ -54716,12 +54975,12 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "Folder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Folder" + "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceMember", "nameExplicit": false, "columns": [ "workspaceId" @@ -54733,4572 +54992,3382 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "GoogleAdsConversionEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "WorkspaceMember", "nameExplicit": false, "columns": [ - "integrationGoogleAdsId" + "userId" ], "schemaTo": "public", - "tableTo": "IntegrationGoogleAds", + "tableTo": "User", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_Ju5oh0fVmaLy_fkey", - "entityType": "fks", - "schema": "public", - "table": "GoogleAdsConversionEvent" + "onDelete": "CASCADE", + "name": "WorkspaceMember_userId_User_id_fkey", + "entityType": "fks" }, { + "schema": "public", + "table": "AnalyticsAgentResponseEvent", + "columns": [ + "occurredAt", + "eventId" + ], "nameExplicit": false, + "name": "AnalyticsAgentResponseEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsBotMessageEvent", "columns": [ - "contactInboxId" + "occurredAt", + "eventId" ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" + "nameExplicit": false, + "name": "AnalyticsBotMessageEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsBroadcastEvent", + "columns": [ + "broadcastId", + "contactInboxId", + "batchId", + "eventType", + "occurredAt" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "GoogleAdsConversionEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "AnalyticsBroadcastEvent_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "AnalyticsContactEvent", + "columns": [ + "occurredAt", + "eventId" + ], + "nameExplicit": false, + "name": "AnalyticsContactEvent_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "AnalyticsConversationEvent", + "columns": [ + "occurredAt", + "eventId" + ], "nameExplicit": false, + "name": "AnalyticsConversationEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsFlowNodeEvent", "columns": [ - "workspaceId" + "flowId", + "analyticsId", + "nodeId", + "buttonId", + "contactInboxId", + "eventType", + "occurredAt" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "nameExplicit": false, + "name": "AnalyticsFlowNodeEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AnalyticsMessageEvent", + "columns": [ + "occurredAt", + "eventId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "GoogleAdsSettings_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "AnalyticsMessageEvent_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "GoogleAdsSettings" + "table": "AnalyticsSequenceEvent", + "columns": [ + "sequenceId", + "stepId", + "contactInboxId", + "eventType", + "occurredAt" + ], + "nameExplicit": false, + "name": "AnalyticsSequenceEvent_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "Attachment", + "columns": [ + "id", + "createdAt" + ], "nameExplicit": false, + "name": "Attachment_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AutomationThrottle", "columns": [ - "workspaceId" + "workspaceId", + "contactInboxId", + "throttleType", + "subjectId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "nameExplicit": true, + "name": "AutomationThrottle_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "BroadcastTarget", + "columns": [ + "broadcastId", + "inboxId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "BroadcastTarget_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "IgStoryAutomation" + "table": "ContactActiveHourly", + "columns": [ + "workspaceId", + "hourBucket", + "contactInboxId" + ], + "nameExplicit": false, + "name": "ContactActiveHourly_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "ContactActiveMonthly", + "columns": [ + "workspaceId", + "periodStart", + "contactInboxId" + ], "nameExplicit": false, + "name": "ContactActiveMonthly_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "ContactInboxPost", "columns": [ - "folderId" + "workspaceId", + "contactInboxId", + "postId" ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" + "nameExplicit": true, + "name": "ContactInboxPost_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "ContactOnBroadcast", + "columns": [ + "broadcastId", + "contactId" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IgStoryAutomation_folderId_Folder_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactsOnBroadcast_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "IgStoryAutomation" + "table": "ContactOnSequence", + "columns": [ + "id", + "workspaceId" + ], + "nameExplicit": true, + "name": "ContactOnSequence_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "ContactToTag", + "columns": [ + "contactId", + "tagId" + ], "nameExplicit": false, + "name": "ContactToTag_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "ContactToTagChannel", "columns": [ - "inboxId" + "tagChannelId", + "contactInboxId" ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" + "nameExplicit": false, + "name": "ContactToTagChannel_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "LeaderboardParticipant", + "columns": [ + "leaderboardId", + "contactId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IgStoryAutomation_inboxId_Inbox_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "LeaderboardParticipant_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "IgStoryAutomation" + "table": "LeaderboardScoreEvent", + "columns": [ + "createdAt", + "id" + ], + "nameExplicit": false, + "name": "LeaderboardScoreEvent_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "Message", + "columns": [ + "id", + "createdAt" + ], "nameExplicit": false, + "name": "Message_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "SequenceDispatch", "columns": [ + "id", "workspaceId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ + "nameExplicit": true, + "name": "SequenceDispatch_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "TriggerContactHistory", + "columns": [ + "id", + "contactId" + ], + "nameExplicit": true, + "name": "TriggerContactHistory_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "MessageShard", + "columns": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "MessageShard_pkey", + "entityType": "pks" + }, + { "schema": "public", - "table": "Import" + "table": "ShardTimeRange", + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ShardTimeRange_pkey", + "entityType": "pks" }, { + "schema": "public", + "table": "AdsConversionEvent", + "columns": [ + "id" + ], "nameExplicit": false, + "name": "AdsConversionEvent_pkey", + "entityType": "pks" + }, + { + "schema": "public", + "table": "AdsConversionRule", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Import_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" + "nameExplicit": false, + "name": "AdsConversionRule_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIAgent", "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Import_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" + "nameExplicit": false, + "name": "AIAgent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIConversationEmbedding", "columns": [ - "fileId" - ], - "schemaTo": "public", - "tableTo": "File", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Import_fileId_File_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Import" + "nameExplicit": false, + "name": "AIConversationEmbedding_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIConversationSource", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhook" + "nameExplicit": false, + "name": "AIConversationSource_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIEmbedding", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIEmbedding_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIFile", "columns": [ - "inboundWebhookId" - ], - "schemaTo": "public", - "tableTo": "InboundWebhook", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboundWebhookRequest_inboundWebhookId_InboundWebhook_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIFile_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIFunction", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIFunction_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIHandoverBulkRun", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "InboundWebhookRequest_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboundWebhookRequest" + "nameExplicit": false, + "name": "AIHandoverBulkRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIHandoverSettings", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Inbox_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Inbox" + "nameExplicit": false, + "name": "AIHandoverSettings_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AIMCPServer", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxContactStat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxContactStat" + "nameExplicit": false, + "name": "AIMCPServer_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AnalyticsEmailTopic", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeam_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeam" + "nameExplicit": false, + "name": "AnalyticsEmailTopic_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Appointment", "columns": [ - "inboxTeamId" - ], - "schemaTo": "public", - "tableTo": "InboxTeam", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_inboxTeamId_InboxTeam_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" + "nameExplicit": false, + "name": "Appointment_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentCalendar", "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "InboxTeamMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "InboxTeamMember" + "nameExplicit": false, + "name": "AppointmentCalendar_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentCalendarAvailability", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" + "nameExplicit": false, + "name": "AppointmentCalendarAvailability_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentCalendarReminder", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationActiveCampaign_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationActiveCampaign" + "nameExplicit": false, + "name": "AppointmentCalendarReminder_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AppointmentReminderDispatch", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" + "nameExplicit": false, + "name": "AppointmentReminderDispatch_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Account", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationApi_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationApi" + "nameExplicit": false, + "name": "Account_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Invitation", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Integration_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Integration" + "nameExplicit": false, + "name": "Invitation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Jwk", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" + "nameExplicit": false, + "name": "Jwk_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Session", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationClaude_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationClaude" + "nameExplicit": false, + "name": "Session_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "User", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" + "nameExplicit": false, + "name": "User_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Verification", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDeepseek_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDeepseek" + "nameExplicit": false, + "name": "Verification_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AutomatedResponse", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" + "nameExplicit": false, + "name": "AutomatedResponse_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "BotField", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationDrip_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationDrip" + "nameExplicit": false, + "name": "BotField_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Broadcast", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" + "nameExplicit": false, + "name": "Broadcast_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "BroadcastRecurrence", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationFacebookAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationFacebookAds" + "nameExplicit": false, + "name": "BroadcastRecurrence_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "BroadcastRecurrenceOccurrence", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" + "nameExplicit": false, + "name": "BroadcastRecurrenceOccurrence_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ChannelPost", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGemini_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGemini" + "nameExplicit": false, + "name": "ChannelPost_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CoexistSyncRun", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" + "nameExplicit": false, + "name": "CoexistSyncRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomation", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGetResponse_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGetResponse" + "nameExplicit": false, + "name": "CommentAutomation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomationEvent", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" + "nameExplicit": false, + "name": "CommentAutomationEvent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomationMiss", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleAds_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleAds" + "nameExplicit": false, + "name": "CommentAutomationMiss_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CommentAutomationReply", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "nameExplicit": false, + "name": "CommentAutomationReply_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ConnectSession", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleCalendar" + "nameExplicit": false, + "name": "ConnectSession_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Connection", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" + "nameExplicit": false, + "name": "Connection_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Contact", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationGoogleSheet_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationGoogleSheet" + "nameExplicit": false, + "name": "Contact_pkey", + "entityType": "pks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactCustomField", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_workspaceId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" + "nameExplicit": false, + "name": "ContactCustomField_pkey", + "entityType": "pks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactInbox", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationInstagram_inboxId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" + "nameExplicit": false, + "name": "ContactInbox_pkey", + "entityType": "pks" }, { - "nameExplicit": true, + "schema": "public", + "table": "ContactNote", "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationInstagram_welcomeFlowId_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationInstagram" + "nameExplicit": false, + "name": "ContactNote_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ContactOnSmartDelay", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" + "nameExplicit": false, + "name": "ContactOnSmartDelay_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Conversation", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationKlaviyo_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationKlaviyo" + "nameExplicit": false, + "name": "Conversation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ConversationParticipant", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" + "nameExplicit": false, + "name": "ConversationParticipant_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Coupon", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailchimp_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailchimp" + "nameExplicit": false, + "name": "Coupon_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CouponTopic", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" + "nameExplicit": false, + "name": "CouponTopic_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CustomField", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMailerLite_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMailerLite" + "nameExplicit": false, + "name": "CustomField_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "DecisionConnection", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "DecisionConnection_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "DecisionProfile", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMessenger_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "DecisionProfile_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "DynamicImage", "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "DynamicImage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "EmailTopic", "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationMessenger_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMessenger" + "nameExplicit": false, + "name": "EmailTopic_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "AuditLog", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" + "nameExplicit": false, + "name": "AuditLog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "CustomDomain", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMetaCatalog_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMetaCatalog" + "nameExplicit": false, + "name": "CustomDomain_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "License", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" + "nameExplicit": false, + "name": "License_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "PlatformAdmin", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationMoosend_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationMoosend" + "nameExplicit": false, + "name": "PlatformAdmin_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Tenant", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" + "nameExplicit": false, + "name": "Tenant_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TenantHelpItem", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenai_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" + "nameExplicit": false, + "name": "TenantHelpItem_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserQuota", "columns": [ - "aiAgentId" - ], - "schemaTo": "public", - "tableTo": "AIAgent", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationOpenai_aiAgentId_AIAgent_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenai" + "nameExplicit": false, + "name": "UserQuota_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceUsage", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "nameExplicit": false, + "name": "WorkspaceUsage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ErrorLog", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenaiCompatible_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenaiCompatible" + "nameExplicit": false, + "name": "ErrorLog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ExternalWebhook", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" + "nameExplicit": false, + "name": "ExternalWebhook_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookLeadAdsAutomation", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOpenrouter_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOpenrouter" + "nameExplicit": false, + "name": "FacebookLeadAdsAutomation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookLeadAdsLead", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "nameExplicit": false, + "name": "FacebookLeadAdsLead_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookMarketingMessage", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationOutlookCalendar_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationOutlookCalendar" + "nameExplicit": false, + "name": "FacebookMarketingMessage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FacebookMarketingMessagesAuth", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" + "nameExplicit": false, + "name": "FacebookMarketingMessagesAuth_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "File", "columns": [ - "integrationId" - ], - "schemaTo": "public", - "tableTo": "Integration", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSendGrid_integrationId_Integration_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSendGrid" + "nameExplicit": false, + "name": "File_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Flow", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" + "nameExplicit": false, + "name": "Flow_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowAnalyticsSession", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationSmtp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationSmtp" + "nameExplicit": false, + "name": "FlowAnalyticsSession_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowNodeStat", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" + "nameExplicit": false, + "name": "FlowNodeStat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowRun", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTelegram_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTelegram" + "nameExplicit": false, + "name": "FlowRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "FlowVersion", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" + "nameExplicit": false, + "name": "FlowVersion_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Folder", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationThreads_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationThreads" + "nameExplicit": false, + "name": "Folder_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "GoogleAdsConversionEvent", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" + "nameExplicit": false, + "name": "GoogleAdsConversionEvent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "GoogleAdsSettings", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationTiktok_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationTiktok" + "nameExplicit": false, + "name": "GoogleAdsSettings_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IgStoryAutomation", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" + "nameExplicit": false, + "name": "IgStoryAutomation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Import", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWebchat_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" + "nameExplicit": false, + "name": "Import_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboundWebhook", "columns": [ - "welcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWebchat_welcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWebchat" + "nameExplicit": false, + "name": "InboundWebhook_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboundWebhookRequest", "columns": [ - "handoverResumeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationWhatsapp_handoverResumeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" + "nameExplicit": false, + "name": "InboundWebhookRequest_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Inbox", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" + "nameExplicit": false, + "name": "Inbox_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboxContactStat", "columns": [ "inboxId" ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationWhatsapp_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationWhatsapp" + "nameExplicit": false, + "name": "InboxContactStat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboxTeam", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" + "nameExplicit": false, + "name": "InboxTeam_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "InboxTeamMember", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "IntegrationZalo_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" + "nameExplicit": false, + "name": "InboxTeamMember_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationActiveCampaign", "columns": [ - "fallbackFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "IntegrationZalo_fallbackFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "IntegrationZalo" + "nameExplicit": false, + "name": "IntegrationActiveCampaign_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationApi", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Leaderboard_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "IntegrationApi_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Integration", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "Integration_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationClaude", "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "IntegrationClaude_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationDeepseek", "columns": [ - "referralWelcomeFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Leaderboard_referralWelcomeFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Leaderboard" + "nameExplicit": false, + "name": "IntegrationDeepseek_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationDrip", "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationDrip_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationFacebookAds", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardAuditLog_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationFacebookAds_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGemini", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationGemini_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGetResponse", "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardAuditLog_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardAuditLog" + "nameExplicit": false, + "name": "IntegrationGetResponse_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGoogleAds", "columns": [ - "leaderboardId" - ], - "schemaTo": "public", - "tableTo": "Leaderboard", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_leaderboardId_Leaderboard_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationGoogleAds_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGoogleCalendar", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationGoogleCalendar_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationGoogleSheet", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "LeaderboardParticipant_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationGoogleSheet_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationInstagram", "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "LeaderboardParticipant_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "LeaderboardParticipant" + "nameExplicit": false, + "name": "IntegrationInstagram_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationKlaviyo", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLink" + "nameExplicit": false, + "name": "IntegrationKlaviyo_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMailchimp", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" + "nameExplicit": false, + "name": "IntegrationMailchimp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMailerLite", "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "MagicLink", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MagicLinkStat_linkId_MagicLink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MagicLinkStat" + "nameExplicit": false, + "name": "IntegrationMailerLite_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMessenger", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFile_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" + "nameExplicit": false, + "name": "IntegrationMessenger_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMetaCatalog", "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFolder", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MediaLibraryFile_folderId_MediaLibraryFolder_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFile" + "nameExplicit": false, + "name": "IntegrationMetaCatalog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationMoosend", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MediaLibraryFolder_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MediaLibraryFolder" + "nameExplicit": false, + "name": "IntegrationMoosend_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOpenai", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOpenai_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOpenaiCompatible", "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_D2X0VlACjh0B_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOpenaiCompatible_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOpenrouter", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_DlCmuyYqclNt_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOpenrouter_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationOutlookCalendar", "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdOperation_LwL2ykeZegup_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationOutlookCalendar_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationSendGrid", "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MessagingAdOperation_createdBy_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdOperation" + "nameExplicit": false, + "name": "IntegrationSendGrid_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationSmtp", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationSmtp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationTelegram", "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_Q2FrBLiP3QqD_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationTelegram_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationThreads", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_tLZC78O5pMBb_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationThreads_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationTiktok", "columns": [ - "integrationInstagramId" - ], - "schemaTo": "public", - "tableTo": "IntegrationInstagram", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessagingAdsConnection_4ubezEjd9jQX_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessagingAdsConnection" + "nameExplicit": false, + "name": "IntegrationTiktok_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationWebchat", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerMessageTemplate_x0Vv1d8cvLYN_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerMessageTemplate" + "nameExplicit": false, + "name": "IntegrationWebchat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationWhatsapp", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "nameExplicit": false, + "name": "IntegrationWhatsapp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "IntegrationZalo", "columns": [ - "integrationMessengerId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMessenger", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MessengerWelcomeMessageFlow_OSpsF41G77zr_fkey", - "entityType": "fks", - "schema": "public", - "table": "MessengerWelcomeMessageFlow" + "nameExplicit": false, + "name": "IntegrationZalo_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Leaderboard", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" + "nameExplicit": false, + "name": "Leaderboard_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "LeaderboardAuditLog", "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCapiEvent_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCapiEvent" + "nameExplicit": false, + "name": "LeaderboardAuditLog_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MagicLink", "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_wJXyKUssR08y_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" + "nameExplicit": false, + "name": "MagicLink_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MediaLibraryFile", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogItem" + "nameExplicit": false, + "name": "MediaLibraryFile_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MediaLibraryFolder", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" + "nameExplicit": false, + "name": "MediaLibraryFolder_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessageCleanup", "columns": [ - "integrationMetaCatalogId" - ], - "schemaTo": "public", - "tableTo": "IntegrationMetaCatalog", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MetaCatalogSyncRun_8PnmCJ0uISUd_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" + "nameExplicit": false, + "name": "MessageCleanup_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessagingAdOperation", "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MetaCatalogSyncRun_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MetaCatalogSyncRun" + "nameExplicit": false, + "name": "MessagingAdOperation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessagingAdsConnection", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniApp_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniApp" + "nameExplicit": false, + "name": "MessagingAdsConnection_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessengerMessageTemplate", "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" + "nameExplicit": false, + "name": "MessengerMessageTemplate_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MessengerWelcomeMessageFlow", "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppPublication_oBb1VPqI8uvn_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" + "nameExplicit": false, + "name": "MessengerWelcomeMessageFlow_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MetaCapiEvent", "columns": [ - "whatsappFlowId" - ], - "schemaTo": "public", - "tableTo": "WhatsappFlow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppPublication_whatsappFlowId_WhatsappFlow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppPublication" + "nameExplicit": false, + "name": "MetaCapiEvent_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MetaCatalogItem", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" + "nameExplicit": false, + "name": "MetaCatalogItem_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MetaCatalogSyncRun", "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppSubmission_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" + "nameExplicit": false, + "name": "MetaCatalogSyncRun_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniApp", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppSubmission" + "nameExplicit": false, + "name": "MiniApp_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniAppPublication", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "MiniAppPublication_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniAppSubmission", "columns": [ - "miniAppId" - ], - "schemaTo": "public", - "tableTo": "MiniApp", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_miniAppId_MiniApp_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "MiniAppSubmission_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MiniAppUpload", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MiniAppUpload_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "MiniAppUpload_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Minigame", "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "MiniAppSubmission", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MiniAppUpload_submissionId_MiniAppSubmission_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MiniAppUpload" + "nameExplicit": false, + "name": "Minigame_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MinigameContact", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Minigame_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Minigame" + "nameExplicit": false, + "name": "MinigameContact_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "MinigamePlay", "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "MinigamePlay_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "PlatformCredential", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigameContact_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "Credential_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Product", "columns": [ - "referrerContactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_referrerContactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "Product_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductAddon", "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "MinigameContact_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigameContact" + "nameExplicit": false, + "name": "ProductAddon_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductCategory", "columns": [ - "minigameId" - ], - "schemaTo": "public", - "tableTo": "Minigame", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_minigameId_Minigame_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" + "nameExplicit": false, + "name": "ProductCategory_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductVariant", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "MinigamePlay_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "MinigamePlay" + "nameExplicit": false, + "name": "ProductVariant_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ProductVariantOption", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "ProductVariantOption_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "QuestionnaireAnswer", "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "QuestionnaireAnswer_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Questionnaire", "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "DiscountCodeRedemption_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "Questionnaire_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "QuestionnaireQuestion", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "DiscountCodeRedemption" + "nameExplicit": false, + "name": "QuestionnaireQuestion_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "QuestionnaireSubmission", "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "QuestionnaireSubmission_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Reflink", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderItem_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "Reflink_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "ResponseSlaPolicy", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "ResponseSlaPolicy_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SavedReply", "columns": [ - "variantId" - ], - "schemaTo": "public", - "tableTo": "ProductVariant", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_variantId_ProductVariant_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "SavedReply_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SavedReplyImage", "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "SavedReplyImage_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Sequence", "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderItem_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderItem" + "nameExplicit": false, + "name": "Sequence_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SequenceStep", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Order_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "SequenceStep_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Spreadsheet", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "Spreadsheet_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "SystemField", "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "SystemField_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Tag", "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "Tag_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TagChannel", "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "TagChannel_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TelegramChat", "columns": [ - "discountCodeId" - ], - "schemaTo": "public", - "tableTo": "DiscountCode", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Order_discountCodeId_DiscountCode_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Order" + "nameExplicit": false, + "name": "TelegramChat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Template", "columns": [ - "orderId" - ], - "schemaTo": "public", - "tableTo": "Order", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_orderId_Order_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" + "nameExplicit": false, + "name": "Template_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TemplateInstallation", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" + "nameExplicit": false, + "name": "TemplateInstallation_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TemplateInstalledResource", "columns": [ - "actorUserId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "OrderStatusHistory_actorUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "OrderStatusHistory" + "nameExplicit": false, + "name": "TemplateInstalledResource_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Trigger", "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Credential_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "PlatformCredential" + "nameExplicit": false, + "name": "Trigger_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Condition", "columns": [ - "vendorId" - ], - "schemaTo": "public", - "tableTo": "Vendor", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_vendorId_Vendor_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "Condition_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TriggerExecution", "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_categoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "TriggerExecution_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "TriggerStat", "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Product_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "TriggerStat_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserDeviceToken", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Product_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Product" + "nameExplicit": false, + "name": "UserDeviceToken_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserPersistentMenu", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductAddon_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductAddon" + "nameExplicit": false, + "name": "UserPersistentMenu_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Webhook", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" + "nameExplicit": false, + "name": "Webhook_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WebhookExecution", "columns": [ - "parentId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductCategory_parentId_ProductCategory_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductCategory" + "nameExplicit": false, + "name": "WebhookExecution_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappBusinessAccount", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariant_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariant" + "nameExplicit": false, + "name": "WhatsappBusinessAccount_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappCall", "columns": [ - "productId" - ], - "schemaTo": "public", - "tableTo": "Product", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ProductVariantOption_productId_Product_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ProductVariantOption" + "nameExplicit": false, + "name": "WhatsappCall_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappCallPermission", "columns": [ - "submissionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireSubmission", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_l8clOEM7NsPl_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" + "nameExplicit": false, + "name": "WhatsappCallPermission_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappCoexistStaging", "columns": [ - "questionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireAnswer_questionId_QuestionnaireQuestion_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireAnswer" + "nameExplicit": false, + "name": "WhatsappCoexistStaging_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappFlow", "columns": [ - "triggerFlowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Questionnaire_triggerFlowId_Flow_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" + "nameExplicit": false, + "name": "WhatsappFlow_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappMessageTemplate", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Questionnaire_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Questionnaire" + "nameExplicit": false, + "name": "WhatsappMessageTemplate_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WhatsappSignupSession", "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireQuestion_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" + "nameExplicit": false, + "name": "WhatsappSignupSession_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHours", "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireQuestion_customFieldId_CustomField_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireQuestion" + "nameExplicit": false, + "name": "WorkingHours_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursDateOverride", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkingHoursDateOverride_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursInterval", "columns": [ - "questionnaireId" - ], - "schemaTo": "public", - "tableTo": "Questionnaire", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_questionnaireId_Questionnaire_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkingHoursInterval_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursMember", "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "QuestionnaireSubmission_contactId_Contact_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkingHoursMember_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Workspace", "columns": [ - "conversationId" - ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "Workspace_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceApiToken", "columns": [ - "currentQuestionId" - ], - "schemaTo": "public", - "tableTo": "QuestionnaireQuestion", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "QuestionnaireSubmission_mha0bYFxcV7A_fkey", - "entityType": "fks", - "schema": "public", - "table": "QuestionnaireSubmission" + "nameExplicit": false, + "name": "WorkspaceApiToken_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceMac", "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" + "nameExplicit": false, + "name": "WorkspaceMac_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkspaceMember", "columns": [ - "linkId" - ], - "schemaTo": "public", - "tableTo": "Reflink", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "RefLinkStat_linkId_Reflink_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "RefLinkStat" + "nameExplicit": false, + "name": "WorkspaceMember_pkey", + "entityType": "pks" }, { - "nameExplicit": false, + "schema": "public", + "table": "Message", + "nameExplicit": true, "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" + "contactInboxId", + "sourceId", + "createdAt" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_flowId_Flow_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "Message_source_dedup_idx", + "entityType": "uniques" + }, + { "schema": "public", - "table": "Reflink" + "table": "ProductCategory", + "nameExplicit": true, + "columns": [ + "workspaceId", + "parentId", + "name" + ], + "nullsNotDistinct": true, + "name": "ProductCategory_workspaceId_parent_name_key", + "entityType": "uniques" }, { - "nameExplicit": false, + "schema": "public", + "table": "ResponseSlaPolicy", + "nameExplicit": true, "columns": [ "workspaceId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Reflink_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "Reflink" + "nullsNotDistinct": false, + "name": "ResponseSlaPolicy_workspaceId_key", + "entityType": "uniques" }, { - "nameExplicit": false, + "schema": "public", + "table": "UserDeviceToken", + "nameExplicit": true, "columns": [ - "customFieldId" - ], - "schemaTo": "public", - "tableTo": "CustomField", - "columnsTo": [ - "id" + "token" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_customFieldId_CustomField_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "UserDeviceToken_token_key", + "entityType": "uniques" + }, + { "schema": "public", - "table": "Reflink" + "table": "WorkingHours", + "nameExplicit": true, + "columns": [ + "id", + "workspaceId" + ], + "nullsNotDistinct": false, + "name": "WorkingHours_id_workspaceId_key", + "entityType": "uniques" }, { - "nameExplicit": false, + "schema": "public", + "table": "WorkingHoursMember", + "nameExplicit": true, "columns": [ - "widgetLogoFileId" + "workspaceId", + "userId" ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" + "nullsNotDistinct": false, + "name": "WorkingHoursMember_workspaceId_userId_key", + "entityType": "uniques" + }, + { + "schema": "public", + "table": "WorkspaceApiToken", + "nameExplicit": true, + "columns": [ + "tokenHash" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Reflink_widgetLogoFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "WorkspaceApiToken_tokenHash_key", + "entityType": "uniques" + }, + { "schema": "public", - "table": "Reflink" + "table": "WorkspaceMac", + "nameExplicit": true, + "columns": [ + "workspaceId", + "periodStart", + "periodEnd" + ], + "nullsNotDistinct": false, + "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", + "entityType": "uniques" }, { + "schema": "public", + "table": "UserQuota", "nameExplicit": false, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "userId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "ResponseSlaPolicy_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "ResponseSlaPolicy" + "nullsNotDistinct": false, + "name": "UserQuota_userId_key", + "entityType": "uniques" }, { + "schema": "public", + "table": "WorkspaceUsage", "nameExplicit": false, "columns": [ "workspaceId" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReply_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nullsNotDistinct": false, + "name": "WorkspaceUsage_workspaceId_key", + "entityType": "uniques" + }, + { + "schema": "public", + "table": "AdsConversionEvent", + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", + "name": "AdsConversionEvent_channel_integration_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "Broadcast", + "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", + "name": "Broadcast_occurrence_pair_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", + "name": "ConnectSession_actor_at_most_one", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", + "name": "ConnectSession_status_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", + "name": "ConnectSession_purpose_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", + "name": "ConnectSession_errorCode_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", + "name": "ConnectSession_errorCode_terminal_failure_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", + "name": "ConnectSession_terminal_consumedAt_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", + "name": "ConnectSession_terminal_clears_encryptedAuth_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "ConnectSession", + "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", + "name": "ConnectSession_active_reconnect_requires_target_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "Connection", + "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", + "name": "Connection_kind_relation_check", + "entityType": "checks" + }, + { + "schema": "public", + "table": "Connection", + "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", + "name": "Connection_inbox_integration_exclusive_check", + "entityType": "checks" + }, + { "schema": "public", - "table": "SavedReply" + "table": "Connection", + "value": "\"kind\" IN ('channel', 'integration')", + "name": "Connection_kind_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "savedReplyId" - ], - "schemaTo": "public", - "tableTo": "SavedReply", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_savedReplyId_SavedReply_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SavedReplyImage" + "table": "Connection", + "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", + "name": "Connection_status_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "mediaLibraryFileId" - ], - "schemaTo": "public", - "tableTo": "MediaLibraryFile", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_mediaLibraryFileId_MediaLibraryFile_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SavedReplyImage" + "table": "Connection", + "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", + "name": "Connection_statusReason_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SavedReplyImage_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SavedReplyImage" + "table": "Connection", + "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", + "name": "Connection_status_reason_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Sequence_folderId_Folder_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Sequence" + "table": "Connection", + "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", + "name": "Connection_disconnectedAt_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Sequence_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Sequence" + "table": "GoogleAdsConversionEvent", + "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sent_requires_request_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", + "name": "GoogleAdsConversionEvent_sending_requires_claim_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_sequenceId_Sequence_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", + "name": "GoogleAdsConversionEvent_processing_status_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactId_Contact_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", + "name": "GoogleAdsConversionEvent_failure_stage_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "contactInboxId" - ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", + "name": "GoogleAdsConversionEvent_value_currency_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "stepId" - ], - "schemaTo": "public", - "tableTo": "SequenceStep", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_stepId_SequenceStep_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "\"value\" IS NULL OR \"value\" >= 0", + "name": "GoogleAdsConversionEvent_value_non_negative_check", + "entityType": "checks" }, { - "nameExplicit": true, - "columns": [ - "enrollmentId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "ContactOnSequence", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceDispatch_enrollment_workspace_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceDispatch" + "table": "GoogleAdsConversionEvent", + "value": "length(\"clickId\") BETWEEN 10 AND 512", + "name": "GoogleAdsConversionEvent_clickId_length_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "flowId" - ], - "schemaTo": "public", - "tableTo": "Flow", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "SequenceStep_flowId_Flow_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceStep" + "table": "GoogleAdsConversionEvent", + "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", + "name": "GoogleAdsConversionEvent_uploadMethod_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "sequenceId" - ], - "schemaTo": "public", - "tableTo": "Sequence", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "SequenceStep_sequenceId_Sequence_id_fkey", - "entityType": "fks", "schema": "public", - "table": "SequenceStep" + "table": "GoogleAdsConversionEvent", + "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", + "name": "GoogleAdsConversionEvent_attempt_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Spreadsheet_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Spreadsheet" + "table": "IntegrationWhatsapp", + "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", + "name": "IntegrationWhatsapp_registrationStatus_error_consistent", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Tag_folderId_Folder_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Tag" + "table": "MessagingAdOperation", + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdOperation_channel_integration_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Tag_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Tag" + "table": "MessagingAdsConnection", + "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", + "name": "MessagingAdsConnection_channel_integration_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TagChannel" + "table": "MetaCapiEvent", + "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", + "name": "MetaCapiEvent_channel_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "tagId" - ], - "schemaTo": "public", - "tableTo": "Tag", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TagChannel_tagId_Tag_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TagChannel" + "table": "MetaCapiEvent", + "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", + "name": "MetaCapiEvent_actionSource_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TelegramChat" + "table": "MetaCapiEvent", + "value": "\"contentType\" IN ('product', 'product_group')", + "name": "MetaCapiEvent_contentType_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "inboxId" - ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TelegramChat_inboxId_Inbox_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TelegramChat" + "table": "QuestionnaireQuestion", + "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", + "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Template_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Template" + "table": "ResponseSlaPolicy", + "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", + "name": "ResponseSlaPolicy_targets_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Template_tenantId_Tenant_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Template" + "table": "ResponseSlaPolicy", + "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", + "name": "ResponseSlaPolicy_threshold_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "createdBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Template_createdBy_User_id_fkey", - "entityType": "fks", "schema": "public", - "table": "Template" + "table": "WhatsappSignupSession", + "value": "cardinality(\"candidatePhoneNumberIds\") > 0", + "name": "WhatsappSignupSession_candidates_not_empty", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstallation_workspaceId_Workspace_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TemplateInstallation" + "table": "WorkingHoursInterval", + "value": "\"weekday\" BETWEEN 0 AND 6", + "name": "WorkingHoursInterval_weekday_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "templateId" - ], - "schemaTo": "public", - "tableTo": "Template", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_templateId_Template_id_fkey", - "entityType": "fks", "schema": "public", - "table": "TemplateInstallation" + "table": "WorkingHoursInterval", + "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", + "name": "WorkingHoursInterval_minutes_check", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "installFolderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" + "values": [ + "flow", + "flowNode", + "automatedResponse", + "whatsappFlow", + "emailTopic" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installFolderId_Folder_id_fkey", - "entityType": "fks", + "name": "contactActivityReferenceType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "flowExecuted", + "flowNodeExecuted", + "automatedResponseMatched", + "formCompleted", + "messageSent", + "messageDelivered", + "messageOpened", + "messageClicked" + ], + "name": "contactActivityType", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "ContactActivity", "schema": "public", - "table": "TemplateInstallation" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "installedBy" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "TemplateInstallation_installedBy_User_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "TemplateInstallation" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "installationId" - ], - "schemaTo": "public", - "tableTo": "TemplateInstallation", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_a0BqwWeO96EB_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "TemplateInstalledResource" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TemplateInstalledResource_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "contactActivityType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activityType", "schema": "public", - "table": "TemplateInstalledResource" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Trigger_folderId_Folder_id_fkey", - "entityType": "fks", + "type": "contactActivityReferenceType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceType", + "schema": "public", + "table": "ContactActivity", + "entityType": "columns" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "parentReferenceId", "schema": "public", - "table": "Trigger" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Trigger_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "referenceId", "schema": "public", - "table": "Trigger" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_triggerId_Trigger_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "firstOccurredAt", "schema": "public", - "table": "Condition" + "table": "ContactActivity", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "activityType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceType", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "parentReferenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "referenceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Condition_webhookId_Webhook_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactActivity_reference_idx", "schema": "public", - "table": "Condition" + "table": "ContactActivity", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" + "workspaceId", + "contactId", + "activityType", + "referenceType", + "parentReferenceId", + "referenceId" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_triggerId_Trigger_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactActivity_pkey", "schema": "public", - "table": "TriggerContactHistory" + "table": "ContactActivity", + "entityType": "pks" }, { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_contactId_Contact_id_fkey", - "entityType": "fks", + "value": "(\"activityType\" = 'flowExecuted' AND \"referenceType\" = 'flow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'flowNodeExecuted' AND \"referenceType\" = 'flowNode' AND \"parentReferenceId\" <> 0) OR (\"activityType\" = 'automatedResponseMatched' AND \"referenceType\" = 'automatedResponse' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'formCompleted' AND \"referenceType\" = 'whatsappFlow' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageSent' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageDelivered' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageOpened' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0) OR (\"activityType\" = 'messageClicked' AND \"referenceType\" = 'emailTopic' AND \"parentReferenceId\" = 0)", + "name": "ContactActivity_allowed_pair_check", "schema": "public", - "table": "TriggerContactHistory" + "table": "ContactActivity", + "entityType": "checks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerContactHistory_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "isRlsEnabled": false, + "name": "ContactKeywordMessage", "schema": "public", - "table": "TriggerContactHistory" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_triggerId_Trigger_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "TriggerExecution" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "contactId" - ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_contactId_Contact_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "TriggerExecution" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "messageId", "schema": "public", - "table": "TriggerExecution" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "triggerId" - ], - "schemaTo": "public", - "tableTo": "Trigger", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_triggerId_Trigger_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "automatedResponseId", "schema": "public", - "table": "TriggerStat" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "TriggerStat_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "text", "schema": "public", - "table": "TriggerStat" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_userId_User_id_fkey", - "entityType": "fks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "normalizedText", "schema": "public", - "table": "UserDeviceToken" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserDeviceToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurredAt", "schema": "public", - "table": "UserDeviceToken" + "table": "ContactKeywordMessage", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "gin_trgm_ops", + "default": false + } + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "UserPersistentMenu_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "gin", + "concurrently": false, + "name": "ContactKeywordMessage_text_trgm_idx", "schema": "public", - "table": "UserPersistentMenu" + "table": "ContactKeywordMessage", + "entityType": "indexes" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "normalizedText", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": { + "name": "text_pattern_ops", + "default": false + } + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Vendor_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactKeywordMessage_text_prefix_idx", "schema": "public", - "table": "Vendor" + "table": "ContactKeywordMessage", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "openHoursId" - ], - "schemaTo": "public", - "tableTo": "EcommerceOpenHours", - "columnsTo": [ - "id" + "workspaceId", + "contactId", + "messageId" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactKeywordMessage_pkey", "schema": "public", - "table": "Vendor" + "table": "ContactKeywordMessage", + "entityType": "pks" }, { - "nameExplicit": false, - "columns": [ - "categoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_categoryId_ProductCategory_id_fkey", - "entityType": "fks", + "isRlsEnabled": false, + "name": "ContactState", "schema": "public", - "table": "Vendor" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "subcategoryId" - ], - "schemaTo": "public", - "tableTo": "ProductCategory", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Vendor_subcategoryId_ProductCategory_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "Vendor" + "table": "ContactState", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "folderId" - ], - "schemaTo": "public", - "tableTo": "Folder", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "Webhook_folderId_Folder_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "Webhook" + "table": "ContactState", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "Webhook_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lastDeliveredAt", "schema": "public", - "table": "Webhook" + "table": "ContactState", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "webhookId" - ], - "schemaTo": "public", - "tableTo": "Webhook", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lastDeliveredAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_webhookId_Webhook_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": "\"lastDeliveredAt\" IS NOT NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "ContactState_lastDeliveredAt_idx", "schema": "public", - "table": "WebhookExecution" + "table": "ContactState", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ + "workspaceId", "contactId" ], - "schemaTo": "public", - "tableTo": "Contact", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_contactId_Contact_id_fkey", - "entityType": "fks", + "nameExplicit": true, + "name": "ContactState_pkey", "schema": "public", - "table": "WebhookExecution" + "table": "ContactState", + "entityType": "pks" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WebhookExecution_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicReferenceId", + "entityType": "columns", + "schema": "public", + "table": "AnalyticsEmailTopic" + }, + { + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "topicId", "schema": "public", - "table": "WebhookExecution" + "table": "AnalyticsEmailTopic", + "entityType": "columns" }, { "nameExplicit": false, "columns": [ - "workspaceId" + "topicId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "EmailTopic", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappBusinessAccount_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "onDelete": "SET NULL", + "name": "AnalyticsEmailTopic_topicId_EmailTopic_id_fkey", "schema": "public", - "table": "WhatsappBusinessAccount" + "table": "AnalyticsEmailTopic", + "entityType": "fks" }, { - "nameExplicit": false, - "columns": [ - "answeredByUserId" + "values": [ + "entireOrder", + "category", + "products" ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + "name": "discountAppliesTo", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "everyone", + "specificCustomers" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_answeredByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "discountEligibility", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "initiatedByUserId" + "values": [ + "none", + "amount", + "quantity" ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + "name": "discountMinimumType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "percentage", + "fixedAmount", + "freeShipping" ], - "onUpdate": "CASCADE", - "onDelete": "SET NULL", - "name": "WhatsappCall_initiatedByUserId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "discountType", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" + "values": [ + "default", + "externalLink", + "flow", + "productPage" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "name": "checkoutMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "left", + "leftSpace", + "right", + "rightSpace" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "currencyPosition", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "inboxId" + "values": [ + "default", + "flow", + "none" ], - "schemaTo": "public", - "tableTo": "Inbox", - "columnsTo": [ - "id" + "name": "orderConfirmationMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "bigSquare", + "mediumRectangle" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_inboxId_Inbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "productImageSize", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "contactInboxId" + "values": [ + "none", + "delivery", + "pickup", + "deliveryAndPickup" ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" + "name": "shippingMode", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "list", + "listWithoutImage", + "card", + "cardSquare", + "image", + "imageSquare" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "webshopProductView", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "conversationId" + "values": [ + "user", + "apiToken", + "system", + "contact" ], - "schemaTo": "public", - "tableTo": "Conversation", - "columnsTo": [ - "id" + "name": "orderActorType", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "webshop", + "api", + "manual" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCall_conversationId_Conversation_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCall" + "name": "orderSource", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" + "values": [ + "pending", + "accepted", + "shipped", + "concluded", + "cancelled" ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" + "name": "orderStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "cod" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_workspaceId_Workspace_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WhatsappCallPermission" + "name": "paymentMethod", + "entityType": "enums", + "schema": "public" }, { - "nameExplicit": false, - "columns": [ - "contactInboxId" + "values": [ + "unpaid", + "paid", + "refunded" ], - "schemaTo": "public", - "tableTo": "ContactInbox", - "columnsTo": [ - "id" + "name": "paymentStatus", + "entityType": "enums", + "schema": "public" + }, + { + "values": [ + "delivery", + "pickup" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappCallPermission_contactInboxId_ContactInbox_id_fkey", - "entityType": "fks", + "name": "shippingType", + "entityType": "enums", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "Cart", "schema": "public", - "table": "WhatsappCallPermission" + "entityType": "tables" }, { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappFlow_integrationWhatsappId_IntegrationWhatsapp_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "WhatsappFlow" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "integrationWhatsappId" - ], - "schemaTo": "public", - "tableTo": "IntegrationWhatsapp", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappMessageTemplate_p6pSomUTTJCm_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "WhatsappMessageTemplate" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_userId_User_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_ownerId_User_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WhatsappSignupSession_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "WhatsappSignupSession" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHours_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", "schema": "public", - "table": "WorkingHours" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "items", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursDateOverride_workingHoursId_workspaceId_fkey", - "entityType": "fks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", "schema": "public", - "table": "WorkingHoursDateOverride" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workingHoursId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursInterval_workingHoursId_WorkingHours_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "lastActivityAt", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ - "id" - ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedNotifiedAt", "schema": "public", - "table": "WorkingHoursMember" + "table": "Cart", + "entityType": "columns" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "userId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_userId_User_id_fkey", - "entityType": "fks", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_workspaceId_contactId_key", "schema": "public", - "table": "WorkingHoursMember" + "table": "Cart", + "entityType": "indexes" }, { "nameExplicit": true, "columns": [ - "workingHoursId", - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "WorkingHours", - "columnsTo": [ - "id", - "workspaceId" + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkingHoursMember_workingHoursId_workspaceId_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactId_idx", "schema": "public", - "table": "WorkingHoursMember" + "table": "Cart", + "entityType": "indexes" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "ownerId" - ], - "schemaTo": "public", - "tableTo": "User", - "columnsTo": [ - "id" + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_userId_User_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_contactInboxId_idx", "schema": "public", - "table": "Workspace" + "table": "Cart", + "entityType": "indexes" }, { - "nameExplicit": false, + "nameExplicit": true, "columns": [ - "tenantId" - ], - "schemaTo": "public", - "tableTo": "Tenant", - "columnsTo": [ - "id" + { + "value": "lastActivityAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "onUpdate": "CASCADE", - "onDelete": "RESTRICT", - "name": "Workspace_tenantId_Tenant_id_fkey", - "entityType": "fks", + "isUnique": false, + "where": "\"abandonedNotifiedAt\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "Cart_abandoned_scan_idx", "schema": "public", - "table": "Workspace" + "table": "Cart", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "workspaceId" - ], - "schemaTo": "public", - "tableTo": "Workspace", - "columnsTo": [ "id" ], - "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceApiToken_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "nameExplicit": false, + "name": "Cart_pkey", "schema": "public", - "table": "WorkspaceApiToken" + "table": "Cart", + "entityType": "pks" }, { "nameExplicit": false, @@ -59312,2628 +58381,3686 @@ ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "WorkspaceMac_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "Cart_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "WorkspaceMac" + "table": "Cart", + "entityType": "fks" }, { "nameExplicit": false, "columns": [ - "workspaceId" + "contactId" ], "schemaTo": "public", - "tableTo": "Workspace", + "tableTo": "Contact", "columnsTo": [ "id" ], "onUpdate": "CASCADE", "onDelete": "CASCADE", - "name": "WorkspaceMember_workspaceId_Workspace_id_fkey", - "entityType": "fks", + "name": "Cart_contactId_Contact_id_fkey", "schema": "public", - "table": "WorkspaceMember" + "table": "Cart", + "entityType": "fks" }, { "nameExplicit": false, "columns": [ - "userId" + "contactInboxId" ], "schemaTo": "public", - "tableTo": "User", + "tableTo": "ContactInbox", "columnsTo": [ "id" ], "onUpdate": "CASCADE", - "onDelete": "CASCADE", - "name": "WorkspaceMember_userId_User_id_fkey", - "entityType": "fks", - "schema": "public", - "table": "WorkspaceMember" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsAgentResponseEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsAgentResponseEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsBotMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBotMessageEvent" - }, - { - "columns": [ - "broadcastId", - "contactInboxId", - "batchId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsBroadcastEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsBroadcastEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsContactEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsContactEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsConversationEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsConversationEvent" - }, - { - "columns": [ - "flowId", - "analyticsId", - "nodeId", - "buttonId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsFlowNodeEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsFlowNodeEvent" - }, - { - "columns": [ - "occurredAt", - "eventId" - ], - "nameExplicit": false, - "name": "AnalyticsMessageEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsMessageEvent" - }, - { - "columns": [ - "sequenceId", - "stepId", - "contactInboxId", - "eventType", - "occurredAt" - ], - "nameExplicit": false, - "name": "AnalyticsSequenceEvent_pkey", - "entityType": "pks", - "schema": "public", - "table": "AnalyticsSequenceEvent" - }, - { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Attachment_pkey", - "entityType": "pks", + "onDelete": "SET NULL", + "name": "Cart_contactInboxId_ContactInbox_id_fkey", "schema": "public", - "table": "Attachment" + "table": "Cart", + "entityType": "fks" }, { - "columns": [ - "workspaceId", - "contactInboxId", - "throttleType", - "subjectId" - ], - "nameExplicit": true, - "name": "AutomationThrottle_pkey", - "entityType": "pks", + "isRlsEnabled": false, + "name": "DiscountCode", "schema": "public", - "table": "AutomationThrottle" + "entityType": "tables" }, { - "columns": [ - "broadcastId", - "inboxId" - ], - "nameExplicit": true, - "name": "BroadcastTarget_pkey", - "entityType": "pks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "BroadcastTarget" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "workspaceId", - "hourBucket", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveHourly_pkey", - "entityType": "pks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "ContactActiveHourly" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "workspaceId", - "periodStart", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactActiveMonthly_pkey", - "entityType": "pks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "ContactActiveMonthly" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "workspaceId", - "contactInboxId", - "postId" - ], - "nameExplicit": true, - "name": "ContactInboxPost_pkey", - "entityType": "pks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "ContactInboxPost" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "broadcastId", - "contactId" - ], - "nameExplicit": true, - "name": "ContactsOnBroadcast_pkey", - "entityType": "pks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code", "schema": "public", - "table": "ContactOnBroadcast" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "ContactOnSequence_pkey", - "entityType": "pks", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "autoApply", "schema": "public", - "table": "ContactOnSequence" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "contactId", - "tagId" - ], - "nameExplicit": false, - "name": "ContactToTag_pkey", - "entityType": "pks", + "type": "discountType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountType", "schema": "public", - "table": "ContactToTag" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "tagChannelId", - "contactInboxId" - ], - "nameExplicit": false, - "name": "ContactToTagChannel_pkey", - "entityType": "pks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountValue", "schema": "public", - "table": "ContactToTagChannel" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "leaderboardId", - "contactId" - ], - "nameExplicit": false, - "name": "LeaderboardParticipant_pkey", - "entityType": "pks", + "type": "discountAppliesTo", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'entireOrder'", + "generated": null, + "identity": null, + "name": "appliesTo", "schema": "public", - "table": "LeaderboardParticipant" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "createdAt", - "id" - ], - "nameExplicit": false, - "name": "LeaderboardScoreEvent_pkey", - "entityType": "pks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", "schema": "public", - "table": "LeaderboardScoreEvent" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "createdAt" - ], - "nameExplicit": false, - "name": "Message_pkey", - "entityType": "pks", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productIds", "schema": "public", - "table": "Message" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "workspaceId" - ], - "nameExplicit": true, - "name": "SequenceDispatch_pkey", - "entityType": "pks", + "type": "discountMinimumType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "minimumType", "schema": "public", - "table": "SequenceDispatch" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id", - "contactId" - ], - "nameExplicit": true, - "name": "TriggerContactHistory_pkey", - "entityType": "pks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumValue", "schema": "public", - "table": "TriggerContactHistory" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MessageShard_pkey", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "usageLimit", "schema": "public", - "table": "MessageShard", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ShardTimeRange_pkey", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usedCount", "schema": "public", - "table": "ShardTimeRange", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionEvent_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "oncePerCustomer", "schema": "public", - "table": "AdsConversionEvent", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AdsConversionRule_pkey", + "type": "discountEligibility", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'everyone'", + "generated": null, + "identity": null, + "name": "eligibility", "schema": "public", - "table": "AdsConversionRule", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIAgent_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerFilter", "schema": "public", - "table": "AIAgent", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationEmbedding_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "startsAt", "schema": "public", - "table": "AIConversationEmbedding", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIConversationSource_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "endsAt", "schema": "public", - "table": "AIConversationSource", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AIEmbedding_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", "schema": "public", - "table": "AIEmbedding", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"code\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "AIFile_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_workspaceId_code_key", "schema": "public", - "table": "AIFile", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "AIFunction_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCode_categoryId_idx", "schema": "public", - "table": "AIFunction", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "AIHandoverBulkRun_pkey", + "name": "DiscountCode_pkey", "schema": "public", - "table": "AIHandoverBulkRun", + "table": "DiscountCode", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "AIHandoverSettings_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCode_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "AIHandoverSettings", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "AIMCPServer_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCode_categoryId_ProductCategory_id_fkey", "schema": "public", - "table": "AIMCPServer", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AnalyticsEmailTopic_pkey", + "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", + "name": "DiscountCode_usedCount_check", "schema": "public", - "table": "AnalyticsEmailTopic", - "entityType": "pks" + "table": "DiscountCode", + "entityType": "checks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Appointment_pkey", + "isRlsEnabled": false, + "name": "EcommerceOpenHours", "schema": "public", - "table": "Appointment", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendar_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "AppointmentCalendar", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarAvailability_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "AppointmentCalendarAvailability", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentCalendarReminder_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "AppointmentCalendarReminder", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AppointmentReminderDispatch_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "AppointmentReminderDispatch", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Account_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", "schema": "public", - "table": "Account", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Invitation_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranges", "schema": "public", - "table": "Invitation", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "Jwk_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceOpenHours_workspaceId_idx", "schema": "public", - "table": "Jwk", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "Session_pkey", + "name": "EcommerceOpenHours_pkey", "schema": "public", - "table": "Session", + "table": "EcommerceOpenHours", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "User_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOpenHours_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "User", - "entityType": "pks" + "table": "EcommerceOpenHours", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Verification_pkey", + "isRlsEnabled": false, + "name": "EcommerceOrderCounter", "schema": "public", - "table": "Verification", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AutomatedResponse_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "AutomatedResponse", - "entityType": "pks" + "table": "EcommerceOrderCounter", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BotField_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "lastNumber", "schema": "public", - "table": "BotField", - "entityType": "pks" + "table": "EcommerceOrderCounter", + "entityType": "columns" }, { "columns": [ - "id" + "workspaceId" ], "nameExplicit": false, - "name": "Broadcast_pkey", + "name": "EcommerceOrderCounter_pkey", "schema": "public", - "table": "Broadcast", + "table": "EcommerceOrderCounter", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "BroadcastRecurrence_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceOrderCounter_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "BroadcastRecurrence", - "entityType": "pks" + "table": "EcommerceOrderCounter", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "BroadcastRecurrenceOccurrence_pkey", + "isRlsEnabled": false, + "name": "EcommerceSettings", "schema": "public", - "table": "BroadcastRecurrenceOccurrence", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Cart_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "Cart", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ChannelPost_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "ChannelPost", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CoexistSyncRun_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "CoexistSyncRun", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomation_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "CommentAutomation", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationEvent_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderingAvailable", "schema": "public", - "table": "CommentAutomationEvent", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationMiss_pkey", + "type": "webshopProductView", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webshopProductView", "schema": "public", - "table": "CommentAutomationMiss", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CommentAutomationReply_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", "schema": "public", - "table": "CommentAutomationReply", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConnectSession_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "searchProducts", "schema": "public", - "table": "ConnectSession", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Connection_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "facebookPixelId", "schema": "public", - "table": "Connection", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Contact_pkey", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartDelayMinutes", "schema": "public", - "table": "Contact", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactCustomField_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "abandonedCartFlowId", "schema": "public", - "table": "ContactCustomField", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactInbox_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productButtons", "schema": "public", - "table": "ContactInbox", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactNote_pkey", + "type": "productImageSize", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productImageSize", "schema": "public", - "table": "ContactNote", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ContactOnSmartDelay_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "allowRateOrders", "schema": "public", - "table": "ContactOnSmartDelay", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Conversation_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notifyOnCartStatusChange", "schema": "public", - "table": "Conversation", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ConversationParticipant_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paymentMethods", "schema": "public", - "table": "ConversationParticipant", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Coupon_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", "schema": "public", - "table": "Coupon", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CouponTopic_pkey", + "type": "currencyPosition", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencyPosition", "schema": "public", - "table": "CouponTopic", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomField_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currencySymbol", "schema": "public", - "table": "CustomField", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionConnection_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeePercent", "schema": "public", - "table": "DecisionConnection", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DecisionProfile_pkey", + "type": "shippingMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", "schema": "public", - "table": "DecisionProfile", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCode_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", "schema": "public", - "table": "DiscountCode", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DynamicImage_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingCountries", "schema": "public", - "table": "DynamicImage", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceOpenHours_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "defaultShippingCountry", "schema": "public", - "table": "EcommerceOpenHours", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "workspaceId" - ], - "nameExplicit": false, - "name": "EcommerceOrderCounter_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deliveryCost", "schema": "public", - "table": "EcommerceOrderCounter", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EcommerceSettings_pkey", + "type": "checkoutMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutMode", "schema": "public", "table": "EcommerceSettings", - "entityType": "pks" + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "EmailTopic_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutLink", "schema": "public", - "table": "EmailTopic", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "AuditLog_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checkoutFlowId", "schema": "public", - "table": "AuditLog", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "CustomDomain_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "minimumOrderValue", "schema": "public", - "table": "CustomDomain", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "License_pkey", + "type": "orderConfirmationMode", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'default'", + "generated": null, + "identity": null, + "name": "orderConfirmationMode", "schema": "public", - "table": "License", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "PlatformAdmin_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderConfirmationFlowId", "schema": "public", - "table": "PlatformAdmin", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tenant_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireName", "schema": "public", - "table": "Tenant", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TenantHelpItem_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireEmail", "schema": "public", - "table": "TenantHelpItem", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "UserQuota_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requirePhone", "schema": "public", - "table": "UserQuota", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceUsage_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireState", "schema": "public", - "table": "WorkspaceUsage", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ErrorLog_pkey", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "requireZip", "schema": "public", - "table": "ErrorLog", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "ExternalWebhook_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_workspaceId_key", "schema": "public", - "table": "ExternalWebhook", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookLeadAdsAutomation_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_openHoursId_idx", "schema": "public", - "table": "FacebookLeadAdsAutomation", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "abandonedCartFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookLeadAdsLead_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_abandonedCartFlowId_idx", "schema": "public", - "table": "FacebookLeadAdsLead", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "checkoutFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookMarketingMessage_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_checkoutFlowId_idx", "schema": "public", - "table": "FacebookMarketingMessage", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "orderConfirmationFlowId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "FacebookMarketingMessagesAuth_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "EcommerceSettings_orderConfirmationFlowId_idx", "schema": "public", - "table": "FacebookMarketingMessagesAuth", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "File_pkey", + "name": "EcommerceSettings_pkey", "schema": "public", - "table": "File", + "table": "EcommerceSettings", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "Flow_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "EcommerceSettings_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "Flow", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowAnalyticsSession_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_openHoursId_EcommerceOpenHours_id_fkey", "schema": "public", - "table": "FlowAnalyticsSession", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "abandonedCartFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowNodeStat_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_abandonedCartFlowId_Flow_id_fkey", "schema": "public", - "table": "FlowNodeStat", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "checkoutFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowRun_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_checkoutFlowId_Flow_id_fkey", "schema": "public", - "table": "FlowRun", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "orderConfirmationFlowId" + ], + "schemaTo": "public", + "tableTo": "Flow", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "FlowVersion_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "EcommerceSettings_orderConfirmationFlowId_Flow_id_fkey", "schema": "public", - "table": "FlowVersion", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Folder_pkey", + "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", + "name": "EcommerceSettings_serviceFeePercent_check", "schema": "public", - "table": "Folder", - "entityType": "pks" + "table": "EcommerceSettings", + "entityType": "checks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsConversionEvent_pkey", + "isRlsEnabled": false, + "name": "DiscountCodeRedemption", "schema": "public", - "table": "GoogleAdsConversionEvent", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "GoogleAdsSettings_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "GoogleAdsSettings", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IgStoryAutomation_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "IgStoryAutomation", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Import_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "Import", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhook_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "InboundWebhook", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboundWebhookRequest_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", "schema": "public", - "table": "InboundWebhookRequest", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Inbox_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", "schema": "public", - "table": "Inbox", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "inboxId" - ], - "nameExplicit": false, - "name": "InboxContactStat_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "InboxContactStat", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "InboxTeam_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "amount", "schema": "public", - "table": "InboxTeam", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "InboxTeamMember_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_orderId_key", "schema": "public", - "table": "InboxTeamMember", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "IntegrationActiveCampaign_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_discountCodeId_contactId_idx", "schema": "public", - "table": "IntegrationActiveCampaign", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "IntegrationApi_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "DiscountCodeRedemption_contactId_idx", "schema": "public", - "table": "IntegrationApi", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "Integration_pkey", + "name": "DiscountCodeRedemption_pkey", "schema": "public", - "table": "Integration", + "table": "DiscountCodeRedemption", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationClaude_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "IntegrationClaude", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationDeepseek_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_discountCodeId_DiscountCode_id_fkey", "schema": "public", - "table": "IntegrationDeepseek", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationDrip_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "DiscountCodeRedemption_orderId_Order_id_fkey", "schema": "public", - "table": "IntegrationDrip", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "IntegrationFacebookAds_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "DiscountCodeRedemption_contactId_Contact_id_fkey", "schema": "public", - "table": "IntegrationFacebookAds", - "entityType": "pks" + "table": "DiscountCodeRedemption", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGemini_pkey", + "isRlsEnabled": false, + "name": "OrderItem", "schema": "public", - "table": "IntegrationGemini", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGetResponse_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "IntegrationGetResponse", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleAds_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "IntegrationGoogleAds", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleCalendar_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "IntegrationGoogleCalendar", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationGoogleSheet_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", "schema": "public", - "table": "IntegrationGoogleSheet", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationInstagram_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "IntegrationInstagram", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationKlaviyo_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "productId", "schema": "public", - "table": "IntegrationKlaviyo", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailchimp_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantId", "schema": "public", - "table": "IntegrationMailchimp", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMailerLite_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", "schema": "public", - "table": "IntegrationMailerLite", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMessenger_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", "schema": "public", - "table": "IntegrationMessenger", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMetaCatalog_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", "schema": "public", - "table": "IntegrationMetaCatalog", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationMoosend_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "variantLabel", "schema": "public", - "table": "IntegrationMoosend", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenai_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "combination", "schema": "public", - "table": "IntegrationOpenai", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenaiCompatible_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sku", "schema": "public", - "table": "IntegrationOpenaiCompatible", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOpenrouter_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "retailerId", "schema": "public", - "table": "IntegrationOpenrouter", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationOutlookCalendar_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", "schema": "public", - "table": "IntegrationOutlookCalendar", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSendGrid_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorName", "schema": "public", - "table": "IntegrationSendGrid", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationSmtp_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "unitPrice", "schema": "public", - "table": "IntegrationSmtp", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTelegram_pkey", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "quantity", "schema": "public", - "table": "IntegrationTelegram", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationThreads_pkey", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "stockTaken", "schema": "public", - "table": "IntegrationThreads", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationTiktok_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountPercent", "schema": "public", - "table": "IntegrationTiktok", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWebchat_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxPercent", "schema": "public", - "table": "IntegrationWebchat", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationWhatsapp_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", "schema": "public", - "table": "IntegrationWhatsapp", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "IntegrationZalo_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", "schema": "public", - "table": "IntegrationZalo", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Leaderboard_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lineTotal", "schema": "public", - "table": "Leaderboard", - "entityType": "pks" + "table": "OrderItem", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "LeaderboardAuditLog_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_orderId_idx", "schema": "public", - "table": "LeaderboardAuditLog", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "productId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MagicLink_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_productId_idx", "schema": "public", - "table": "MagicLink", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MediaLibraryFile_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_workspaceId_vendorId_idx", "schema": "public", - "table": "MediaLibraryFile", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "variantId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MediaLibraryFolder_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_variantId_idx", "schema": "public", - "table": "MediaLibraryFolder", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "MessageCleanup_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderItem_categoryId_idx", "schema": "public", - "table": "MessageCleanup", - "entityType": "pks" + "table": "OrderItem", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "MessagingAdOperation_pkey", + "name": "OrderItem_pkey", "schema": "public", - "table": "MessagingAdOperation", + "table": "OrderItem", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MessagingAdsConnection_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_orderId_Order_id_fkey", "schema": "public", - "table": "MessagingAdsConnection", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MessengerMessageTemplate_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderItem_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "MessengerMessageTemplate", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "productId" + ], + "schemaTo": "public", + "tableTo": "Product", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MessengerWelcomeMessageFlow_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_productId_Product_id_fkey", "schema": "public", - "table": "MessengerWelcomeMessageFlow", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "variantId" + ], + "schemaTo": "public", + "tableTo": "ProductVariant", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MetaCapiEvent_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_variantId_ProductVariant_id_fkey", "schema": "public", - "table": "MetaCapiEvent", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MetaCatalogItem_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_vendorId_Vendor_id_fkey", "schema": "public", - "table": "MetaCatalogItem", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "MetaCatalogSyncRun_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderItem_categoryId_ProductCategory_id_fkey", "schema": "public", - "table": "MetaCatalogSyncRun", - "entityType": "pks" + "table": "OrderItem", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniApp_pkey", + "isRlsEnabled": false, + "name": "Order", "schema": "public", - "table": "MiniApp", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppPublication_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "MiniAppPublication", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppSubmission_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "MiniAppSubmission", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MiniAppUpload_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "MiniAppUpload", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Minigame_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "Minigame", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigameContact_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", "schema": "public", - "table": "MinigameContact", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "MinigamePlay_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactId", "schema": "public", - "table": "MinigamePlay", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "DiscountCodeRedemption_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "contactInboxId", "schema": "public", - "table": "DiscountCodeRedemption", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderItem_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "inboxId", "schema": "public", - "table": "OrderItem", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Order_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "conversationId", "schema": "public", "table": "Order", - "entityType": "pks" + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "OrderStatusHistory_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "channel", "schema": "public", - "table": "OrderStatusHistory", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Credential_pkey", + "type": "orderSource", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", "schema": "public", - "table": "PlatformCredential", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Product_pkey", + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "status", "schema": "public", - "table": "Product", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductAddon_pkey", + "type": "paymentMethod", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'cod'", + "generated": null, + "identity": null, + "name": "paymentMethod", "schema": "public", - "table": "ProductAddon", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductCategory_pkey", + "type": "paymentStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": "'unpaid'", + "generated": null, + "identity": null, + "name": "paymentStatus", "schema": "public", - "table": "ProductCategory", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariant_pkey", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "currency", "schema": "public", - "table": "ProductVariant", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ProductVariantOption_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subtotal", "schema": "public", - "table": "ProductVariantOption", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireAnswer_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountTotal", "schema": "public", - "table": "QuestionnaireAnswer", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Questionnaire_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingTotal", "schema": "public", - "table": "Questionnaire", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireQuestion_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "serviceFeeTotal", "schema": "public", - "table": "QuestionnaireQuestion", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "QuestionnaireSubmission_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "taxTotal", "schema": "public", - "table": "QuestionnaireSubmission", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Reflink_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "couponDiscount", "schema": "public", - "table": "Reflink", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "ResponseSlaPolicy_pkey", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "total", "schema": "public", - "table": "ResponseSlaPolicy", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReply_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCodeId", "schema": "public", - "table": "SavedReply", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SavedReplyImage_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discountCode", "schema": "public", - "table": "SavedReplyImage", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Sequence_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerName", "schema": "public", - "table": "Sequence", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SequenceStep_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerEmail", "schema": "public", - "table": "SequenceStep", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Spreadsheet_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "customerPhone", "schema": "public", - "table": "Spreadsheet", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "SystemField_pkey", + "type": "shippingType", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingType", "schema": "public", - "table": "SystemField", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Tag_pkey", + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippingAddress", "schema": "public", - "table": "Tag", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TagChannel_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", "schema": "public", - "table": "TagChannel", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TelegramChat_pkey", + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rating", "schema": "public", - "table": "TelegramChat", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Template_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ratingComment", "schema": "public", - "table": "Template", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstallation_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "acceptedAt", "schema": "public", - "table": "TemplateInstallation", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TemplateInstalledResource_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shippedAt", "schema": "public", - "table": "TemplateInstalledResource", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Trigger_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "concludedAt", "schema": "public", - "table": "Trigger", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Condition_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelledAt", "schema": "public", - "table": "Condition", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "TriggerExecution_pkey", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cancelReason", "schema": "public", - "table": "TriggerExecution", - "entityType": "pks" + "table": "Order", + "entityType": "columns" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "TriggerStat_pkey", + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_number_key", "schema": "public", - "table": "TriggerStat", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "UserDeviceToken_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_createdAt_idx", "schema": "public", - "table": "UserDeviceToken", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "UserPersistentMenu_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_workspaceId_status_idx", "schema": "public", - "table": "UserPersistentMenu", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "contactId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "Vendor_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactId_idx", "schema": "public", - "table": "Vendor", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "contactInboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "Webhook_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_contactInboxId_idx", "schema": "public", - "table": "Webhook", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "inboxId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "WebhookExecution_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_inboxId_idx", "schema": "public", - "table": "WebhookExecution", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "conversationId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "WhatsappBusinessAccount_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_conversationId_idx", "schema": "public", - "table": "WhatsappBusinessAccount", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { + "nameExplicit": true, "columns": [ - "id" + { + "value": "discountCodeId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nameExplicit": false, - "name": "WhatsappCall_pkey", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Order_discountCodeId_idx", "schema": "public", - "table": "WhatsappCall", - "entityType": "pks" + "table": "Order", + "entityType": "indexes" }, { "columns": [ "id" ], "nameExplicit": false, - "name": "WhatsappCallPermission_pkey", + "name": "Order_pkey", "schema": "public", - "table": "WhatsappCallPermission", + "table": "Order", "entityType": "pks" }, { + "nameExplicit": false, "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappCoexistStaging_pkey", + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Order_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "WhatsappCoexistStaging", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "contactId" + ], + "schemaTo": "public", + "tableTo": "Contact", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappFlow_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactId_Contact_id_fkey", "schema": "public", - "table": "WhatsappFlow", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "contactInboxId" + ], + "schemaTo": "public", + "tableTo": "ContactInbox", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappMessageTemplate_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_contactInboxId_ContactInbox_id_fkey", "schema": "public", - "table": "WhatsappMessageTemplate", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "inboxId" + ], + "schemaTo": "public", + "tableTo": "Inbox", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WhatsappSignupSession_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_inboxId_Inbox_id_fkey", "schema": "public", - "table": "WhatsappSignupSession", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "conversationId" + ], + "schemaTo": "public", + "tableTo": "Conversation", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WorkingHours_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_conversationId_Conversation_id_fkey", "schema": "public", - "table": "WorkingHours", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { + "nameExplicit": false, "columns": [ + "discountCodeId" + ], + "schemaTo": "public", + "tableTo": "DiscountCode", + "columnsTo": [ "id" ], - "nameExplicit": false, - "name": "WorkingHoursDateOverride_pkey", + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Order_discountCodeId_DiscountCode_id_fkey", "schema": "public", - "table": "WorkingHoursDateOverride", - "entityType": "pks" + "table": "Order", + "entityType": "fks" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursInterval_pkey", + "isRlsEnabled": false, + "name": "OrderStatusHistory", "schema": "public", - "table": "WorkingHoursInterval", - "entityType": "pks" + "entityType": "tables" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkingHoursMember_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "WorkingHoursMember", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "Workspace_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "Workspace", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceApiToken_pkey", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "WorkspaceApiToken", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMac_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "orderId", "schema": "public", - "table": "WorkspaceMac", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "columns": [ - "id" - ], - "nameExplicit": false, - "name": "WorkspaceMember_pkey", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "WorkspaceMember", - "entityType": "pks" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "contactInboxId", - "sourceId", - "createdAt" - ], - "nullsNotDistinct": false, - "name": "Message_source_dedup_idx", - "entityType": "uniques", + "type": "orderStatus", + "typeSchema": "public", + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fromStatus", "schema": "public", - "table": "Message" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "workspaceId", - "parentId", - "name" - ], - "nullsNotDistinct": true, - "name": "ProductCategory_workspaceId_parent_name_key", - "entityType": "uniques", + "type": "orderStatus", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "toStatus", "schema": "public", - "table": "ProductCategory" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "ResponseSlaPolicy_workspaceId_key", - "entityType": "uniques", + "type": "orderActorType", + "typeSchema": "public", + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorType", "schema": "public", - "table": "ResponseSlaPolicy" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "token" - ], - "nullsNotDistinct": false, - "name": "UserDeviceToken_token_key", - "entityType": "uniques", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actorUserId", "schema": "public", - "table": "UserDeviceToken" + "table": "OrderStatusHistory", + "entityType": "columns" }, { - "nameExplicit": true, - "columns": [ - "id", - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkingHours_id_workspaceId_key", - "entityType": "uniques", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "note", "schema": "public", - "table": "WorkingHours" + "table": "OrderStatusHistory", + "entityType": "columns" }, { "nameExplicit": true, "columns": [ - "workspaceId", - "userId" + { + "value": "orderId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "createdAt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nullsNotDistinct": false, - "name": "WorkingHoursMember_workspaceId_userId_key", - "entityType": "uniques", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_orderId_createdAt_idx", "schema": "public", - "table": "WorkingHoursMember" + "table": "OrderStatusHistory", + "entityType": "indexes" }, { "nameExplicit": true, "columns": [ - "tokenHash" + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nullsNotDistinct": false, - "name": "WorkspaceApiToken_tokenHash_key", - "entityType": "uniques", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_workspaceId_idx", "schema": "public", - "table": "WorkspaceApiToken" + "table": "OrderStatusHistory", + "entityType": "indexes" }, { "nameExplicit": true, "columns": [ - "workspaceId", - "periodStart", - "periodEnd" + { + "value": "actorUserId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } ], - "nullsNotDistinct": false, - "name": "WorkspaceMac_workspaceId_periodStart_periodEnd_unique", - "entityType": "uniques", + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "OrderStatusHistory_actorUserId_idx", "schema": "public", - "table": "WorkspaceMac" + "table": "OrderStatusHistory", + "entityType": "indexes" }, { - "nameExplicit": false, "columns": [ - "userId" + "id" ], - "nullsNotDistinct": false, - "name": "UserQuota_userId_key", - "schema": "public", - "table": "UserQuota", - "entityType": "uniques" - }, - { "nameExplicit": false, - "columns": [ - "workspaceId" - ], - "nullsNotDistinct": false, - "name": "WorkspaceUsage_workspaceId_key", - "schema": "public", - "table": "WorkspaceUsage", - "entityType": "uniques" - }, - { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"ctwaClid\" IS NOT NULL AND \"wabaId\" IS NOT NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL)", - "name": "AdsConversionEvent_channel_integration_check", - "entityType": "checks", - "schema": "public", - "table": "AdsConversionEvent" - }, - { - "value": "\"parentBroadcastId\" IS NULL OR \"occurrenceAt\" IS NOT NULL", - "name": "Broadcast_occurrence_pair_check", - "entityType": "checks", - "schema": "public", - "table": "Broadcast" - }, - { - "value": "((\"actorUserId\" IS NOT NULL)::int + (\"actorTokenId\" IS NOT NULL)::int) <= 1", - "name": "ConnectSession_actor_at_most_one", - "entityType": "checks", + "name": "OrderStatusHistory_pkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "pks" }, { - "value": "\"status\" IN ('pending', 'authorized', 'awaiting_selection', 'completed', 'failed', 'expired', 'cancelled')", - "name": "ConnectSession_status_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "orderId" + ], + "schemaTo": "public", + "tableTo": "Order", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_orderId_Order_id_fkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "fks" }, { - "value": "\"purpose\" IN ('connect', 'reconnect', 'facebook_ads', 'messaging_ads', 'lead_ads', 'meta_catalog')", - "name": "ConnectSession_purpose_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "OrderStatusHistory_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "fks" }, { - "value": "\"errorCode\" IN ('state_mismatch', 'expired', 'provider_denied', 'exchange_failed', 'provider_error', 'no_candidates', 'already_connected', 'quota_exceeded', 'trial_expired', 'internal_error')", - "name": "ConnectSession_errorCode_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "actorUserId" + ], + "schemaTo": "public", + "tableTo": "User", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "OrderStatusHistory_actorUserId_User_id_fkey", "schema": "public", - "table": "ConnectSession" + "table": "OrderStatusHistory", + "entityType": "fks" }, { - "value": "\"errorCode\" IS NULL OR \"status\" IN ('failed', 'expired', 'cancelled')", - "name": "ConnectSession_errorCode_terminal_failure_check", - "entityType": "checks", + "isRlsEnabled": false, + "name": "Vendor", "schema": "public", - "table": "ConnectSession" + "entityType": "tables" }, { - "value": "(\"status\" IN ('completed', 'failed', 'expired', 'cancelled')) = (\"consumedAt\" IS NOT NULL)", - "name": "ConnectSession_terminal_consumedAt_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", "schema": "public", - "table": "ConnectSession" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" NOT IN ('completed', 'failed', 'expired', 'cancelled') OR \"encryptedAuth\" IS NULL", - "name": "ConnectSession_terminal_clears_encryptedAuth_check", - "entityType": "checks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "createdAt", "schema": "public", - "table": "ConnectSession" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"purpose\" <> 'reconnect' OR \"status\" IN ('completed', 'failed', 'expired', 'cancelled') OR \"targetConnectionId\" IS NOT NULL", - "name": "ConnectSession_active_reconnect_requires_target_check", - "entityType": "checks", + "type": "timestamp(6) with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updatedAt", "schema": "public", - "table": "ConnectSession" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\n (\"kind\" = 'channel' AND \"inboxId\" IS NOT NULL AND \"channel\" IS NOT NULL)\n OR\n (\"kind\" = 'integration' AND \"inboxId\" IS NULL AND \"channel\" IS NULL AND \"integrationId\" IS NOT NULL)\n )", - "name": "Connection_kind_relation_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workspaceId", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "NOT (\"inboxId\" IS NOT NULL AND \"integrationId\" IS NOT NULL)", - "name": "Connection_inbox_integration_exclusive_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"kind\" IN ('channel', 'integration')", - "name": "Connection_kind_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "shortDescription", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" IN ('connected', 'degraded', 'needs_reauth', 'paused', 'disconnected')", - "name": "Connection_status_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phone", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"statusReason\" IN ('manual', 'workspace_purge', 'trial_expired', 'tenant_suspended', 'token_revoked', 'provider_revoked', 'refresh_failed', 'verify_failed', 'quota_exceeded', 'orphaned_webhook')", - "name": "Connection_statusReason_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "storeAddress", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\"status\" = 'connected') = (\"statusReason\" IS NULL)", - "name": "Connection_status_reason_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\"status\" = 'disconnected') = (\"disconnectedAt\" IS NOT NULL)", - "name": "Connection_disconnectedAt_check", - "entityType": "checks", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isActive", "schema": "public", - "table": "Connection" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"usedCount\" >= 0 AND (\"usageLimit\" IS NULL OR \"usedCount\" <= \"usageLimit\")", - "name": "DiscountCode_usedCount_check", - "entityType": "checks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "discountPercent", "schema": "public", - "table": "DiscountCode" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"serviceFeePercent\" >= 0 AND \"serviceFeePercent\" <= 100", - "name": "EcommerceSettings_serviceFeePercent_check", - "entityType": "checks", + "type": "numeric(19,4)", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'0'", + "generated": null, + "identity": null, + "name": "minimumOrderValue", "schema": "public", - "table": "EcommerceSettings" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" NOT IN ('sent', 'processed') OR (\"requestId\" IS NOT NULL AND \"sentAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sent_requires_request_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "openHoursId", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"status\" <> 'sending' OR (\"claimToken\" IS NOT NULL AND \"claimedAt\" IS NOT NULL)", - "name": "GoogleAdsConversionEvent_sending_requires_claim_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "categoryId", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"processingStatus\" IS NULL OR \"status\" IN ('sent', 'processed', 'failed')", - "name": "GoogleAdsConversionEvent_processing_status_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subcategoryId", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "\"failureStage\" IS NULL OR \"status\" = 'failed'", - "name": "GoogleAdsConversionEvent_failure_stage_check", - "entityType": "checks", + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "10", + "generated": null, + "identity": null, + "name": "rank", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "columns" }, { - "value": "(\"value\" IS NULL) = (\"currency\" IS NULL)", - "name": "GoogleAdsConversionEvent_value_currency_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "\"value\" IS NULL OR \"value\" >= 0", - "name": "GoogleAdsConversionEvent_value_non_negative_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "openHoursId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_openHoursId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "length(\"clickId\") BETWEEN 10 AND 512", - "name": "GoogleAdsConversionEvent_clickId_length_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "categoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_categoryId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "\"uploadMethod\" IN ('dataManager', 'legacy')", - "name": "GoogleAdsConversionEvent_uploadMethod_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "subcategoryId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_subcategoryId_idx", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "\"attempt\" >= 0 AND \"processingAttempts\" >= 0", - "name": "GoogleAdsConversionEvent_attempt_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "workspaceId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lower(\"name\")", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Vendor_workspaceId_name_key", "schema": "public", - "table": "GoogleAdsConversionEvent" + "table": "Vendor", + "entityType": "indexes" }, { - "value": "(\"registrationStatus\" <> 'failed' OR \"registrationError\" IS NOT NULL)\n AND (\"registrationStatus\" <> 'registered' OR \"registrationError\" IS NULL)", - "name": "IntegrationWhatsapp_registrationStatus_error_consistent", - "entityType": "checks", + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "Vendor_pkey", "schema": "public", - "table": "IntegrationWhatsapp" + "table": "Vendor", + "entityType": "pks" }, { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdOperation_channel_integration_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "workspaceId" + ], + "schemaTo": "public", + "tableTo": "Workspace", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "CASCADE", + "name": "Vendor_workspaceId_Workspace_id_fkey", "schema": "public", - "table": "MessagingAdOperation" + "table": "Vendor", + "entityType": "fks" }, { - "value": "(\"channel\" = 'whatsapp' AND \"integrationWhatsappId\" IS NOT NULL AND \"integrationMessengerId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'messenger' AND \"integrationMessengerId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationInstagramId\" IS NULL) OR (\"channel\" = 'instagram' AND \"integrationInstagramId\" IS NOT NULL AND \"integrationWhatsappId\" IS NULL AND \"integrationMessengerId\" IS NULL)", - "name": "MessagingAdsConnection_channel_integration_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "openHoursId" + ], + "schemaTo": "public", + "tableTo": "EcommerceOpenHours", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_openHoursId_EcommerceOpenHours_id_fkey", "schema": "public", - "table": "MessagingAdsConnection" + "table": "Vendor", + "entityType": "fks" }, { - "value": "\"channel\" IN ('messenger', 'instagram', 'whatsapp')", - "name": "MetaCapiEvent_channel_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "categoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_categoryId_ProductCategory_id_fkey", "schema": "public", - "table": "MetaCapiEvent" + "table": "Vendor", + "entityType": "fks" }, { - "value": "\"actionSource\" IN ('business_messaging', 'email', 'phone_call', 'chat', 'physical_store', 'system_generated', 'other')", - "name": "MetaCapiEvent_actionSource_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "subcategoryId" + ], + "schemaTo": "public", + "tableTo": "ProductCategory", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Vendor_subcategoryId_ProductCategory_id_fkey", "schema": "public", - "table": "MetaCapiEvent" + "table": "Vendor", + "entityType": "fks" }, { - "value": "\"contentType\" IN ('product', 'product_group')", - "name": "MetaCapiEvent_contentType_check", - "entityType": "checks", + "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", + "name": "Vendor_discountPercent_check", "schema": "public", - "table": "MetaCapiEvent" + "table": "Vendor", + "entityType": "checks" }, { - "value": "(\"customFieldId\" IS NULL) OR (\"systemFieldKey\" IS NULL)", - "name": "QuestionnaireQuestion_customFieldId_systemFieldKey_exclusive", - "entityType": "checks", + "type": "boolean", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "keepOriginal", + "entityType": "columns", "schema": "public", - "table": "QuestionnaireQuestion" + "table": "Attachment" }, { - "value": "\"firstResponseTargetSeconds\" > 0 AND (\"nextResponseTargetSeconds\" IS NULL OR \"nextResponseTargetSeconds\" > 0)", - "name": "ResponseSlaPolicy_targets_check", - "entityType": "checks", + "type": "bigint", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "vendorId", + "entityType": "columns", "schema": "public", - "table": "ResponseSlaPolicy" + "table": "Product" }, { - "value": "\"breachingThresholdPercent\" BETWEEN 1 AND 99", - "name": "ResponseSlaPolicy_threshold_check", - "entityType": "checks", + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "imageUrl", + "entityType": "columns", "schema": "public", - "table": "ResponseSlaPolicy" + "table": "ProductCategory" }, { - "value": "\"discountPercent\" >= 0 AND \"discountPercent\" <= 100", - "name": "Vendor_discountPercent_check", - "entityType": "checks", + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "isVisible", + "entityType": "columns", "schema": "public", - "table": "Vendor" + "table": "ProductCategory" }, { - "value": "cardinality(\"candidatePhoneNumberIds\") > 0", - "name": "WhatsappSignupSession_candidates_not_empty", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "createdAt", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": false, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "AuditLog_createdAt_id_idx", + "entityType": "indexes", "schema": "public", - "table": "WhatsappSignupSession" + "table": "AuditLog" }, { - "value": "\"weekday\" BETWEEN 0 AND 6", - "name": "WorkingHoursInterval_weekday_check", - "entityType": "checks", + "nameExplicit": true, + "columns": [ + { + "value": "vendorId", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "Product_vendorId_idx", + "entityType": "indexes", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Product" }, { - "value": "0 <= \"startMinute\" AND \"startMinute\" < \"endMinute\" AND \"endMinute\" <= 1440", - "name": "WorkingHoursInterval_minutes_check", - "entityType": "checks", + "nameExplicit": false, + "columns": [ + "vendorId" + ], + "schemaTo": "public", + "tableTo": "Vendor", + "columnsTo": [ + "id" + ], + "onUpdate": "CASCADE", + "onDelete": "SET NULL", + "name": "Product_vendorId_Vendor_id_fkey", + "entityType": "fks", "schema": "public", - "table": "WorkingHoursInterval" + "table": "Product" } ], "renames": [] diff --git a/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/migration.sql b/packages/database/drizzle/20261025021120_retain_workspace_billing/migration.sql similarity index 69% rename from packages/database/drizzle/20261024120555_retain_workspace_mac_billing/migration.sql rename to packages/database/drizzle/20261025021120_retain_workspace_billing/migration.sql index 18b0005ed2..ede7ef930b 100644 --- a/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/migration.sql +++ b/packages/database/drizzle/20261025021120_retain_workspace_billing/migration.sql @@ -1,3 +1,11 @@ +-- Retain workspace billing evidence past workspace deletion: bot-message usage +-- and the deletion record get their own tables, and WorkspaceMac stops cascading +-- from Workspace and is keyed by owner/tenant instead. +-- +-- Transactional on purpose: nothing here is CONCURRENTLY, so the runner wraps +-- the file in one transaction and a failure leaves no partial state. The +-- WorkspaceMac indexes and the FK validation live in the next migration +-- (add_workspace_mac_owner_indexes) because they cannot run in a transaction. CREATE TABLE "WorkspaceBotMessageUsage" ( "id" bigint PRIMARY KEY, "createdAt" timestamp(6) with time zone DEFAULT now() NOT NULL, @@ -43,17 +51,6 @@ WHERE mac."workspaceId" = workspace."id" ALTER TABLE "WorkspaceMac" DROP CONSTRAINT IF EXISTS "WorkspaceMac_workspaceId_Workspace_id_fkey";--> statement-breakpoint CREATE INDEX "WorkspaceBotMessageUsage_ownerId_periodStart_idx" ON "WorkspaceBotMessageUsage" ("ownerId","periodStart");--> statement-breakpoint CREATE INDEX "WorkspaceBotMessageUsage_tenantId_periodStart_idx" ON "WorkspaceBotMessageUsage" ("tenantId","periodStart");--> statement-breakpoint -CREATE INDEX "WorkspaceDeletionRecord_workspaceName_idx" ON "WorkspaceDeletionRecord" ("workspaceName");--> statement-breakpoint CREATE INDEX "WorkspaceDeletionRecord_ownerEmail_idx" ON "WorkspaceDeletionRecord" ("ownerEmail");--> statement-breakpoint -CREATE INDEX "WorkspaceDeletionRecord_deletionRequestedByEmail_idx" ON "WorkspaceDeletionRecord" ("deletionRequestedByEmail");--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"WorkspaceMac_ownerId_periodStart_idx"') AND NOT indisvalid) THEN DROP INDEX "WorkspaceMac_ownerId_periodStart_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkspaceMac_ownerId_periodStart_idx" ON "WorkspaceMac" ("ownerId","periodStart");--> statement-breakpoint -DO $$ BEGIN - IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"WorkspaceMac_tenantId_periodStart_idx"') AND NOT indisvalid) THEN DROP INDEX "WorkspaceMac_tenantId_periodStart_idx"; END IF; -END $$;--> statement-breakpoint -CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkspaceMac_tenantId_periodStart_idx" ON "WorkspaceMac" ("tenantId","periodStart");--> statement-breakpoint ALTER TABLE "WorkspaceBotMessageUsage" ADD CONSTRAINT "WorkspaceBotMessageUsage_ownerId_User_id_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;--> statement-breakpoint -ALTER TABLE "WorkspaceMac" ADD CONSTRAINT "WorkspaceMac_ownerId_User_id_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE NOT VALID;--> statement-breakpoint -ALTER TABLE "WorkspaceMac" VALIDATE CONSTRAINT "WorkspaceMac_ownerId_User_id_fkey"; \ No newline at end of file +ALTER TABLE "WorkspaceMac" ADD CONSTRAINT "WorkspaceMac_ownerId_User_id_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE NOT VALID; diff --git a/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/snapshot.json b/packages/database/drizzle/20261025021120_retain_workspace_billing/snapshot.json similarity index 99% rename from packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/snapshot.json rename to packages/database/drizzle/20261025021120_retain_workspace_billing/snapshot.json index 115230b2d9..151ee277be 100644 --- a/packages/database/drizzle/20261025013132_remove_workspace_deletion_record_unused_indexes/snapshot.json +++ b/packages/database/drizzle/20261025021120_retain_workspace_billing/snapshot.json @@ -1,10 +1,10 @@ { - "version": "8", - "dialect": "postgres", - "id": "de2c4ea5-f233-4a1d-8d53-6831fb834d2c", + "id": "9cb9d9e1-e1a1-42c4-b7bd-8099d81756c4", "prevIds": [ - "60d41c7f-6c73-46dc-9ce5-35859d6955cd" + "2e489004-42f1-4a07-83d3-c6cd07aa47ca" ], + "version": "8", + "dialect": "postgres", "ddl": [ { "values": [ @@ -63305,4 +63305,4 @@ } ], "renames": [] -} \ No newline at end of file +} diff --git a/packages/database/drizzle/20261025021303_add_workspace_mac_owner_indexes/migration.sql b/packages/database/drizzle/20261025021303_add_workspace_mac_owner_indexes/migration.sql new file mode 100644 index 0000000000..da4554492a --- /dev/null +++ b/packages/database/drizzle/20261025021303_add_workspace_mac_owner_indexes/migration.sql @@ -0,0 +1,20 @@ +-- Owner/tenant indexes on WorkspaceMac plus validation of the owner FK added +-- NOT VALID in retain_workspace_billing. CREATE INDEX CONCURRENTLY cannot run in +-- a transaction, so this file runs unwrapped and every statement is re-runnable: +-- each index is preceded by a guard that drops a leftover INVALID build, and +-- VALIDATE CONSTRAINT is a no-op once the constraint is valid. +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"WorkspaceMac_ownerId_periodStart_idx"') AND NOT indisvalid) THEN + DROP INDEX "WorkspaceMac_ownerId_periodStart_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkspaceMac_ownerId_periodStart_idx" ON "WorkspaceMac" ("ownerId","periodStart");--> statement-breakpoint +DO $$ +BEGIN + IF EXISTS (SELECT 1 FROM pg_index WHERE indexrelid = to_regclass('"WorkspaceMac_tenantId_periodStart_idx"') AND NOT indisvalid) THEN + DROP INDEX "WorkspaceMac_tenantId_periodStart_idx"; + END IF; +END $$;--> statement-breakpoint +CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkspaceMac_tenantId_periodStart_idx" ON "WorkspaceMac" ("tenantId","periodStart");--> statement-breakpoint +ALTER TABLE "WorkspaceMac" VALIDATE CONSTRAINT "WorkspaceMac_ownerId_User_id_fkey"; diff --git a/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/snapshot.json b/packages/database/drizzle/20261025021303_add_workspace_mac_owner_indexes/snapshot.json similarity index 99% rename from packages/database/drizzle/20261024120555_retain_workspace_mac_billing/snapshot.json rename to packages/database/drizzle/20261025021303_add_workspace_mac_owner_indexes/snapshot.json index b85b5f464f..a997052743 100644 --- a/packages/database/drizzle/20261024120555_retain_workspace_mac_billing/snapshot.json +++ b/packages/database/drizzle/20261025021303_add_workspace_mac_owner_indexes/snapshot.json @@ -1,11 +1,10 @@ { - "version": "8", - "dialect": "postgres", - "id": "60d41c7f-6c73-46dc-9ce5-35859d6955cd", + "id": "b01340e2-fd19-4bb0-a557-79fe40f3a648", "prevIds": [ - "335fec36-c7cc-45ef-ab96-7b8d7cea12d9", - "8866cec4-c4d7-446e-9a68-8e762c47b77c" + "9cb9d9e1-e1a1-42c4-b7bd-8099d81756c4" ], + "version": "8", + "dialect": "postgres", "ddl": [ { "values": [ @@ -52599,27 +52598,6 @@ "schema": "public", "table": "WorkspaceBotMessageUsage" }, - { - "nameExplicit": true, - "columns": [ - { - "value": "workspaceName", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceDeletionRecord_workspaceName_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceDeletionRecord" - }, { "nameExplicit": true, "columns": [ @@ -52641,27 +52619,6 @@ "schema": "public", "table": "WorkspaceDeletionRecord" }, - { - "nameExplicit": true, - "columns": [ - { - "value": "deletionRequestedByEmail", - "isExpression": false, - "asc": true, - "nullsFirst": false, - "opclass": null - } - ], - "isUnique": false, - "where": null, - "with": "", - "method": "btree", - "concurrently": false, - "name": "WorkspaceDeletionRecord_deletionRequestedByEmail_idx", - "entityType": "indexes", - "schema": "public", - "table": "WorkspaceDeletionRecord" - }, { "nameExplicit": true, "columns": [ From abef6b543eaaae93615949092c902c725aa62df8 Mon Sep 17 00:00:00 2001 From: Real Codesiman Date: Mon, 26 Oct 2026 08:50:00 +0700 Subject: [PATCH 7/7] test(business): update quota reconciliation expectation --- .../business/__tests__/live-counter-store-consume.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/business/__tests__/live-counter-store-consume.test.ts b/packages/business/__tests__/live-counter-store-consume.test.ts index f117473473..c502126acc 100644 --- a/packages/business/__tests__/live-counter-store-consume.test.ts +++ b/packages/business/__tests__/live-counter-store-consume.test.ts @@ -45,8 +45,10 @@ vi.mock("@chatbotx.io/database/client", () => ({ inArray: vi.fn((column: unknown, values: unknown) => ({ inArray: [column, values], })), + isNull: vi.fn(), lte: vi.fn(), ne: vi.fn(), + or: vi.fn(), sql: Object.assign( vi.fn(() => ({ sql: true })), { raw: vi.fn() }, @@ -415,8 +417,6 @@ describe("userQuotaService.reconcileOwnerPoolUsage", () => { "2", "channels", "0", - "mac", - "0", ) }) })